9 #ifndef TTruthVerticesModule_hxx_seen
10 #define TTruthVerticesModule_hxx_seen
16 #include <TND280Event.hxx>
19 #include "TG4PrimaryVertex.hxx"
28 class TTruthVerticesModule;
30 OA_EXCEPTION(EUndefinedParticleCategoryVertex, ETruthVerticesModule);
40 const char* title =
"True Primary Vertex information");
45 virtual bool FillTree(ND::TND280Event&);
std::string Generator
The generator that created the vertex. eg: "genie:mean@free-spill".
const unsigned int fMaxNVertices
The maximum number of vertices that the module will be saved in a single event.
Int_t NeutrinoPDG
The PDG number of the incoming neutrino. Set to 0 in the absence of a neutrino.
Int_t fNVtxTPC1
The number of vertices recorded in TPC 1.
OA_EXCEPTION(EeventAnalysis, EoaCore)
Generate a base exception for the Analysis library.
eventAnalysis module for storing the truth information for primary vertices in events ...
virtual ~TTruthVerticesModule()
Int_t fNVtxDsECal
The number of vertices recorded in the Downstream ECal.
Int_t fNVtxTPC3
The number of vertices recorded in TPC 3.
TLorentzVector TargetMomentum
The four-momentum of the target. Set to (-999999.9, -999999.9, -999999.9, -999999.9) in the absence of a target.
TClonesArray * fVertices
The TClonesArray storing the TTruthVertex objects holding the information relating to each vertex...
Bool_t IsGeantinoVtx(ND::TG4PrimaryVertex vtx)
std::string ReactionCode
The Reaction code according to the generator For Genie this will be of the form: "nu:14;tgt:100026056...
Int_t fNVtxFGD2
The number of vertices recorded in FGD 2.
Int_t fNVtxINGRID
The number of vertices recorded in INGRID.
Int_t TargetPDG
The (extended for nuclei) PDG number of the target. Set to 0 in the absence of a target.
Int_t fNVtxBrlECal
The number of vertices recorded in the Barrel ECal.
Class used by the Truth Vertices Module to store information relating to an individual true primary v...
Bool_t IsSortable() const
Make the object sortable so that a TClonesArray can be sorted in ID order.
virtual Bool_t IsEnabledByDefault() const
Is the module is enabled by default.
Int_t fNVtxTPC2
The number of vertices recorded in TPC 2.
Int_t fNVtxSMRD
The number of vertices recorded in the SMRD.
Int_t fNVtxOther
The number of vertices recorded anywhere which does not fall into the other available categories...
Int_t fNVtxP0DECal
The number of vertices recorded in the P0D ECal.
Int_t fNVtxFGD1
The number of vertices recorded in FGD 1.
A base class for analysis output modules which contain event truth information.
Int_t fNVtxP0D
The number of vertices recorded in the P0D.
Int_t Compare(const TObject *obj) const
Compare the values of the vertices' IDs so that a TClonesArray can be sorted in order of increasing I...
Int_t fNVtxRestOfOffAxis
The number of vertices recorded in the rest of the off-axis detector.
TLorentzVector NeutrinoMomentum
The four-momentum of the incoming neutrino. Set to (-999999.9, -999999.9, -999999.9, -999999.9) in the absence of a neutrino.
virtual void InitializeBranches()
Initialize Branches. Don't do anything else in this function.
Int_t Subdetector
Subdetector which the vertex occurs in.
std::vector< Int_t > PrimaryTrajIDs
ID numbers which uniquely identify the trajectories of the primary particles of the vertex within the...
Int_t fNVtx
The total number of vertices recorded.
virtual Bool_t ProcessFirstEvent(ND::TND280Event &)
Is called after the first event is loaded in.
ClassDef(ND::TTruthVerticesModule::TTruthVertex, 1)
Int_t ID
A number which uniquely identifies this vertex within the event. This ID is the interface between the...
Double_t Fiducial
The distance inside the local fiducial volume [mm]. Not currently set for any detector other than the...
Int_t fNVtxSFG
The number of vertices recorded in SFG.
TLorentzVector Position
Position and time of the vertex.
TTruthVerticesModule(const char *name="Vertices", const char *title="True Primary Vertex information")
Int_t NPrimaryTraj
The number of primary trajectories (ie: the number of primary particles exiting the interaction verte...
virtual bool FillTree(ND::TND280Event &)
Fill all the stuff that goes in the output tree.