1 #include "SubDetUtils.hxx" 15 for(Int_t i=0;i<
event.nTrueParticles;i++){
18 trajInBunch[count] =
event.TrueParticles[i];
29 for(Int_t i=0;i<
event.nTrueParticles;i++){
34 chargedtrajInBunch[count] =
event.TrueParticles[i];
45 for (
int it = 0; it <
event.nParticles; it++) {
60 for (
int it = 0; it <
event.nParticles; it++) {
63 selTracks[count] = track;
77 for (
int it = 0; it <
event.nParticles; it++) {
80 selTracks[count] = track;
94 for (
int it = 0; it <
event.nParticles; it++) {
97 selTracks[count] = track;
109 return SubDetId::GetDetectorArrayUsed(track.
Detector, dets, nDets);
AnaTrueVertexB * TrueVertex
Pointer to the AnaTrueVertexB of the interaction that created this AnaTrueParticleB.
int GetAllTracksUsingOnlyDet(const AnaBunchB &bunch, SubDetId::SubDetEnum det, AnaTrackB *selTracks[])
static bool TrackUsesOnlyDet(unsigned long BitFIeld, SubDetId::SubDetEnum det)
Check whether a track only uses a specified subdetector or detector system.
Int_t GetNSegmentsInDet(const AnaTrackB &track, SubDetId::SubDetEnum det)
Get the number of AnaParticle segments that use the specified detector system.
static int GetNSegmentsInDet(unsigned long BitFIeld, SubDetId::SubDetEnum det)
int GetAllTrajInBunch(const AnaEventB &event, AnaTrueParticleB *traj[])
static bool GetDetectorUsed(unsigned long BitField, SubDetId::SubDetEnum det)
Method to see if a certain subdetector or subdetector system is used.
bool TrackUsesDet(const AnaTrackB &track, SubDetId::SubDetEnum det)
int GetAllChargedTrajInBunch(const AnaEventB &event, AnaTrueParticleB *traj[])
Representation of a true Monte Carlo trajectory/particle.
SubDetEnum
Enumeration of all detector systems and subdetectors.
Representation of a global track.
Int_t Bunch
The index of this bunch (0-7).
int GetAllTracksNotUsingDet(const AnaEventB &event, SubDetId::SubDetEnum det, AnaTrackB *selTracks[])
AnaTrueParticleB ** TrueParticles
The true MC particles used in this spill.
bool TrackUsesDets(const AnaTrackB &track, SubDetId::SubDetEnum dets[], int nDets)
int GetAllTracksUsingDet(const AnaBunchB &bunch, SubDetId::SubDetEnum det, AnaTrackB *selTracks[])
Float_t Charge
The true charge of the particle.
Representation of a reconstructed particle (track or shower).
bool TrackUsesOnlyDet(const AnaTrackB &track, SubDetId::SubDetEnum det)