Belle II Software development
|
Helper functions for all klid modules to improve readability of the code. More...
Functions | |
int | BelleTrackFlag (const Belle2::KLMCluster &cluster, const float angle=0.26) |
get Belle stle track flag | |
int | BelleECLFlag (const Belle2::KLMCluster &cluster, const float angle=0.26) |
get Belle stle ECL flag | |
int | mcParticleIsBeamBKG (const Belle2::MCParticle *part) |
return if MCparticle is beambkg | |
int | mcParticleIsKlong (Belle2::MCParticle *part) |
return the mc hirachy of the klong 0:not a klong 1:final particle, 2: klong is mother etc | |
bool | isKLMClusterSignal (const Belle2::KLMCluster &cluster, float mcWeigthCut=0.66) |
checks if a cluster is signal under the mcWeightcondition (mcWeight = energy deposition) | |
bool | isECLClusterSignal (const Belle2::ECLCluster &cluster, float mcWeigthCut=0.66) |
checks if a cluster is signal under the mcWeightcondition (mcWeight = energy deposition) | |
int | isMCParticlePDG (Belle2::MCParticle *part, int pdg) |
return if mc particle has a certain pdg in the decay chain | |
int | getPrimaryPDG (Belle2::MCParticle *part) |
return if mc particles primary pdg. | |
std::pair< Belle2::ECLCluster *, double > | findClosestECLCluster (const ROOT::Math::XYZVector &klmClusterPosition, const Belle2::ECLCluster::EHypothesisBit eclhypothesis=Belle2::ECLCluster::EHypothesisBit::c_neutralHadron) |
Find the closest ECLCluster with a neutral hadron hypothesis, and return it with its distance. | |
std::tuple< const Belle2::KLMCluster *, double, double > | findClosestKLMCluster (const ROOT::Math::XYZVector &klmClusterPosition) |
find nearest KLMCluster, tis distance and the av intercluster distance | |
std::tuple< Belle2::RecoTrack *, double, std::unique_ptr< const ROOT::Math::XYZVector > > | findClosestTrack (const ROOT::Math::XYZVector &clusterPosition, float cutAngle) |
find nearest genfit track and return it and its distance | |
Helper functions for all klid modules to improve readability of the code.
int BelleECLFlag | ( | const Belle2::KLMCluster & | cluster, |
const float | angle = 0.26 |
||
) |
get Belle stle ECL flag
Definition at line 49 of file KlId.h.
int BelleTrackFlag | ( | const Belle2::KLMCluster & | cluster, |
const float | angle = 0.26 |
||
) |
get Belle stle track flag
Definition at line 30 of file KlId.h.
std::pair< Belle2::ECLCluster *, double > findClosestECLCluster | ( | const ROOT::Math::XYZVector & | klmClusterPosition, |
const Belle2::ECLCluster::EHypothesisBit | eclhypothesis = Belle2::ECLCluster::EHypothesisBit::c_neutralHadron |
||
) |
Find the closest ECLCluster with a neutral hadron hypothesis, and return it with its distance.
If there are no suitabile ECLClusters, a nullptr is returned.
Definition at line 203 of file KlId.h.
std::tuple< const Belle2::KLMCluster *, double, double > findClosestKLMCluster | ( | const ROOT::Math::XYZVector & | klmClusterPosition | ) |
find nearest KLMCluster, tis distance and the av intercluster distance
Definition at line 236 of file KlId.h.
std::tuple< Belle2::RecoTrack *, double, std::unique_ptr< const ROOT::Math::XYZVector > > findClosestTrack | ( | const ROOT::Math::XYZVector & | clusterPosition, |
float | cutAngle | ||
) |
find nearest genfit track and return it and its distance
Definition at line 273 of file KlId.h.
int getPrimaryPDG | ( | Belle2::MCParticle * | part | ) |
return if mc particles primary pdg.
this is very imprecise but sufficient to understand if the backgrounds are charged, hadronic or gammas which is whats relevant for klid investigations.
Definition at line 151 of file KlId.h.
bool isECLClusterSignal | ( | const Belle2::ECLCluster & | cluster, |
float | mcWeigthCut = 0.66 |
||
) |
checks if a cluster is signal under the mcWeightcondition (mcWeight = energy deposition)
Definition at line 114 of file KlId.h.
bool isKLMClusterSignal | ( | const Belle2::KLMCluster & | cluster, |
float | mcWeigthCut = 0.66 |
||
) |
checks if a cluster is signal under the mcWeightcondition (mcWeight = energy deposition)
Definition at line 100 of file KlId.h.
int isMCParticlePDG | ( | Belle2::MCParticle * | part, |
int | pdg | ||
) |
return if mc particle has a certain pdg in the decay chain
Definition at line 128 of file KlId.h.
int mcParticleIsBeamBKG | ( | const Belle2::MCParticle * | part | ) |
int mcParticleIsKlong | ( | Belle2::MCParticle * | part | ) |
return the mc hirachy of the klong 0:not a klong 1:final particle, 2: klong is mother etc
Definition at line 78 of file KlId.h.