LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
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 32 of file TruthMatchUtils.h.
typedef int TruthMatchUtils::G4ID |
Definition at line 31 of file TruthMatchUtils.h.
typedef std::map<G4ID, EDeposit> TruthMatchUtils::IDToEDepositMap |
Definition at line 33 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 167 of file TruthMatchUtils.cc.
References util::abs(), cheat::BackTrackerService::HitToTrackIDEs(), and art::errors::LogicError.
Referenced by TrueParticleID(), and TrueParticleIDFromTotalTrueEnergy().
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 65 of file TruthMatchUtils.cc.
References FillG4IDToEnergyDepositMap().
Referenced by TrueParticleIDFromTotalRecoCharge(), and TrueParticleIDFromTotalRecoHits().
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 94 of file TruthMatchUtils.cc.
References TrueParticleID().
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 114 of file TruthMatchUtils.cc.
References art::errors::LogicError, TrueParticleID(), and TrueParticleIDFromTotalTrueEnergy().
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 78 of file TruthMatchUtils.cc.
References FillG4IDToEnergyDepositMap().
Referenced by TrueParticleIDFromTotalRecoHits().
|
noexcept |
Test whether a G4ID returned by the TruthMatchUtils functions is valid.
g4ID | the G4ID to be tested |
Definition at line 58 of file TruthMatchUtils.cc.