10 #ifndef TRUTHMATCHUTILS_H_SEEN
11 #define TRUTHMATCHUTILS_H_SEEN
14 namespace recob {
class Hit; }
17 #include "canvas/Persistency/Common/Ptr.h"
24 class DetectorClocksData;
27 namespace TruthMatchUtils {
51 const art::Ptr<recob::Hit>& pHit,
52 const bool rollupUnsavedIDs);
64 const bool rollupUnsavedIDs);
76 const bool rollupUnsavedIDs);
88 const bool rollupUnsavedIDs);
99 const art::Ptr<recob::Hit>& pHit,
100 const bool rollupUnsavedIDs);
104 #endif // #ifndef TRUTHMATCHUTILS_H_SEEN
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 c...
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.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
std::map< G4ID, EDeposit > IDToEDepositMap
bool Valid(const G4ID g4ID) noexcept
Test whether a G4ID returned by the TruthMatchUtils functions is valid.
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.
Contains all timing reference information for the detector.
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.
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...