PMTHit.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : Whitney Armstrong
11 //
12 //==========================================================================
13 #ifndef NPDet_PMTHit_H
14 #define NPDet_PMTHit_H
15 
17 #include "DDG4/Geant4Data.h"
18 
19 namespace npdet {
20 
22 
39 
40  public:
42  //int64_t cellID = 0;
44  //long flag = 0;
46  //long g4ID = -1;
47 
48 
50  dd4hep::Position position;
52  dd4hep::Direction momentum;
54  double length = 0;
56  dd4hep::sim::Geant4HitData::MonteCarloContrib truth;
58  double energy = 0;
59 
60  public:
62  PMTHit() = default;
64  PMTHit(int track_id, int pdg_id, double en, double time_stamp)
65  : length(0.0), truth(track_id, pdg_id, en, time_stamp, 0.), energy(en) {}
67  virtual ~PMTHit() = default;
69  PMTHit& operator=(const PMTHit& c);
71  PMTHit& clear();
73  PMTHit& storePoint(const G4Step* step, const G4StepPoint* pnt);
74  };
75 }
76 
77 #endif
dd4hep::Direction momentum
Hit direction.
Definition: PMTHit.h:52
dd4hep::sim::Geant4HitData::MonteCarloContrib truth
Monte Carlo / Geant4 information.
Definition: PMTHit.h:56
Framework include files.
PMTHit & clear()
Clear hit content.
Definition: PMTHit.cpp:32
double energy
Energy of photon.
Definition: PMTHit.h:58
double length
Length of the track segment contributing to this hit.
Definition: PMTHit.h:54
PhotoMultiplier Hit definition.
Definition: PMTHit.h:38
PMTHit & operator=(const PMTHit &c)
Assignment operator.
Definition: PMTHit.cpp:20
PMTHit()=default
Default constructor.
PMTHit(int track_id, int pdg_id, double en, double time_stamp)
Initializing constructor.
Definition: PMTHit.h:64
PMTHit & storePoint(const G4Step *step, const G4StepPoint *pnt)
Store Geant4 point and step information into tracker hit structure.
Definition: PMTHit.cpp:42
dd4hep::Position position
Hit position.
Definition: PMTHit.h:50
virtual ~PMTHit()=default
Default destructor.