eventAnalysis  7.0-49-g0ac7482
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TGlobalBaseObjects.hxx
Go to the documentation of this file.
1 #ifndef SubBaseObject_hh_seen
2 #define SubBaseObject_hh_seen
3 
4 #include "TBits.h"
5 #include "TObjString.h"
6 #include "TObject.h"
7 
8 #include "TLorentzVector.h"
9 #include "TVector3.h"
10 
11 #include "TTrueVertex.hxx"
12 
13 /// This is a base class used by the TGlobalReconModule. Had to be defined
14 /// separately to avoid errors when using TFile::MakeProject to generate
15 /// class libraries from output files.
16 ///[ed]: This is only because of the needless obsession with constituent
17 /// class defintions...
18 
19 namespace ND {
20 
21 /// Describes a true G4 particle associated to a TGlobalPID
22 class TTrueParticle : public TObject {
23  public:
24  virtual ~TTrueParticle(){}
25 
26  int ID; ///< G4 Trajectory Id.
27 
28 
29  double Pur; ///< The purity for matching the rec particle with the true particle.
30 
31 
32  double Eff; ///< The efficiency for matching the rec particle with the true particle.
33 
34 
35  ND::TTrueVertex Vertex; ///< True vertex associated to this TrueParticle.
36 
37 
39 };
40 
41 ///\brief Provides data members common to reconstructed objects from all
42 /// sub detectors.
43 class TSubBaseObject : public TObject {
44  public:
45  virtual ~TSubBaseObject(){}
46 
47  UInt_t UniqueID; ///< Unique identifier for sub-detector recon objects.
48 
49 
50  unsigned long Status; ///< The status for the fit.
51 
52 
53  int Detector; ///< Integer specifying which subdetector(s) the object belongs to. See TGlobalReconModule::GetDetectorNumber for the options.
54 
55  int NHits; ///< The number of constituent hits.
56 
57  int NNodes; ///< The number of reconstruction nodes.
58 
59  int NDOF; ///< The number of degrees of freedom in the fit.
60 
61  double Chi2; ///< The chi2 of the fit.
62 
63  double EDeposit; ///< Deposited energy, N.B. the meaning of this is subdetector-local.
64 
65  int NConstituents; ///< The number of constituents.
66 
67 
68  double Length; ///< The length of the track or shower (RMS)
69 
70 
71  TLorentzVector FrontPosition; ///< The global coordinate position at the 'front' of the object.
72 
73 
74  TLorentzVector BackPosition; ///< The global coordinate position at the 'back' of the object.
75 
76 
77  TLorentzVector FrontPositionVar; ///< The uncertainty on ND::TSubBaseObject::FrontPosition.
78 
79 
80  TLorentzVector BackPositionVar; ///< The uncertainty on ND::TSubBaseObject::BackPosition.
81 
82 
83  TVector3 FrontDirection; ///< The direction at the 'front' of the object.
84 
85 
86  TVector3 BackDirection; ///< The direction at the 'back' of the object.
87 
88 
89  TVector3 FrontDirectionVar; ///< The uncertainty on ND::TSubBaseObject::FrontDirection.
90 
91 
92  TVector3 BackDirectionVar; ///< The uncertainty on ND::TSubBaseObject::BackDirection.
93 
94 
95  double FrontMomentum; ///< The momentum measurement at the 'front' of the object.
96 
97 
98  double BackMomentum; ///< The momentum measurement at the 'back' of the object.
99 
100 
101  double FrontMomentumError; ///< The uncertainty on ND::TSubBaseObject::FrontMomentum.
102 
103 
104  double BackMomentumError; ///< The uncertainty on ND::TSubBaseObject::BackMomentum.
105 
106 
107  TTrueParticle TrueParticle; ///< The associated true particle.
108 
109 
111 };
112 
113 ///\brief Provides data members common to reconstructed showers from all
114 /// sub detectors
116  public:
118 
119  TVector3 Cone; ///< The opening angles of the reconstructed shower cone.
120 
121 
123 };
124 
125 } // nd280 namespace
126 
127 #endif
int NHits
The number of constituent hits.
int ID
G4 Trajectory Id.
double Length
The length of the track or shower (RMS)
TTrueParticle TrueParticle
The associated true particle.
double FrontMomentumError
The uncertainty on ND::TSubBaseObject::FrontMomentum.
double Chi2
The chi2 of the fit.
double FrontMomentum
The momentum measurement at the &#39;front&#39; of the object.
TLorentzVector FrontPosition
The global coordinate position at the &#39;front&#39; of the object.
double Eff
The efficiency for matching the rec particle with the true particle.
unsigned long Status
The status for the fit.
ClassDef(TSubBaseObject, 1)
ClassDef(TSubBaseShowerObject, 1)
int NConstituents
The number of constituents.
TVector3 FrontDirection
The direction at the &#39;front&#39; of the object.
TLorentzVector BackPosition
The global coordinate position at the &#39;back&#39; of the object.
TVector3 BackDirection
The direction at the &#39;back&#39; of the object.
UInt_t UniqueID
Unique identifier for sub-detector recon objects.
double BackMomentum
The momentum measurement at the &#39;back&#39; of the object.
int NDOF
The number of degrees of freedom in the fit.
double Pur
The purity for matching the rec particle with the true particle.
double BackMomentumError
The uncertainty on ND::TSubBaseObject::BackMomentum.
TVector3 Cone
The opening angles of the reconstructed shower cone.
TLorentzVector BackPositionVar
The uncertainty on ND::TSubBaseObject::BackPosition.
Describes a true G4 particle associated to a TGlobalPID.
TLorentzVector FrontPositionVar
The uncertainty on ND::TSubBaseObject::FrontPosition.
int NNodes
The number of reconstruction nodes.
TVector3 BackDirectionVar
The uncertainty on ND::TSubBaseObject::BackDirection.
An object to describe the true G4 vertex associated to the TGlobalVertex.
Definition: TTrueVertex.hxx:14
Provides data members common to reconstructed showers from all sub detectors.
Provides data members common to reconstructed objects from all sub detectors.
TVector3 FrontDirectionVar
The uncertainty on ND::TSubBaseObject::FrontDirection.
ND::TTrueVertex Vertex
True vertex associated to this TrueParticle.
int Detector
Integer specifying which subdetector(s) the object belongs to. See TGlobalReconModule::GetDetectorNum...
ClassDef(TTrueParticle, 1)
double EDeposit
Deposited energy, N.B. the meaning of this is subdetector-local.

Package Summary
Package Name: eventAnalysis
Package Version: 7.0-49-g0ac7482
Package Manager:

Generated on Mon Mar 25 2024 14:43:58 for eventAnalysis by doxygen 1.8.5