DUNEAnaHitUtils class.
More...
#include <DUNEAnaHitUtils.h>
|
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. More...
|
|
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. More...
|
|
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 More...
|
|
static double | LifetimeCorrection (detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const double timeInTicks, const double t0InMicroS) |
| get the lifetime correction for a particular time More...
|
|
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 More...
|
|
DUNEAnaHitUtils class.
Definition at line 30 of file DUNEAnaHitUtils.h.
Get all hits on a specific plane.
- Parameters
-
hits | the hit vector to be searched for hits on a specific plane |
planeID | the requested plane number |
- Returns
- the hit vector containing hits on a specific plane
Definition at line 31 of file DUNEAnaHitUtils.cxx.
34 std::vector<art::Ptr<recob::Hit>> hitsOnPlane;
39 hitsOnPlane.emplace_back(*(hitIt++));
Detector simulation of raw signals on wires.
Get the space points associated with the hit.
- Parameters
-
pHit | is the spacepoint for which we want the hits |
evt | is the underlying art event |
hitLabel | is the label for the hit producer |
hitToSpacePointLabel | is the label for the association between hit and space point |
- Returns
- vector of art::Ptrs to the hits
Definition at line 24 of file DUNEAnaHitUtils.cxx.
28 return DUNEAnaHitUtils::GetAssocProductVector<recob::SpacePoint>(pHit,
evt,hitLabel,hitToSpacePointLabel);
get the total hit charge, corrected for lifetime
- Parameters
-
hits | the vector of hits to be summed over |
- Returns
- the lifetime corrected total hit charge
Definition at line 65 of file DUNEAnaHitUtils.cxx.
69 double totalHitCharge(0);
70 for (
unsigned int iHit = 0; iHit < hits.size(); iHit++)
73 return totalHitCharge;
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 ...
get the lifetime correction for a hit, assumes the detector properties GetTriggerOffset is T0
- Parameters
-
- Returns
- the charge normalisation correction
Definition at line 44 of file DUNEAnaHitUtils.cxx.
49 pHit->
PeakTime(), clockData.TriggerTime());
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 ...
float PeakTime() const
Time of the signal peak, in tick units.
get the lifetime correction for a particular time
- Parameters
-
timeinTicks | the time in ticks |
t0InMicroS | the t0 time in micro seconds |
- Returns
- the charge normalisation correction
Definition at line 52 of file DUNEAnaHitUtils.cxx.
56 const double tpcSamplingRateInMicroS(clockData.TPCClock().TickPeriod());
59 const double timeCorrectedForT0((timeInTicks - tpcTriggerOffsetInTicks)*tpcSamplingRateInMicroS - t0InMicroS);
60 const double tauLifetime(detProp.ElectronLifetime());
62 return std::exp(timeCorrectedForT0/tauLifetime);
int trigger_offset(DetectorClocksData const &data)
The documentation for this class was generated from the following files: