Typedefs | |
typedef int | G4ID |
typedef float | EDeposit |
typedef std::map< G4ID, EDeposit > | IDToEDepositMap |
Functions | |
bool | Valid (const G4ID g4ID) noexcept |
Test whether a G4ID returned by the TruthMatchUtils functions is valid. More... | |
G4ID | TrueParticleID (detinfo::DetectorClocksData const &clockData, const art::Ptr< recob::Hit > &pHit, const bool rollupUnsavedIDs) |
The G4 ID of the true particle which deposits the most energy in the recob::Hit. More... | |
G4ID | TrueParticleIDFromTotalTrueEnergy (detinfo::DetectorClocksData const &clockData, const std::vector< art::Ptr< recob::Hit >> &pHits, const bool rollupUnsavedIDs) |
The G4 ID of the true particle which deposits the most energy in a vector of recob::Hit. More... | |
G4ID | TrueParticleIDFromTotalRecoCharge (detinfo::DetectorClocksData const &clockData, const std::vector< art::Ptr< recob::Hit >> &pHits, const bool rollupUnsavedIDs) |
The G4 ID of the true particle whose matched hits have produced the largest amount of reconstructed charge in a recob::Hit vector. More... | |
G4ID | TrueParticleIDFromTotalRecoHits (detinfo::DetectorClocksData const &clockData, const std::vector< art::Ptr< recob::Hit >> &pHits, const bool rollupUnsavedIDs) |
The G4 ID of the true particle who has been truth-matched to the most hits in a recob::Hit vector. More... | |
void | FillG4IDToEnergyDepositMap (IDToEDepositMap &idToEDepMap, detinfo::DetectorClocksData const &clockData, const art::Ptr< recob::Hit > &pHit, const bool rollupUnsavedIDs) |
Fill an energy deposition map (maps G4 ID to true energy deposition) for a recob::Hit. More... | |
typedef float TruthMatchUtils::EDeposit |
Definition at line 30 of file TruthMatchUtils.h.
typedef int TruthMatchUtils::G4ID |
Definition at line 29 of file TruthMatchUtils.h.
typedef std::map<G4ID, EDeposit> TruthMatchUtils::IDToEDepositMap |
Definition at line 31 of file TruthMatchUtils.h.
void TruthMatchUtils::FillG4IDToEnergyDepositMap | ( | IDToEDepositMap & | idToEDepMap, |
detinfo::DetectorClocksData const & | clockData, | ||
const art::Ptr< recob::Hit > & | pHit, | ||
const bool | rollupUnsavedIDs | ||
) |
Fill an energy deposition map (maps G4 ID to true energy deposition) for a recob::Hit.
idToEDepMap | the energy deposition map to be filled |
pHit | the recob::Hit to be assessed |
rollupUnsavedIDs | whether to squash energy deposits for non-saved G4 particles (e.g. shower secondaries) its saved ancestor particle |
Definition at line 171 of file TruthMatchUtils.cc.
TruthMatchUtils::G4ID TruthMatchUtils::TrueParticleID | ( | detinfo::DetectorClocksData const & | clockData, |
const art::Ptr< recob::Hit > & | pHit, | ||
const bool | rollupUnsavedIDs | ||
) |
The G4 ID of the true particle which deposits the most energy in the recob::Hit.
pHit | the recob::Hit to be assessed |
rollupUnsavedIDs | whether to squash energy deposits for non-saved G4 particles (e.g. shower secondaries) its saved ancestor particle |
Definition at line 68 of file TruthMatchUtils.cc.
TruthMatchUtils::G4ID TruthMatchUtils::TrueParticleIDFromTotalRecoCharge | ( | detinfo::DetectorClocksData const & | clockData, |
const std::vector< art::Ptr< recob::Hit >> & | pHits, | ||
const bool | rollupUnsavedIDs | ||
) |
The G4 ID of the true particle whose matched hits have produced the largest amount of reconstructed charge in a recob::Hit vector.
pHits | the recob::Hit vector to be assessed |
rollupUnsavedIDs | whether to squash energy deposits for non-saved G4 particles (e.g. shower secondaries) its saved ancestor particle |
Definition at line 98 of file TruthMatchUtils.cc.
TruthMatchUtils::G4ID TruthMatchUtils::TrueParticleIDFromTotalRecoHits | ( | detinfo::DetectorClocksData const & | clockData, |
const std::vector< art::Ptr< recob::Hit >> & | pHits, | ||
const bool | rollupUnsavedIDs | ||
) |
The G4 ID of the true particle who has been truth-matched to the most hits in a recob::Hit vector.
pHits | the recob::Hit vector to be assessed |
rollupUnsavedIDs | whether to squash energy deposits for non-saved G4 particles (e.g. shower secondaries) its saved ancestor particle |
Definition at line 118 of file TruthMatchUtils.cc.
TruthMatchUtils::G4ID TruthMatchUtils::TrueParticleIDFromTotalTrueEnergy | ( | detinfo::DetectorClocksData const & | clockData, |
const std::vector< art::Ptr< recob::Hit >> & | pHits, | ||
const bool | rollupUnsavedIDs | ||
) |
The G4 ID of the true particle which deposits the most energy in a vector of recob::Hit.
pHits | the recob::Hit vector to be assessed |
rollupUnsavedIDs | whether to squash energy deposits for non-saved G4 particles (e.g. shower secondaries) its saved ancestor particle |
Definition at line 82 of file TruthMatchUtils.cc.
|
noexcept |
Test whether a G4ID returned by the TruthMatchUtils functions is valid.
g4ID | the G4ID to be tested |
Definition at line 60 of file TruthMatchUtils.cc.