10 #include "NovaDAQConventions/DAQConventions.h" 56 std::vector<art::Ptr<caldp::PCHit> >
AllPCHits()
const;
121 std::vector<double> *resids,
125 bool removeHits =
false,
140 double fiberVel = 9999.0)
const;
double MinTNS(geo::View_t view=geo::kXorY) const
return min pchit time for a specified view
int MaxCell(geo::View_t view) const
return max cell number in the specified view
double CalculateFiberVelocity(double timeResid, std::vector< double > *resids, double *icept, double *chisqr, novadaq::cnv::DetId detectorID, bool removeHits=false, bool overwrite=false)
unsigned int NPCHit() const
return total number of hits
virtual void SetStop(TVector3 stop)
set track stop point
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
art::Ptr< caldp::PCHit > YPCHit(unsigned int yIdx) const
get the ith y view pchit
TVector3 Stop() const
return the stop coordinate for the track
virtual void SetStart(TVector3 start)
set track start point
double TotalLength() const
return total path lenght for track
double MaxTNS(geo::View_t view=geo::kXorY) const
return max pchit time for a specified view
double FiberVelocity() const
return the velocity of the optical fiber, measured for this track
int MaxPlane(geo::View_t view) const
return max plane number in the specified view
TVector3 Start() const
return the start coordinate for the track
virtual void SetFiberVelocity(double vel)
Set the fiber speed for the track.
virtual void Add(const art::Ptr< caldp::PCHit > &pchit)
add a pchit to the track
std::vector< art::Ptr< caldp::PCHit > > fDropPCHits
contains collection of pchits dropped by fiber fit
const std::vector< art::Ptr< caldp::PCHit > > & XPCHits() const
return the collection of all x view pchits
virtual void SetTotalLength(double length)
set track total length
void RemovePCHit(const art::Ptr< caldp::PCHit > pch)
remove a pchit from the current cluster
double MinPath(geo::View_t view=geo::kXorY) const
return shortest path from start of track to a hit in a view
int MinCell(geo::View_t view) const
return min cell number in the specified view
double MaxPath(geo::View_t view=geo::kXorY) const
return longest path from start of track to a hit in a view
double fTotalLength
Total pathlength of track.
unsigned int NXPCHit() const
return number of hits in x view
std::vector< art::Ptr< caldp::PCHit > > AllDropPCHits() const
return the collection of pchits dropped by fiber fit
Histograms used by attenuation calibration.
art::Ptr< caldp::PCHit > PCHit(geo::View_t view, unsigned int viewIdx) const
get the ith pchit from a specified view
art::Ptr< caldp::PCHit > XPCHit(unsigned int xIdx) const
get the ith x view pchit
const std::vector< art::Ptr< caldp::PCHit > > & YPCHits() const
return the collection of all y view pchits
double CalcFiberVelocity(float d, novadaq::cnv::DetId detectorID) const
Calculate fiber speed as a function of distance from readout.
double ReadoutDistCorrection(float x, novadaq::cnv::DetId detectorID) const
Correct for timewalk effect as a function of distance to readout.
std::vector< art::Ptr< caldp::PCHit > > fYPCHits
double fFiberVelocity
optical fiber velocity for track
double CalculateMuonVelocity(std::vector< double > *resids, double *icept, double *chisqr, novadaq::cnv::DetId detectorID, double fiberVel=9999.0) const
std::vector< art::Ptr< caldp::PCHit > > AllPCHits() const
return the collection of all pchits
TVector3 fStart
start and endpoint for track
int MinPlane(geo::View_t view) const
return min plane number in the specified view
unsigned int NYPCHit() const
return number of hits in y view
std::vector< art::Ptr< caldp::PCHit > > fXPCHits
contain collections of pchits
double TNSUncertainty(float pe, bool goodTime, novadaq::cnv::DetId detectorID) const
Calculate the uncertainty in the time based on pulse height.