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