HighLAND
|
This namespace contains useful functions for analyses related to kinematics. More...
Functions | |
void | CreateArray (AnaP0DCluster **&tgtArr, int nObj) |
void | CopyArray (AnaP0DCluster **const &src, AnaP0DCluster **&dest, int n) |
void | CreateArray (AnaP0DHit **&tgtArr, int nObj) |
void | CopyArray (AnaP0DHit **const &src, AnaP0DHit **&dest, int n) |
void | AddStandardCategories (const std::string &prefix="") |
Add the standard categories only, given a prefix for their name. | |
void | AddStandardAntiNumuCategories (const std::string &prefix="") |
Add the standard categories only, given a prefix for their name. | |
Int_t | GetTopology (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Classify reaction topologies. More... | |
Int_t | GetTopology_no1pi (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Int_t | GetTopology_withpi0 (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Classify the topology type for nu-mu CC pi-zero analysis. | |
Int_t | GetTopologyCCPiZero (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Int_t | GetMECTopology (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Classify reaction topologies in special attention to MEC process. | |
void | FillCategories (AnaEventB *event, AnaTrack *track, const std::string &prefix, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false, bool useCATSAND=true) |
Fill the track categories for color drawing. | |
void | FillCategories (AnaEventB *event, AnaTrack *track, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false, bool useCATSAND=true) |
void | FillCategories (const AnaTrueVertexB *vertex, const std::string &prefix, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false, bool IsSand=false) |
void | FillCategories (const AnaTrueVertexB *vertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false, bool IsSand=false) |
void | SetCategoriesDefaultCode (const std::string &prefix, const int code=CATNOTRUTH) |
DEPRECATED (void FillTruthTreeCategories(const AnaTrueVertex &trueVertex, const std::string &prefix, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false)) | |
Fill the track categories for color drawing. | |
DEPRECATED (void FillTruthTreeCategories(const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false)) | |
Int_t | GetAntiNuMuParent (AnaTrueVertex *trueVertex, AnaTrack *track) |
Int_t | GetReaction (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Classify reaction types. | |
Int_t | GetReactionCC (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Int_t | GetReactionNoFgdFv (const AnaTrueVertex &trueVertex, bool IsAntinu=false) |
Int_t | GetReactionSand (const AnaEventB &event, const AnaTrack &track, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Int_t | GetReactionSand (const AnaEventB &event, const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Int_t | GetReactionSandCC (const AnaEventB &event, const AnaTrack &track, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Int_t | GetReactionSandCC (const AnaEventB &event, const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1, bool IsAntinu=false) |
Int_t | GetTopology_antinu (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Classify reaction types for antinu. | |
Int_t | GetTopology_no1pi_antinu (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetTopology_withpi0_antinu (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetTopologyCCPiZero_antinu (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetMECTopology_antinu (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetReaction_antinu (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetReactionCC_antinu (const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetReactionNoFgdFv_antinu (const AnaTrueVertex &trueVertex) |
Int_t | GetReactionSand_antinu (const AnaEventB &event, const AnaTrack &track, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetReactionSand_antinu (const AnaEventB &event, const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetReactionSandCC_antinu (const AnaEventB &event, const AnaTrack &track, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetReactionSandCC_antinu (const AnaEventB &event, const AnaTrueVertex &trueVertex, const SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Int_t | GetTargetCode (const AnaTrueVertex *trueVertex) |
Get the code for filling the target PDG category. | |
template<size_t SIZE, class T > | |
size_t | size_array (T(&)[SIZE]) |
ProdId_h | GetProductionIdFromND280AnalysisTools () |
Get Production Id from nd280AnalysisTools. | |
int | GetAllTracksUsingDet (const AnaBunchB &bunch, SubDetId::SubDetEnum det, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingFGDAndNoTPC (const AnaBunchB &bunch, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingFGDorTPC (const AnaBunchB &bunch, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingOnlyDet (const AnaBunchB &bunch, SubDetId::SubDetEnum det, AnaTrackB *selTracks[]) |
void | ComputeTPCPullIncludingKaon (const AnaTPCParticleB &track, Float_t *pulls) |
Function to recompute the pull for a TPC track segment including the kaon hypothesis. | |
Float_t | GetPIDLikelihoodIncludingKaon (const AnaTrackB &track, Int_t hypo, bool prod5Cut=0) |
void | GetPIDLikelihoodIncludingKaon (const AnaTrackB &, Float_t *hypo, bool prod5Cut=0) |
Get all likelihoods including kaons. | |
int | GetAllChargedTrajOnlyDsECal (const AnaEventB &event, AnaTrueParticleB *DsECalChargedTracks[]) |
int | GetAllChargedTrajOnlyBrECal (const AnaEventB &event, AnaTrueParticleB *BrECalChargedTracks[]) |
AnaVertexB * | GetGlobalVertex (const AnaEventB &event, AnaTrackB **Tracks, int nTracks) |
bool | FillTrueVertexRooInfo (AnaTrueVertexB *vertexB, Int_t RunID, bool Neut, bool Genie, Int_t NNVtx, TClonesArray *NVtx, Int_t NGVtx, TClonesArray *GVtx, bool &foundCohOnH, bool &foundPauliBlocked) |
void | VectorToArray (const TLorentzVector &v, Float_t *array) |
void | VectorToArray (const TVector3 &v, Float_t *array) |
TVector3 | ArrayToTVector3 (const Float_t *array) |
TLorentzVector | ArrayToTLorentzVector (const Float_t *array) |
Float_t | ScalarProduct (Float_t *array1, Float_t *array2, Int_t size=3) |
Scalar product of two Float_t arrays. Provided their size. | |
void | ConfigureTreeBranch (TTree *tree, const char *bname, void *add, TBranch **ptr=0) |
void | ClearArray (AnaRecObjectC **objArr, int nObj) |
void | ClearArray (AnaTrueObjectC **objArr, int nObj) |
void | ReserveArray (Int_t *arr, int n, Int_t ini=-999.) |
void | ReserveArray (Float_t *arr, int n, Float_t ini=-999.) |
void | CopyArray (const Int_t *src, Int_t *dest, int n) |
void | CopyArray (const Float_t *src, Float_t *dest, int n) |
void | CopyArray (const Double_t *src, Float_t *dest, int n) |
void | CopyArray (AnaRecObjectC **tgtArr, AnaRecObjectC **srcArr, int nObj) |
void | CopyArray (AnaTrueObjectC **tgtArr, AnaTrueObjectC **srcArr, int nObj) |
void | CreateArray (Weight_h *&tgtArr, int nObj, Weight_h ini=1) |
Create variable sized arrays of pointers. | |
void | CreateArray (AnaRecObjectC **&tgtArr, int nObj) |
void | CreateArray (AnaTrueObjectC **&tgtArr, int nObj) |
void | CreateArray (Float_t *&tgtArr, int nObj, Float_t ini=0) |
void | CreateArray (Int_t *&tgtArr, int nObj, Int_t ini=0) |
void | CreateArray (bool *&tgtArr, int nObj, bool ini=true) |
void | ResizeArray (AnaRecObjectC **&tgtArr, int nObj) |
void | ResizeArray (AnaTrueObjectC **&tgtArr, int nObj) |
void | ResizeArray (Int_t *&tgtArr, int nObj) |
bool | CheckSkimmedEvent (Int_t sRun, Int_t sSubrun, Int_t sEvt) |
void | ClearArray (AnaTrackB *arr[], int n) |
void | ClearArray (AnaParticleB *arr[], int n) |
void | ClearArray (AnaTrueParticleB *arr[], int n) |
void | ClearArray (AnaTPCParticleB *arr[], int n) |
void | ClearArray (AnaFGDParticleB *arr[], int n) |
void | ClearArray (AnaECALParticleB *arr[], int n) |
void | ClearArray (AnaP0DParticleB *arr[], int n) |
void | ClearArray (AnaSMRDParticleB *arr[], int n) |
void | ReserveArray (AnaTrackB *arr[], int n) |
void | ReserveArray (AnaParticleB *arr[], int n) |
void | ReserveArray (AnaTrueParticleB *arr[], int n) |
void | ReserveArray (AnaTPCParticleB *arr[], int n) |
void | ReserveArray (AnaFGDParticleB *arr[], int n) |
void | ReserveArray (AnaECALParticleB *arr[], int n) |
void | ReserveArray (AnaP0DParticleB *arr[], int n) |
void | ReserveArray (AnaSMRDParticleB *arr[], int n) |
void | ReclaimArray (AnaTrackB *arr[], int n, int size) |
void | ReclaimArray (AnaParticleB *arr[], int n, int size) |
void | ReclaimArray (AnaTrueParticleB *arr[], int n, int size) |
void | ReclaimArray (AnaTPCParticleB *arr[], int n, int size) |
void | ReclaimArray (AnaFGDParticleB *arr[], int n, int size) |
void | ReclaimArray (AnaECALParticleB *arr[], int n, int size) |
void | ReclaimArray (AnaP0DParticleB *arr[], int n, int size) |
void | ReclaimArray (AnaSMRDParticleB *arr[], int n, int size) |
void | CopyArray (AnaTrackB **const &src, AnaTrackB **&dest, int n) |
void | CopyArray (AnaECALParticleB **const &src, AnaECALParticleB **&dest, int n) |
void | CopyArray (AnaRecObjectC **tgtArr, AnaParticleB **srcArr, int nObj) |
void | CopyArray (AnaRecObjectC **tgtArr, AnaTrackB **srcArr, int nObj) |
void | CopyArray (AnaTrueObjectC **tgtArr, AnaTrueParticleB **srcArr, int nObj) |
void | CreateArray (AnaTrackB **&tgtArr, int nObj) |
Create varaible sized arrays of pointers. | |
void | CreateArray (AnaTrueParticleB **&tgtArr, int nObj) |
void | CreateArray (AnaVertexB **&tgtArr, int nObj) |
void | CreateArray (AnaTrueVertexB **&tgtArr, int nObj) |
void | CreateArray (AnaFgdTimeBinB **&tgtArr, int nObj) |
void | CreateArray (AnaParticleB **&tgtArr, int nObj) |
void | CreateArray (AnaTPCParticleB **&tgtArr, int nObj) |
void | CreateArray (AnaFGDParticleB **&tgtArr, int nObj) |
void | CreateArray (AnaECALParticleB **&tgtArr, int nObj) |
void | CreateArray (AnaP0DParticleB **&tgtArr, int nObj) |
void | CreateArray (AnaSMRDParticleB **&tgtArr, int nObj) |
void | CreateArray (AnaDetCrossingB **&tgtArr, int nObj) |
void | CreateArray (SubDetId::SubDetEnum *&tgtArr, int nObj, SubDetId::SubDetEnum ini=SubDetId::kInvalid) |
void | CopyArray (AnaTrueParticleB **const &src, AnaTrueParticleB **&dest, int n) |
void | CopyArray (AnaParticleB **const &src, AnaParticleB **&dest, int n) |
void | ResizeArray (AnaTrueParticleB **&tgtArr, int nObj) |
void | ResizeArray (AnaTrackB **&tgtArr, int nObj) |
void | ResizeArray (AnaFgdTimeBinB **&tgtArr, int nObj) |
bool | InDetVolume (SubDetId::SubDetEnum det, const Float_t *pos) |
bool | InFiducialVolume (SubDetId::SubDetEnum det, const Float_t *pos, const Float_t *FVdefmin, const Float_t *FVdefmax) |
bool | InFiducialVolume (SubDetId::SubDetEnum det, const Float_t *pos) |
Int_t | GetFgdModuleType (bool IsMC, const Float_t *pos, SubDetId::SubDetEnum det, bool includeGlueSkin=true) |
Int_t | GetFgdModuleTypeNoFV (bool IsMC, const Float_t *pos, bool includeGlueSkin=true) |
Int_t | GetFgdMaterial (bool IsMC, const Float_t *pos, SubDetId::SubDetEnum det) |
Int_t | GetFgdMaterialNoFV (bool IsMC, const Float_t *pos) |
SubDetId::SubDetEnum | GetDetector (const Float_t *pos) |
Return the detector in which the position is. | |
Int_t | GetOneSegmentPerTPC (AnaTPCParticleB *in[], Int_t nseg, AnaTPCParticleB *out[]) |
SubDetId::SubDetEnum | GetClosestTPC (const AnaTrackB &track) |
For tracks that start in the FGD, get the closest TPC in the direction of the track. | |
int | GetSegmentsInDet (const AnaTrackB &track, SubDetId::SubDetEnum det, AnaParticleB *selTracks[]) |
AnaParticleB * | GetSegmentWithMostNodesInDet (const AnaTrackB &track, SubDetId::SubDetEnum det) |
Method to get the subtrack with most nodes in a given detector. | |
AnaParticleB * | GetSegmentWithMostNodesInClosestTpc (const AnaTrackB &track) |
Combined function to address NuMu selection needs as efficiently as possible - gets the TPC segment with the most nodes in the TPC closest to the start of the global track. | |
AnaParticleB * | GetSegmentWithMostNodesInClosestTpc (const AnaTrackB &track, const Float_t *pos) |
Same as above but closest to a given point. | |
AnaParticleB * | GetSegmentInDet (const AnaTrackB &track, SubDetId::SubDetEnum det) |
bool | HasTrackUsingTPC (const AnaEventB &event) |
int | GetAllChargedTrajInTPCInBunch (const AnaEventB &event, AnaTrueParticleB *traj[]) |
int | GetAllChargedTrajInFGDInBunch (const AnaEventB &event, AnaTrueParticleB *traj[], SubDetId::SubDetEnum det) |
int | GetAllBigEnoughChargedTrajInTPCInBunch (const AnaEventB &event, AnaTrueParticleB *chargedtrajInBunch[]) |
int | GetAllChargedTrajInTPCFGDInBunch (const AnaEventB &event, AnaTrueParticleB *chargedtrajInBunch[]) |
int | GetAllChargedTrajInFGDAndNoTPCInBunch (const AnaEventB &event, AnaTrueParticleB *chargedtrajInBunch[], SubDetId::SubDetEnum det) |
int | GetAllChargedTrajInP0DInBunch (const AnaEventB &event, AnaTrueParticleB *chargedTrajInBunch[]) |
int | GetAllChargedTrajInP0DAndTPCInBunch (const AnaEventB &event, AnaTrueParticleB *chargedTrajInBunch[]) |
int | GetAllChargedTrajInP0DAndNoTPCInBunch (const AnaEventB &event, AnaTrueParticleB *chargedTrajInBunch[]) |
int | GetAllTracksUsingP0D (const AnaEventB &event, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingFGD (const AnaEventB &event, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingTPC (const AnaEventB &event, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingFGDorTPC (const AnaEventB &event, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingECAL (const AnaEventB &event, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingSMRD (const AnaEventB &event, AnaTrackB *selTracks[]) |
int | GetAllTracksUsingFGDAndNoTPC (const AnaEventB &event, AnaTrackB *selTracks[], SubDetId::SubDetEnum fgddet) |
int | GetNTracksUsingTPCAndDet (const AnaEventB &event, SubDetId::SubDetEnum det) |
Returns the number of tracks using both the TPC and the subdetector 'det'. | |
bool | UsesTrackerDsEcal (AnaTrackB *track) |
Whether this track has an ecal segment in the TrackerECal or DsECal. | |
bool | UsesTrackerDsEcal (AnaECALParticleB *ecal) |
Whether this ecal segment is in the TrackerECal or DsECal (i.e. not in the P0DECal). | |
int | GetTrackerDsEcals (AnaTrackB *track, AnaECALParticleB *selTracks[]) |
AnaTPCParticleB * | GetTPCBackSegment (const AnaTrackB *track) |
Get the most dowstream TPC segment of the track. | |
AnaECALParticleB * | GetMostUpstreamECalSegment (AnaTrackB *track) |
int | GetLocalDetEnum (SubDetId::SubDetEnum det, int i) |
Return an integer corresponding to the array index of the track in the old local detector enumeration. More... | |
massComponentEnum | GetMassComponent (bool IsMC, const Float_t *pos) |
Get the detector component in which the position is. | |
int | GetFGDMichelElectrons (const AnaEventB &event, const SubDetId::SubDetEnum det, AnaFgdTimeBinB **arr, bool prod5Cut=0) |
Get all delayed time bins as Michel Electron candidates. | |
Float_t | MagnetIntensityCorrection (Int_t Run) |
int | GetRunPeriod (int run, int subrun=-1) |
Returns the run period (sequentially: 0,1,2,3,4,5 ...) More... | |
int | GetSandMode (int run) |
Returns the sans muon modes (sequentially: 0,1,2) | |
template<int nIntBins, int nMomBins> | |
void | LoadPionCrossSections (char *inputFileName, Float_t(&xsec_array)[nIntBins][nMomBins], Float_t(&err_array)[nIntBins][nMomBins]) |
Method to load external ipon cross section data into arrays. | |
double | GetNTargets (massComponentEnum massComponent=kFGD1, int target_nucleons=3) |
double | GetNucleonsPerNucleus (massComponentEnum massComponent=kFGD1, int target_nucleons=3) |
double | GetAreaFV (massComponentEnum massComponent=kFGD1) |
void | IncrementPOTBySpill (const AnaSpillB &spill, Header &header) |
Float_t | ComputeInversePT (const AnaDetCrossingB &cross, bool entrance=true) |
Compute inverse PT given an AnaDetCrossing. | |
Float_t | ComputeInversePTFlip (const AnaTrackB &track) |
Float_t | ComputeMomentumFromInversePTFlip (const AnaParticleB &part, Float_t PTinv) |
Compute the total momentum (flip) given the part and the inverse transverse momentum. | |
Float_t | ComputeTPCPull (const AnaTPCParticleB &track, const std::string &particle) |
Function to recompute the pull for a TPC track segment. | |
void | ComputeTPCPull (const AnaTPCParticleB &track, Float_t *pulls) |
Function to recompute the pull for a TPC track segment for all hypotheses. | |
void | RecomputeTPCPulls (AnaTPCParticleB &track) |
Function to recompute all the pull for a TPC track segment and save them into the segment. | |
Float_t | ExpectedTPCdEdx (const AnaTPCParticleB &track, const std::string &particle) |
Float_t | GetPIDLikelihood (const AnaTrackB &track, Int_t hypo, bool prod5Cut=0) |
void | GetPIDLikelihood (const AnaTrackB &, Float_t *hypo, bool prod5Cut=0) |
Get all likelihoods. | |
Float_t | GetPIDLikelihoodMIP (const AnaTrackB &track) |
Get the likelihood for MIP: (like_mu+like_pi)/(1-like_p) | |
Float_t | GetPIDPrior (const AnaTrackB &track, Int_t hypo) |
A function that is not currently used, and will be documented when it is. | |
Int_t | GetNMichelElectrons (const AnaTrueVertexB &trueVertex, SubDetId::SubDetEnum det=SubDetId::kFGD1) |
Get the number of true michel electrons. More... | |
Float_t | GetTrueLinearLengthInTPC (const AnaTrueParticleB &trueTrack, Float_t &distz) |
Return the true linear length traversed in the TPC. | |
int | GetAllChargedTrajsInFgdECalInBunch (const AnaEventB &event, AnaTrueParticleB *outTraj[], SubDetId::SubDetEnum det) |
int | GetAllTrajsInECalInBunch (const AnaEventB &event, AnaTrueParticleB *outTraj[]) |
bool | TrueParticleCrossesSMRD (const AnaTrueParticleB *track, Float_t min_sep=48.) |
bool | TrueParticleCrossesTECal (const AnaTrueParticleB *track, Float_t min_sep=50.) |
bool | TrueParticleCrossesFGD (const AnaTrueParticleB *track, SubDetId::SubDetEnum det=SubDetId::kFGD) |
Whether a true track crosses a FGD so to be able to deposit charge in at least two layers. | |
bool | TrueParticleCrossesTPC (const AnaTrueParticleB *track, SubDetId::SubDetEnum det=SubDetId::kTPC) |
Whether a true track crosses a TPC so to be able to reconstruct an object. | |
bool | TrueParticleEntersDet (const AnaTrueParticleB *track, SubDetId::SubDetEnum det) |
Whether a true track enters a given sub-detector. More... | |
int | GetSMRDDetCrossed (const AnaTrueParticleB *track, SubDetId::SubDetEnum det[]) |
SMRD detectors crossed. | |
int | GetECalDetCrossed (const AnaTrueParticleB *track, SubDetId::SubDetEnum det[]) |
ECal detectors crossed: split based on geom info PECal and TECal sub-detectors, this may not be very accurate. | |
int | GetFGDDetCrossed (const AnaTrueParticleB *track, SubDetId::SubDetEnum det[]) |
FGD detectors crossed. | |
AnaDetCrossingB * | GetAnaDetCrossing (const AnaTrueParticleB *track, SubDetId::SubDetEnum det) |
Float_t | GetEntranceMomentum (const AnaDetCrossingB &cross) |
Get the momentum value from AnaDetCrossing. | |
Float_t | GetExitMomentum (const AnaDetCrossingB &cross) |
Get the momentum value from AnaDetCrossing. | |
std::string | GetSoftwareVersionFromPath (const std::string &path) |
Get The software version from the path of the package. | |
std::string | GetPackageNameFromProgram (const std::string &program) |
Get the package name provided the name of the executable being run. | |
std::string | GetPackageNameFromPath (const std::string &path) |
Get the package name provided a path containing the package name. | |
std::vector< std::string > | GetPackageHierarchy () |
Get the vector of packages ordered following the package hierarchy. | |
float | GetSeparationSquared (const Float_t *pos1, const Float_t *pos2) |
Calculate the distance between two points. | |
std::vector< Float_t > | ComputeWeights (const AnaEventB &event) |
Compute all event weights (FluxWeight, etc. not the systematic ones !!!) and return the vector. | |
AnaTrueParticleB * | GetTrueParticleByID (const AnaEventB &event, int ID) |
Get the AnaTrueParticleB in the current spill with the given ID. Return NULL if it can't be found. | |
std::vector< AnaTrackB * > | MergeUniqueTracks (const std::vector< AnaTrackB *> &tracks1, const std::vector< AnaTrackB *> &tracks2) |
Merge the two vectors of AnaTrackBs into a single vector, with no duplicated tracks. | |
Float_t | GetParticleMass (ParticleId::ParticleEnum id) |
Float_t | ComputeBetaGamma (Float_t mom, ParticleId::ParticleEnum id) |
Float_t | ComputeBeta (Float_t mom, ParticleId::ParticleEnum id) |
Float_t | ComputeInversePT (const AnaParticleMomB &part) |
compute the inverse transverse momentum given an AnaParticleMomB | |
Float_t | ComputeInversePT (const AnaParticleB &part, Float_t mom) |
compute the inverse transverse momentum given an AnaParticleB and the momentum | |
Float_t | ComputeInversePT (const AnaTrueParticleB &part) |
compute the inverse transverse momentum for a true part | |
Float_t | ComputeMomentumFromInversePT (const AnaParticleB &part, Float_t PTinv) |
compute the total momentum given the part and the inverse transverse momentum | |
Float_t | NeutrinoERecCCQE (Float_t mom_lepton, Float_t mass_lepton, Float_t costheta_lepton) |
Float_t | ComputeInvariantMass (const AnaParticleMomB &part1, const AnaParticleMomB &part2, Float_t mass1, Float_t mass2) |
Get invariant mass given two AnaParticleB's and corresponding masses. | |
Float_t | ComputeRecNuEnergyCCQE (Float_t mom_lepton, Float_t mass_lepton, Float_t costheta_lepton, Float_t bindingEnergy=25.) |
Float_t | ComputeRecQ2CCQE (Float_t mom_lepton, Float_t mass_lepton, Float_t costheta_lepton) |
Float_t | ComputeQ2 (Float_t mom_lepton, Float_t mass_lepton, Float_t costheta_lepton, Float_t energy_neutrino) |
Float_t | ComputeKineticEnergy (Float_t mom, Float_t mass) |
Compute kinetic energy given momentum and mass. | |
Float_t * | GetSLineDir (Float_t *start, Float_t *end) |
Direction assuming straight line between given start and end points. | |
TVector3 | ProjectTransverse (TVector3 &nudir, TVector3 &thisvec) |
Float_t | GetDPhi (const Float_t *nudir, const Float_t *mudir, const Float_t *pdir) |
Returns pi-(the angle between muon and proton). Should be delta-fn in ideal back2back. | |
Float_t | GetTransverseMom (const Float_t *nudir, const Float_t *thisdir, Float_t thismom) |
Get the transverse momentum. | |
void | InitializeNeutrinoBeamLineParameters () |
void | SetNeutrinoParentDecPointRec (TVector3 &vec) |
TVector3 | CalcNuDir (TVector3 &nup0Global, TVector3 &nup1Local) |
TVector3 | GetNuDirRec (const Float_t vertex_pos[]) |
Int_t | GetNSegmentsInDet (const AnaTrackB &track, SubDetId::SubDetEnum det) |
Get the number of AnaParticle segments that use the specified detector system. | |
bool | HasTrackUsingDet (const AnaEventB &event, SubDetId::SubDetEnum det) |
int | GetAllTrajInBunch (const AnaEventB &event, AnaTrueParticleB *traj[]) |
int | GetAllChargedTrajInBunch (const AnaEventB &event, AnaTrueParticleB *traj[]) |
int | GetAllTracksUsingDet (const AnaEventB &event, SubDetId::SubDetEnum det, AnaTrackB *selTracks[]) |
int | GetAllTracksNotUsingDet (const AnaEventB &event, SubDetId::SubDetEnum det, AnaTrackB *selTracks[]) |
bool | TrackUsesDets (const AnaTrackB &track, SubDetId::SubDetEnum dets[], int nDets) |
bool | TrackUsesDet (const AnaTrackB &track, SubDetId::SubDetEnum det) |
bool | TrackUsesDet (const AnaParticleB &track, SubDetId::SubDetEnum det) |
int | GetAllTracksUsingOnlyDet (const AnaEventB &event, SubDetId::SubDetEnum det, AnaTrackB *selTracks[]) |
bool | TrackUsesOnlyDet (const AnaTrackB &track, SubDetId::SubDetEnum det) |
bool | TrackUsesOnlyDet (const AnaParticleB &track, SubDetId::SubDetEnum det) |
Variables | |
CategoryManager * | _categ =NULL |
std::string | skimFileName ="" |
bool | breakLoop =false |
bool | NeutrinoBeamLineParametersInitialized =false |
Float_t | BeamPipePosition [3] ={0,0,0} |
Float_t | NeutrinoParentDecay [3] ={0,0,0} |
This namespace contains useful functions for analyses related to kinematics.
This namespace contains useful functions for analyses. Functions include those related to fiducial volumes, accessing tracks with specific characteristics, and more.
This namespace contains useful functions for analyses. This is in addition to those defined in psycheUtils
This namespace contains useful functions for analyses SHOULD CONSIDER TEMPLATING THE METHODS!
Float_t anaUtils::ComputeQ2 | ( | Float_t | mom_lepton, |
Float_t | mass_lepton, | ||
Float_t | costheta_lepton, | ||
Float_t | energy_neutrino | ||
) |
Compute the Q2 using muon variables and neutrino energy It considers neutron/proton mass difference and binding energy.
Definition at line 178 of file KinematicsUtils.cxx.
Float_t anaUtils::ComputeRecNuEnergyCCQE | ( | Float_t | mom_lepton, |
Float_t | mass_lepton, | ||
Float_t | costheta_lepton, | ||
Float_t | bindingEnergy = 25. |
||
) |
Compute the reconstructed neutrino energy assuming CCQE kinematics. It considers neutron/proton mass difference and binding energy.
Definition at line 138 of file KinematicsUtils.cxx.
Float_t anaUtils::ComputeRecQ2CCQE | ( | Float_t | mom_lepton, |
Float_t | mass_lepton, | ||
Float_t | costheta_lepton | ||
) |
Compute the reconstructed Q2 assuming CCQE kinematics to compute neutrino energy. It considers neutron/proton mass difference and binding energy.
Definition at line 163 of file KinematicsUtils.cxx.
Float_t anaUtils::ExpectedTPCdEdx | ( | const AnaTPCParticleB & | track, |
const std::string & | particle | ||
) |
Compute the expected TPC dEdx for a track, using a different parameterisation than the one in tpcRecon.
Definition at line 36 of file PIDUtils.cxx.
int anaUtils::GetAllBigEnoughChargedTrajInTPCInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | chargedtrajInBunch[] | ||
) |
Get all the true traj. in the bunch that are charged and crosses the TPC with a length > 1/4 of the TPC Returns the number of entries in the input array, the number of tracks found
Definition at line 1039 of file ConstituentsUtils.cxx.
int anaUtils::GetAllChargedTrajInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | traj[] | ||
) |
Get all the true traj. in the bunch that are charged Returns the number of entries in the input array, the number of tracks found
Definition at line 26 of file SubDetUtils.cxx.
int anaUtils::GetAllChargedTrajInFGDAndNoTPCInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | chargedtrajInBunch[], | ||
SubDetId::SubDetEnum | det | ||
) |
Get all the true traj. in the bunch that are charged and crosses the the FGD but not the TPC Returns the number of entries in the input array, the number of tracks found
Definition at line 967 of file ConstituentsUtils.cxx.
int anaUtils::GetAllChargedTrajInFGDInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | traj[], | ||
SubDetId::SubDetEnum | det | ||
) |
Get all the true traj. in the bunch that are charged and crosses the FGD Returns the number of entries in the input array, the number of tracks found
Definition at line 925 of file ConstituentsUtils.cxx.
int anaUtils::GetAllChargedTrajInTPCFGDInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | chargedtrajInBunch[] | ||
) |
Get all the true traj. in the bunch that are charged and crosses the TPC and the FGD (TPC1-FGD1, FGD1-TPC2, TPC2-FGD2, FGD2-TPC3) Returns the number of entries in the input array, the number of tracks found
Definition at line 999 of file ConstituentsUtils.cxx.
int anaUtils::GetAllChargedTrajInTPCInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | traj[] | ||
) |
Get all the true traj. in the bunch that are charged and crosses the TPC Returns the number of entries in the input array, the number of tracks found
Definition at line 900 of file ConstituentsUtils.cxx.
int anaUtils::GetAllChargedTrajOnlyDsECal | ( | const AnaEventB & | event, |
AnaTrueParticleB * | DsECalChargedTracks[] | ||
) |
*****mirar esto!! luego añadir varibales q puso sasha y mirar si pinta micro tree, añadir edeposit y posicion a ver q pinta y asociar edeposit con emenergy || mip energy
Definition at line 45 of file HighlandAnalysisUtils.cxx.
int anaUtils::GetAllChargedTrajsInFgdECalInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | outTraj[], | ||
SubDetId::SubDetEnum | det | ||
) |
Get all the true traj. in the bunch that are charged and cross the FGD and ECal (Barrel) and no TPC Returns the number of entries in the input array, the number of tracks found
Definition at line 56 of file TruthUtils.cxx.
int anaUtils::GetAllTracksNotUsingDet | ( | const AnaEventB & | event, |
SubDetId::SubDetEnum | det, | ||
AnaTrackB * | selTracks[] | ||
) |
Get all the tracks not using a specific detector. See SubDetId::SubDetEnum for the detector numbering convention. Returns the number of entries in the input array, the number of tracks found
Definition at line 72 of file SubDetUtils.cxx.
int anaUtils::GetAllTracksUsingDet | ( | const AnaEventB & | event, |
SubDetId::SubDetEnum | det, | ||
AnaTrackB * | selTracks[] | ||
) |
Get all the tracks using a specific detector. See SubDetId::SubDetEnum for the detector numbering convention. Returns the number of entries in the input array, the number of tracks found
Definition at line 56 of file SubDetUtils.cxx.
int anaUtils::GetAllTracksUsingDet | ( | const AnaBunchB & | bunch, |
SubDetId::SubDetEnum | det, | ||
AnaTrackB * | selTracks[] | ||
) |
Get all the tracks in a given bunch using a specific detector. See SubDetId::SubDetEnum for the detector numbering convention. Returns the number of entries in the input array, the number of tracks found
Definition at line 7 of file HighlandConstituentsUtils.cxx.
Access function to get all the tracks in the bunch that use the ECAL, sorted by decreasing momentum. Returns the number of entries in the input array, the number of tracks found
Definition at line 1223 of file ConstituentsUtils.cxx.
Access function to get all the tracks in the bunch that use the FGD, sorted by decreasing momentum. Returns the number of entries in the input array, the number of tracks found
Definition at line 1211 of file ConstituentsUtils.cxx.
Access function to get all the tracks in the given bunch (AnaBunchB) that use the FGD and no TPC, sorted by decreasing NHits. Returns the number of entries in the input array, the number of tracks found
Definition at line 42 of file HighlandConstituentsUtils.cxx.
int anaUtils::GetAllTracksUsingFGDAndNoTPC | ( | const AnaEventB & | event, |
AnaTrackB * | selTracks[], | ||
SubDetId::SubDetEnum | fgddet | ||
) |
Access function to get all the tracks in the bunch that use the FGD and no TPC, sorted by decreasing NHits. Returns the number of entries in the input array, the number of tracks found
Definition at line 1160 of file ConstituentsUtils.cxx.
Access function to get all the tracks in the given bunch (AnaBunchB) that use the FGD or TPC, not sorted. Returns the number of entries in the input array, the number of tracks found
Definition at line 62 of file HighlandConstituentsUtils.cxx.
Access function to get all the tracks in the bunch that use the TPC or the FGD, sorted by decreasing number of hits Returns the number of entries in the input array, the number of tracks found
Definition at line 1180 of file ConstituentsUtils.cxx.
int anaUtils::GetAllTracksUsingOnlyDet | ( | const AnaBunchB & | bunch, |
SubDetId::SubDetEnum | det, | ||
AnaTrackB * | selTracks[] | ||
) |
Get all the tracks in a given bunch using only a specific detector. See SubDetId::SubDetEnum for the detector numbering convention. Returns the number of entries in the input array, the number of tracks found
Definition at line 24 of file HighlandConstituentsUtils.cxx.
int anaUtils::GetAllTracksUsingOnlyDet | ( | const AnaEventB & | event, |
SubDetId::SubDetEnum | det, | ||
AnaTrackB * | selTracks[] | ||
) |
Get all the tracks using only a specific detector. See SubDetId::SubDetEnum for the detector numbering convention. Returns the number of entries in the input array, the number of tracks found
Definition at line 89 of file SubDetUtils.cxx.
Access function to get all the tracks in the bunch that use the P0D, sorted by decreasing momentum. Returns the number of entries in the input array, the number of tracks found
Definition at line 1205 of file ConstituentsUtils.cxx.
Access function to get all the tracks in the bunch that use the SMRD, sorted by decreasing momentum. Returns the number of entries in the input array, the number of tracks found
Definition at line 1229 of file ConstituentsUtils.cxx.
Access function to get all the tracks in the bunch that use the TPC, sorted by decreasing momentum. Returns the number of entries in the input array, the number of tracks found
Definition at line 1217 of file ConstituentsUtils.cxx.
int anaUtils::GetAllTrajInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | traj[] | ||
) |
Get all the true traj. in the bunch, Returns the number of entries in the input array, the number of tracks found
Definition at line 12 of file SubDetUtils.cxx.
int anaUtils::GetAllTrajsInECalInBunch | ( | const AnaEventB & | event, |
AnaTrueParticleB * | outTraj[] | ||
) |
Get all true tajs that cross ECal(s) (Barrel) Returns the number of entries in the input array, the number of tracks found
Definition at line 82 of file TruthUtils.cxx.
AnaDetCrossingB * anaUtils::GetAnaDetCrossing | ( | const AnaTrueParticleB * | track, |
SubDetId::SubDetEnum | det | ||
) |
Get an AnaDetCrossing corresponding to a given detector the first one found will be returned
Definition at line 422 of file TruthUtils.cxx.
Int_t anaUtils::GetAntiNuMuParent | ( | AnaTrueVertex * | trueVertex, |
AnaTrack * | track | ||
) |
Return the code for the "antinumuparent" category. Although this category is not one of the standard ones (it is added in antiNuMuCCAnalysis), the function is useful to have here as it is used in baseAnalysis::FillRedoSelectionVariables().
Int_t anaUtils::GetFgdModuleType | ( | bool | IsMC, |
const Float_t * | pos, | ||
SubDetId::SubDetEnum | det, | ||
bool | includeGlueSkin = true |
||
) |
Return the module type in which the position is water module, 1st half XY layer, 2nd half XY layer, gaps should be empty
Definition at line 1330 of file ConstituentsUtils.cxx.
AnaVertexB * anaUtils::GetGlobalVertex | ( | const AnaEventB & | event, |
AnaTrackB ** | Tracks, | ||
int | nTracks | ||
) |
An utility function that takes a set of tracks and returns a corresponding global vertex found in the event valid GV will be returned in case both tracks are its constituents (may be others), the first found will be returned note! it is assumed the GV for an event are ordered by PrimaryIndex, see TN-49
Definition at line 112 of file HighlandAnalysisUtils.cxx.
int anaUtils::GetLocalDetEnum | ( | SubDetId::SubDetEnum | det, |
int | i | ||
) |
Return an integer corresponding to the array index of the track in the old local detector enumeration.
Whether the ECal object is "contained" within the ECal volume. This is intended for deciding whether to trust the ECal EM energy or not. At the moment this is based on the start position of the shower. It will be updated to a more rigorous definition when production 5F files have been studied more closely.
AnaECALParticleB * anaUtils::GetMostUpstreamECalSegment | ( | AnaTrackB * | track | ) |
Get the most upstream ECal component of a track, based on either the start or end position. Fill the pos variable with the position used. Return NULL if not found.
Definition at line 1288 of file ConstituentsUtils.cxx.
Int_t anaUtils::GetNMichelElectrons | ( | const AnaTrueVertexB & | trueVertex, |
SubDetId::SubDetEnum | det = SubDetId::kFGD1 |
||
) |
Get the number of true michel electrons.
particles coming out the vertex
Definition at line 6 of file TruthUtils.cxx.
Float_t anaUtils::GetPIDLikelihood | ( | const AnaTrackB & | track, |
Int_t | hypo, | ||
bool | prod5Cut = 0 |
||
) |
The likelihood of a track being a given particle hypothesis, based on the pull values of all TPC segments in the track.
hypo is one of:
Definition at line 180 of file PIDUtils.cxx.
Float_t anaUtils::GetPIDLikelihoodIncludingKaon | ( | const AnaTrackB & | track, |
Int_t | hypo, | ||
bool | prod5Cut = 0 |
||
) |
The likelihood of a track being a given particle hypothesis including kaons, based on the pull values of all TPC segments in the track.
hypo is one of:
Definition at line 130 of file HighlandPIDUtils.cxx.
Int_t anaUtils::GetReactionSand | ( | const AnaEventB & | event, |
const AnaTrack & | track, | ||
const SubDetId::SubDetEnum | det = SubDetId::kFGD1 , |
||
bool | IsAntinu = false |
||
) |
Classify reaction types, Returns the same codes as GetReaction(), except for no '8', which corresponds to sand muons
Int_t anaUtils::GetRunPeriod | ( | int | run, |
int | subrun = -1 |
||
) |
Returns the run period (sequentially: 0,1,2,3,4,5 ...)
Whether the ECal object is "contained" within the ECal volume. This is intended for deciding whether to trust the ECal EM energy or not. At the moment this is based on the start position of the shower. It will be updated to a more rigorous definition when production 5F files have been studied more closely.
Definition at line 17 of file ND280AnalysisUtils.cxx.
AnaParticleB * anaUtils::GetSegmentInDet | ( | const AnaTrackB & | track, |
SubDetId::SubDetEnum | det | ||
) |
Get the AnaParticle segment that uses the specified detector. See SubDetId::SubDetEnum for the detector numbering convention.
Definition at line 325 of file ConstituentsUtils.cxx.
int anaUtils::GetSegmentsInDet | ( | const AnaTrackB & | track, |
SubDetId::SubDetEnum | det, | ||
AnaParticleB * | selTracks[] | ||
) |
Get the vector of AnaParticle segment that uses the specified detector. See SubDetId::SubDetEnum for the detector numbering convention. Return the number of entries in the input array, the number of tracks found
Definition at line 71 of file ConstituentsUtils.cxx.
Int_t anaUtils::GetTopology | ( | const AnaTrueVertex & | trueVertex, |
const SubDetId::SubDetEnum | det = SubDetId::kFGD1 , |
||
bool | IsAntinu = false |
||
) |
Classify reaction topologies.
primary particles from the true vertex
Definition at line 145 of file CategoriesUtils.cxx.
int anaUtils::GetTrackerDsEcals | ( | AnaTrackB * | track, |
AnaECALParticleB * | selTracks[] | ||
) |
Get the Tracker ECal and DsECal segments from the given track. Returns the number of entries in the input array, the number of tracks found
Definition at line 1262 of file ConstituentsUtils.cxx.
bool anaUtils::InDetVolume | ( | SubDetId::SubDetEnum | det, |
const Float_t * | pos | ||
) |
Whether the specified position is in the volume of the given detector. Accepted detectors are kFGD1, kFGD2, kP0D, kDSECal, k(Top, Bottom, Left, Right)T(P)ECal (or SMRD)
Definition at line 387 of file ConstituentsUtils.cxx.
bool anaUtils::InFiducialVolume | ( | SubDetId::SubDetEnum | det, |
const Float_t * | pos, | ||
const Float_t * | FVdefmin, | ||
const Float_t * | FVdefmax | ||
) |
Whether the specified position is in the fiducial volume of the given detector. Accepted detectors are kFGD1, kFGD2, kP0D, kDSECal, k(Top, Bottom, Left, Right)T(P)ECal (or SMRD) The fiducial volume is specified using the FVdefmin and FVdefmax vectors. These vectors are the amount of space to exclude, compared to the nominal side of the detector.
Definition at line 628 of file ConstituentsUtils.cxx.
Float_t anaUtils::MagnetIntensityCorrection | ( | Int_t | Run | ) |
Return a scale factor for the magnet intensity, based on the ND280 run number. THIS IS CURRENTLY DISABLED AND WILL ALWAYS RETURN 1!
Float_t anaUtils::NeutrinoERecCCQE | ( | Float_t | mom_lepton, |
Float_t | mass_lepton, | ||
Float_t | costheta_lepton | ||
) |
Compute the reconstructed neutrino energy assuming CCQE kinematics. Uses the "basic" formula which doesn't consider neutron/proton mass difference or binding energy.
Formula is E_rec = 0.5 * (2 * M_p * E_l - m_l^2) / (M_p - E_l + p_l * costheta_l), where M_ is mass, E_ is energy, p_ is momentum, p is proton, l is lepton.
Definition at line 128 of file KinematicsUtils.cxx.
TVector3 anaUtils::ProjectTransverse | ( | TVector3 & | nudir, |
TVector3 & | thisvec | ||
) |
---— Transverse plane (i.e w.r.t. to neutrino direction) calculations -------— Returns the projection of thisvec onto the transverse nu plane
Definition at line 214 of file KinematicsUtils.cxx.
bool anaUtils::TrackUsesDet | ( | const AnaTrackB & | track, |
SubDetId::SubDetEnum | det | ||
) |
Whether a track uses the specified detector system. See SubDetId::SubDetEnum for the detector numbering convention.
Definition at line 113 of file SubDetUtils.cxx.
bool anaUtils::TrackUsesDet | ( | const AnaParticleB & | track, |
SubDetId::SubDetEnum | det | ||
) |
Whether a subtrack uses the specified detector. See SubDetId::SubDetEnum for the detector numbering convention.
Definition at line 119 of file SubDetUtils.cxx.
bool anaUtils::TrackUsesDets | ( | const AnaTrackB & | track, |
SubDetId::SubDetEnum | dets[], | ||
int | nDets | ||
) |
Whether a track uses all the specified detector systems. See SubDetId::SubDetEnum for the detector numbering convention.
Definition at line 107 of file SubDetUtils.cxx.
bool anaUtils::TrackUsesOnlyDet | ( | const AnaTrackB & | track, |
SubDetId::SubDetEnum | det | ||
) |
Whether a track uses only the specified detector system. See SubDetId::SubDetEnum for the detector numbering convention.
Definition at line 125 of file SubDetUtils.cxx.
bool anaUtils::TrackUsesOnlyDet | ( | const AnaParticleB & | track, |
SubDetId::SubDetEnum | det | ||
) |
Whether a subtrack uses only the specified detector. See SubDetId::SubDetEnum for the detector numbering convention.
Definition at line 131 of file SubDetUtils.cxx.
bool anaUtils::TrueParticleCrossesSMRD | ( | const AnaTrueParticleB * | track, |
Float_t | min_sep = 48. |
||
) |
Whether a true track crosses a SMRD so to be able to deposit charge in at least one layer For the moment consider the minimum separation in the direction perpendicular to the beam as: 48 mm (iron) mm (we are intersted for tracks that come from inside, so should cross the first iron block) as it comes from oaAnalysis only one point is saved for SMRD, as I understand the code it should be the exit point so make a cut in X/Y distance between the point and particular surface inner border Note: this assumes track going from inside
Definition at line 186 of file TruthUtils.cxx.
bool anaUtils::TrueParticleCrossesTECal | ( | const AnaTrueParticleB * | track, |
Float_t | min_sep = 50. |
||
) |
Whether a true track crosses a TECal so to be able to reconstruct an object For the moment consider the minimum separation as four layers in the direction perpendicular to the beam (dealing with BarrelECal here) Note: this assumes track going from inside
Definition at line 134 of file TruthUtils.cxx.
bool anaUtils::TrueParticleEntersDet | ( | const AnaTrueParticleB * | track, |
SubDetId::SubDetEnum | det | ||
) |
Whether a true track enters a given sub-detector.
Check whether this TrueParticle enters a given subdetector.
Definition at line 108 of file TruthUtils.cxx.