1 #ifndef SimG4CMS_CaloG4Hit_h 2 #define SimG4CMS_CaloG4Hit_h 1 29 #include "G4Allocator.hh" 39 inline void*
operator new(std::size_t);
40 inline void operator delete(
void*
CaloG4Hit);
43 void Print()
override;
96 if (
a->getTrackID() !=
b->getTrackID()) {
97 return (
a->getTrackID() <
b->getTrackID());
98 }
else if (
a->getUnitID() !=
b->getUnitID()) {
99 return (
a->getUnitID() <
b->getUnitID());
100 }
else if (
a->getDepth() !=
b->getDepth()) {
101 return (
a->getDepth() <
b->getDepth());
103 return (
a->getTimeSliceID() <
b->getTimeSliceID());
111 return (
a->getTrackID() ==
b->getTrackID() &&
a->getUnitID() ==
b->getUnitID() &&
a->getDepth() ==
b->getDepth() &&
112 a->getTimeSliceID() ==
b->getTimeSliceID());
math::XYZPoint getEntryLocal() const
G4ThreadLocal G4Allocator< CaloG4Hit > * fpCaloG4HitAllocator
void setIncidentEnergy(double e)
void setEntryLocal(double x, double y, double z)
bool isFinecaloTrackID() const
uint16_t getDepth() const
bool operator()(const CaloG4Hit *a, const CaloG4Hit *b)
void addEnergyDeposit(double em, double hd)
math::XYZPoint getPosition() const
bool isFinecaloTrackID() const
math::XYZPoint getEntry() const
bool operator()(const CaloG4Hit *a, const CaloG4Hit *b)
void setID(uint32_t i, double d, int j, uint16_t k=0)
void setID(uint32_t unitID, double timeSlice, int trackID, uint16_t depth=0)
~CaloG4Hit() override=default
const CaloG4Hit & operator=(const CaloG4Hit &right)
int getTimeSliceID() const
XYZPointD XYZPoint
point in space with cartesian internal representation
math::XYZPoint entryLocal
double getEnergyDeposit() const
uint32_t getUnitID() const
void setPosition(double x, double y, double z)
void setEntry(double x, double y, double z)
double getTimeSlice() const
double getIncidentEnergy() const
std::ostream & operator<<(std::ostream &, const CaloG4Hit &)
void setID(const CaloHitID &id)
bool operator==(const CaloG4Hit &)