All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SRTrueParticle.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRTrueParticle.h
3 ////////////////////////////////////////////////////////////////////////
4 #ifndef SRTRUEPARTICLE_H
5 #define SRTRUEPARTICLE_H
6 
8 
10 
11 #include <vector>
12 
13 namespace caf
14 {
16  {
17  public:
19 
20  float visE; //!< Sum of energy deposited on plane [GeV]
21  unsigned int nhit; //!< Number of hits on plane
22  };
23 
24  /// Representation of a simb::MCParticle, knows energy, direction,
25  // etc, but no hit information.
27  {
28  public:
29  SRTrueParticlePlaneInfo plane[2][3]; //!< Per-plane, per-cryostat deposition information
30 
31  float genE; //!< Energy at generation pt [GeV]
32  float startE; //!< Energy at first pt in active TPC volume [GeV]
33  float endE; //!< Energy at last pt in active TPC volume [GeV]
34  float genT; //!< Start time of gen point [us -- t=0 is spill time]
35  float startT; //!< Start time of first TPC point [us -- t=0 is spill time]
36  float endT; //!< End time last point in the active [us -- t=0 is spill time]
37  float length; //!< Trajectory length in active TPC volume the particle first enters [cm]
38 
39  SRVector3D genp; //!< Momentum at generation point [GeV/c]
40  SRVector3D startp; //!< Momentum at first point in the active TPC volume [GeV/c]
41  SRVector3D endp; //!< Momentum at last point in the active TPC volume [GeV/c]
42  SRVector3D gen; //!< Generation position [cm]
43  SRVector3D start; //!< Start position in the active TPC volume [cm]
44  SRVector3D end; //!< End position in the active TPC volume [cm]
45 
46  Wall_t wallin; //!< Wall of cryostat particle enters (wNone if starting in detector)
47  Wall_t wallout; //!< Wall of cryostat particle exits (wNone if stopping in detector)
48 
49  bool cont_tpc; //!< Whether the particle is contained in a single TPC
50  bool crosses_tpc; //!< Whether the particle crosses a TPC boundary
51  bool contained; //!< Whether the particle is contained in a single active volume
52 
53  int pdg; //!< Particle ID code
54  int G4ID; //!< ID of the particle (taken from G4 -- -1 if this particle is not propogated by G4)
55  int interaction_id; //!< Neutrino interaction ID of the source of this particle (-1 if cosmic)
56  int cryostat; //!< Cryostat that the particle enters first -- -1 if it does not enter a Cryostat
57 
58  std::vector<unsigned> daughters; //!< ID's of daughter particles from this particle
59  unsigned parent; //!< ID's of parent particle from this particle
60 
62 
63  g4_process_ start_process; //!< Start G4 process of the particle
64  g4_process_ end_process; //!< End G4 process of the particle
65 
66  genie_status_ gstatus; //!< Status of the particle as generated by genie
67 
70 
71  };
72 
73 } // end namespace
74 
75 #endif // SRTRUEPARTICLE_H
76 //////////////////////////////////////////////////////////////////////////////
float genE
Energy at generation pt [GeV].
A 3-vector with more efficient storage than TVector3.
Definition: SRVector3D.h:16
unsigned parent
ID&#39;s of parent particle from this particle.
SRVector3D start
Start position in the active TPC volume [cm].
Wall_t
Definition: SREnums.h:22
float endT
End time last point in the active [us – t=0 is spill time].
int cryostat
Cryostat that the particle enters first – -1 if it does not enter a Cryostat.
SRVector3D startp
Momentum at first point in the active TPC volume [GeV/c].
g4_process_
Which G4 process ?
Definition: SREnums.h:155
generator_
Which generator?
Definition: SREnums.h:44
bool contained
Whether the particle is contained in a single active volume.
Wall_t wallout
Wall of cryostat particle exits (wNone if stopping in detector)
bool crosses_tpc
Whether the particle crosses a TPC boundary.
SRVector3D genp
Momentum at generation point [GeV/c].
g4_process_ end_process
End G4 process of the particle.
float length
Trajectory length in active TPC volume the particle first enters [cm].
genie_status_ gstatus
Status of the particle as generated by genie.
float startT
Start time of first TPC point [us – t=0 is spill time].
float genT
Start time of gen point [us – t=0 is spill time].
float endE
Energy at last pt in active TPC volume [GeV].
int interaction_id
Neutrino interaction ID of the source of this particle (-1 if cosmic)
SRVector3D end
End position in the active TPC volume [cm].
float startE
Energy at first pt in active TPC volume [GeV].
g4_process_ start_process
Start G4 process of the particle.
genie_status_
Which genie status?
Definition: SREnums.h:137
SRVector3D endp
Momentum at last point in the active TPC volume [GeV/c].
Wall_t wallin
Wall of cryostat particle enters (wNone if starting in detector)
int G4ID
ID of the particle (taken from G4 – -1 if this particle is not propogated by G4)
Representation of a simb::MCParticle, knows energy, direction,.
SRVector3D gen
Generation position [cm].
bool cont_tpc
Whether the particle is contained in a single TPC.
std::vector< unsigned > daughters
ID&#39;s of daughter particles from this particle.
int pdg
Particle ID code.
SRTrueParticlePlaneInfo plane[2][3]
Per-plane, per-cryostat deposition information.
float visE
Sum of energy deposited on plane [GeV].
unsigned int nhit
Number of hits on plane.