8 #ifndef _TFgdOnlyModule_hxx_seen
9 #define _TFgdOnlyModule_hxx_seen
11 #include <TClonesArray.h>
13 #include <TG4Trajectory.hxx>
14 #include <TReconCluster.hxx>
15 #include <TReconPID.hxx>
16 #include <TReconTrack.hxx>
21 #include "TFGDPid.hxx"
207 const char* title =
"FGD Only Recon Module");
218 virtual bool FillTree(ND::TND280Event&);
222 ND::THandle<ND::TTrackState> state,
225 ND::THandle<ND::TTrackState> state,
228 ND::THandle<ND::TReconCluster> cluster);
230 ND::THandle<ND::TReconPID> pid);
TVector3 Direction
Direection.
Int_t fN2DClustersYZ
Number of 2D constituents of showers.
int NumHits
The number of hits contributing to this cluster.
TClonesArray ** fXZTracksAllFGD
TLorentzVector OriginVariance
Variance on origin.
int NumHits
The number of hits contributing to this cluster.
TVector3 Direction
Identified direction of the shower, found using PCA.
TClonesArray ** fYZTracks
std::string AlgorithmName
Algorithm name.
TFgd3DShowerHyp Information on a specific hypothesis of an FGD shower.
std::string AlgorithmName
The name of the algorithm..
TVector3 ConeAngle
Opening angle of the cone describing this shower.
TLorentzVector Position
Identified start position of the shower.
TClonesArray ** fXYZTracksAllFGD
virtual ~TFgd2DIsoTrack()
std::vector< const char * > fTrackAlgorithms
double EDeposit
Energy deposited in this shower.
ClassDef(TFgdOnlyModule::TFgd2DIsoTrack, 2)
std::map< int, int > Trajectories
Map of true trajectory IDs to the number of G4 contributors that contributed to this cluster...
TFgdOnlyModule(const char *name="FGDOnly", const char *title="FGD Only Recon Module")
TVector3 DirectionVar
Variance on the direction of the shower.
TLorentzVector Origin
Origin.
TClonesArray * f2DClustersYZ
2D constituents of showers
TClonesArray * f2DClustersXZ
2D constituents of showers
double muonPull
Muon pull.
std::vector< const char * > fPids
double MatchingLikelihood3D
The MVA likelihood value returned when matching 2D clusters in the XZ and YZ views into a single 3D c...
TLorentzVector Position
Charge-weighted position of the cluster.
std::vector< TVector3 * > HitPositions
Hit positions.
TClonesArray * f3DShowers
Showers.
TLorentzVector PositionVar
Variance on the start position of the shower.
virtual ~TFgd3DShowerHyp()
Int_t fN2DClustersXZ
Number of 2D constituents of showers.
double Cleanliness
Cleanlikness.
Int_t fN3DShowers
Number of Showers.
TLorentzVector Origin
Origin.
double Completeness
Completeness.
TFgd3DShowerHyp Fill3DShowerHyp(ND::THandle< ND::TReconPID > hyp)
double SumCharge
Sum of charge.
TVector3 QAvgInThirds
Hits are split into three groups based on their distance from the start of the shower.
virtual ~TFgdOnlyModule()
ClassDef(TFgdOnlyModule::TFgd3DShowerPID, 1)
ClassDef(TFgdOnlyModule::TFgd3DIsoTrack, 2)
TVector3 Direction
Direection.
void Fill2DIsoTrack(ND::THandle< ND::TReconTrack > tr, ND::THandle< ND::TTrackState > state, TFgd2DIsoTrack *isoTrack, char Axis)
Int_t * fNXZTracksAllFGD
All and only FGD hits used for these tracks.
TClonesArray ** fXZTracks
int TrajId
Trajectory id`.
int NDOF
The number of degrees of freedom in the reconstruction.
std::vector< TVector3 * > YZHitPositions
YZ Hit Positions.
double Circularity
Dan Scully's Circularity variable, adapted for FGDs.
TClonesArray ** fXYZTracks
std::string AlgorithmName
void Fill3DShower(TFgd3DShowerPID *TempObject, ND::THandle< ND::TReconPID > pid)
double EDeposit
The energy deposited in the cluster.
int NDOF
The number of degrees of freedom in the reconstruction.
Int_t * fNXZTracks
These tracks use only hits unused by the TPC+FGD fits.
double protonPull
Proton pull.
TVector3 SpreadInThirds
Hits are split into three groups based on their distance from the start of the shower.
double Range
Range of shower along PCADirection.
TFgd2DCluster The main object that contains information on clusters of hits after the 2D reconstructi...
TFgd3DShowerPID Information on an object reconstructed using the FGD shower-based reconstruction...
virtual ~TFgd3DShowerPID()
TLorentzVector OriginVariance
Variance on origin.
TFgd3DShowerHyp Hyp1
Information assuming the particle is forward-going.
ClassDef(TFgdOnlyModule::TFgd3DShowerHyp, 1)
ClassDef(TFgdOnlyModule::TFgd2DCluster, 1)
double Quality
The goodness of fit for the reconstruction.
TVector3 StartPosition
Identified "start" position of the cluster, from extrapolating along PCADrection. ...
void Fill2DCluster(TFgd2DCluster *TempObject, ND::THandle< ND::TReconCluster > cluster)
int Status
The fit status.
TClonesArray ** fYZTracksAllFGD
virtual Bool_t ProcessFirstEvent(ND::TND280Event &event)
Is called after the first event is loaded in.
TVector3 EndPosition
Identified "end" position of the cluster, from extrapolating along PCADirection.
Int_t * fNYZTracks
These tracks use only hits unused by the TPC+FGD fits.
double Quality
The goodness of fit for the reconstruction.
virtual bool FillTree(ND::TND280Event &)
Fill all the stuff that goes in the output tree.
void Fill3DIsoTrack(ND::THandle< ND::TReconTrack > tr, ND::THandle< ND::TTrackState > state, TFgd3DIsoTrack *isoTrack)
double Cleanliness
Cleanlikness.
double pionPull
Pion pull.
int TrajId
Trajectory id`.
TVector3 PCADirection
Primary PCA eigenvector, associated with the direction of the cluster.
std::map< int, int > Trajectories
Map of true trajectory IDs to the number of G4 contributors that contributed to this cluster...
Int_t * fNXYZTracks
These tracks use only hits unused by the TPC+FGD fits.
std::vector< TVector3 * > XZHitPositions
XZ Hit Positions.
double SumCharge
Charge Sum.
double Completeness
Completeness.
virtual void InitializeBranches()
Initialize Branches. Don't do anything else in this function.
TVector3 PCAEigenValues
The three PCA eigenvalues.
int Status
The fit status.
TFgd3DShowerHyp Hyp2
Information assuming the particle is backward-going.
Int_t * fNYZTracksAllFGD
All and only FGD hits used for these tracks.
A base class for analysis output modules which contain reconstructed event information.
double AvgHitTime
Average time of hits in the cluster.
TVector3 ConeAngleVar
Variance on the cone opening angle.
virtual ~TFgd3DIsoTrack()
Int_t * fNXYZTracksAllFGD
All and only FGD hits used for these tracks.