8 #ifndef DUNE_ANA_HIT_UTILS_H 9 #define DUNE_ANA_HIT_UTILS_H 78 const double timeInTicks,
const double t0InMicroS);
95 #endif // DUNE_ANA_HIT_UTILS_H DUNEAnaUtilsBase class containing some template functions.
static std::vector< art::Ptr< recob::SpacePoint > > GetSpacePoints(const art::Ptr< recob::Hit > &pHit, const art::Event &evt, const std::string &hitLabel, const std::string &hitToSpacePointLabel)
Get the space points associated with the hit.
unsigned int PlaneID_t
Type for the ID number.
Base class containing functionality to extract products from the event.
static double LifetimeCorrection(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const art::Ptr< recob::Hit > &pHit)
get the lifetime correction for a hit, assumes the detector properties GetTriggerOffset is T0 ...
static double LifetimeCorrectedTotalHitCharge(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const std::vector< art::Ptr< recob::Hit > > &hits)
get the total hit charge, corrected for lifetime
Declaration of signal hit object.
Contains all timing reference information for the detector.
static std::vector< art::Ptr< recob::Hit > > GetHitsOnPlane(const std::vector< art::Ptr< recob::Hit >> &hits, const geo::PlaneID::PlaneID_t planeID)
Get all hits on a specific plane.