7 #include "CoreUtils/ServiceUtil.h" 27 fTime = std::make_pair(0., 0.);
56 fTime = std::make_pair(time, 0.);
83 const TVector3 deltaPosition(rhsPos - thisPos);
85 if (std::fabs(deltaPosition.z()) > std::numeric_limits<float>::epsilon())
86 return (deltaPosition.z() > std::numeric_limits<float>::epsilon());
88 if (std::fabs(deltaPosition.x()) > std::numeric_limits<float>::epsilon())
89 return (deltaPosition.x() > std::numeric_limits<float>::epsilon());
91 if (std::fabs(deltaPosition.y()) > std::numeric_limits<float>::epsilon())
92 return (deltaPosition.y() > std::numeric_limits<float>::epsilon());
102 <<
"\n\tID number = " 104 <<
"\n\tposition = (" 114 << h.
Time().first <<
" " << h.
Time().second
125 if(gar::providerFrom<geo::GeometryGAr>()->isTile(point, this->
CellID()))
127 return std::sqrt( gar::providerFrom<geo::GeometryGAr>()->getTileSize(point) * gar::providerFrom<geo::GeometryGAr>()->getTileSize(point) );
131 return std::sqrt( gar::providerFrom<geo::GeometryGAr>()->getStripWidth(point) * gar::providerFrom<geo::GeometryGAr>()->getStripLength(point, this->
CellID()) );
float fPosition[3]
position of the calo hit in cm
unsigned int fLayer
Layer.
raw::CellID_t CellID() const
bool operator<(const CaloHit &rhs) const
raw::CellID_t fCellID
cellID
std::pair< float, float > Time() const
bool operator!=(const CaloHit &rhs) const
unsigned int GetCellLengthScale() const
static IDNumberGen * create(IDNumber iniValue=std::numeric_limits< IDNumber >::max())
gar::rec::IDNumber getIDNumber() const
float fEnergy
energy of the calo hit in GeV
General GArSoft Utilities.
const float * Position() const
std::pair< float, float > fTime
time of the calo hit in ns
bool operator==(const CaloHit &rhs) const
gar::rec::IDNumber fIDnumero
static gar::rec::IDNumber const FirstNumber
friend std::ostream & operator<<(std::ostream &o, gar::rec::CaloHit const &h)