CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloG4Hit Class Reference

#include <CaloG4Hit.h>

List of all members.

Public Member Functions

void addEnergyDeposit (double em, double hd)
void addEnergyDeposit (const CaloG4Hit &aHit)
 CaloG4Hit ()
 CaloG4Hit (const CaloG4Hit &right)
void Draw ()
uint16_t getDepth () const
double getEM () const
double getEnergyDeposit () const
math::XYZPoint getEntry () const
math::XYZPoint getEntryLocal () const
double getHadr () const
CaloHitID getID () const
double getIncidentEnergy () const
math::XYZPoint getPosition () const
double getTimeSlice () const
int getTimeSliceID () const
int getTrackID () const
uint32_t getUnitID () const
void operator delete (void *CaloG4Hit)
void * operator new (size_t)
const CaloG4Hitoperator= (const CaloG4Hit &right)
bool operator== (const CaloG4Hit &)
void Print ()
void setEM (double e)
void setEntry (double x, double y, double z)
void setEntryLocal (double x, double y, double z)
void setHadr (double e)
void setID (uint32_t i, double d, int j, uint16_t k=0)
void setID (CaloHitID id)
void setIncidentEnergy (double e)
void setPosition (double x, double y, double z)
 ~CaloG4Hit ()

Private Attributes

double elem
math::XYZPoint entry
math::XYZPoint entryLocal
double hadr
CaloHitID hitID
math::XYZPoint pos
double theIncidentEnergy

Detailed Description

Definition at line 33 of file CaloG4Hit.h.


Constructor & Destructor Documentation

CaloG4Hit::CaloG4Hit ( )

Definition at line 10 of file CaloG4Hit.cc.

References elem, hadr, setEntry(), setEntryLocal(), and theIncidentEnergy.

                    {

  setEntry(0.,0.,0.);
  setEntryLocal(0.,0.,0.);
  elem     = 0.;
  hadr     = 0.;
  theIncidentEnergy = 0.;
}
CaloG4Hit::~CaloG4Hit ( )

Definition at line 19 of file CaloG4Hit.cc.

{}
CaloG4Hit::CaloG4Hit ( const CaloG4Hit right)

Definition at line 21 of file CaloG4Hit.cc.

References elem, entry, entryLocal, hadr, hitID, pos, and theIncidentEnergy.

                                           {

  entry             = right.entry;
  entryLocal        = right.entryLocal;
  pos               = right.pos;
  elem              = right.elem;
  hadr              = right.hadr;
  theIncidentEnergy = right.theIncidentEnergy;
  hitID             = right.hitID;
}

Member Function Documentation

void CaloG4Hit::addEnergyDeposit ( double  em,
double  hd 
)

Definition at line 45 of file CaloG4Hit.cc.

References elem, and hadr.

Referenced by addEnergyDeposit(), and CaloSD::updateHit().

                                                     {

  elem += em ;
  hadr += hd;
}
void CaloG4Hit::addEnergyDeposit ( const CaloG4Hit aHit)

Definition at line 51 of file CaloG4Hit.cc.

References addEnergyDeposit(), getEM(), and getHadr().

                                                      {

  addEnergyDeposit(aHit.getEM(),aHit.getHadr());
}
void CaloG4Hit::Draw ( ) [inline]

Definition at line 45 of file CaloG4Hit.h.

{}
uint16_t CaloG4Hit::getDepth ( void  ) const [inline]
double CaloG4Hit::getEM ( ) const [inline]
double CaloG4Hit::getEnergyDeposit ( ) const [inline]
math::XYZPoint CaloG4Hit::getEntry ( ) const [inline]
math::XYZPoint CaloG4Hit::getEntryLocal ( ) const [inline]

Definition at line 53 of file CaloG4Hit.h.

References entryLocal.

Referenced by ZdcSD::getFromLibrary(), and operator<<().

{return entryLocal;}
double CaloG4Hit::getHadr ( ) const [inline]
CaloHitID CaloG4Hit::getID ( ) const [inline]

Definition at line 74 of file CaloG4Hit.h.

References hitID.

Referenced by operator<<().

{return hitID;}
double CaloG4Hit::getIncidentEnergy ( ) const [inline]
math::XYZPoint CaloG4Hit::getPosition ( ) const [inline]
double CaloG4Hit::getTimeSlice ( ) const [inline]
int CaloG4Hit::getTimeSliceID ( ) const [inline]
int CaloG4Hit::getTrackID ( ) const [inline]
uint32_t CaloG4Hit::getUnitID ( ) const [inline]
void CaloG4Hit::operator delete ( void *  CaloG4Hit) [inline]

Definition at line 129 of file CaloG4Hit.h.

References CaloG4HitAllocator.

                                                  {  
  CaloG4HitAllocator.FreeSingle((CaloG4Hit*) aHit); 
}
void * CaloG4Hit::operator new ( size_t  ) [inline]

Definition at line 123 of file CaloG4Hit.h.

References CaloG4HitAllocator.

                                            {
  void * aHit;
  aHit = (void *) CaloG4HitAllocator.MallocSingle();
  return aHit;
}
const CaloG4Hit & CaloG4Hit::operator= ( const CaloG4Hit right)

Definition at line 32 of file CaloG4Hit.cc.

References elem, entry, entryLocal, hadr, hitID, pos, and theIncidentEnergy.

                                                            {

  entry             = right.entry;
  entryLocal        = right.entryLocal;
  pos               = right.pos;
  elem              = right.elem;
  hadr              = right.hadr;
  theIncidentEnergy = right.theIncidentEnergy;
  hitID             = right.hitID;
 
  return *this;
}
bool CaloG4Hit::operator== ( const CaloG4Hit ) [inline]

Definition at line 41 of file CaloG4Hit.h.

{return false;}
void CaloG4Hit::Print ( void  )

Definition at line 57 of file CaloG4Hit.cc.

References LogDebug.

                      {
  LogDebug("CaloSim") << (*this);
}
void CaloG4Hit::setEM ( double  e) [inline]

Definition at line 60 of file CaloG4Hit.h.

References alignCSCRings::e, and elem.

Referenced by CaloSD::createNewHit().

{elem = e;}
void CaloG4Hit::setEntry ( double  x,
double  y,
double  z 
) [inline]

Definition at line 51 of file CaloG4Hit.h.

Referenced by CaloG4Hit(), and CaloSD::createNewHit().

{entry.SetCoordinates(x,y,z);}
void CaloG4Hit::setEntryLocal ( double  x,
double  y,
double  z 
) [inline]

Definition at line 54 of file CaloG4Hit.h.

References entryLocal.

Referenced by CaloG4Hit(), and CaloSD::createNewHit().

{entryLocal.SetCoordinates(x,y,z);}
void CaloG4Hit::setHadr ( double  e) [inline]

Definition at line 63 of file CaloG4Hit.h.

References alignCSCRings::e, and hadr.

Referenced by CaloSD::createNewHit().

{hadr = e;}
void CaloG4Hit::setID ( CaloHitID  id) [inline]

Definition at line 76 of file CaloG4Hit.h.

References hitID.

{hitID = id;}
void CaloG4Hit::setID ( uint32_t  i,
double  d,
int  j,
uint16_t  k = 0 
) [inline]

Definition at line 75 of file CaloG4Hit.h.

References hitID, gen::k, and CaloHitID::setID().

Referenced by CaloSD::createNewHit().

{ hitID.setID(i,d,j,k);}
void CaloG4Hit::setIncidentEnergy ( double  e) [inline]

Definition at line 66 of file CaloG4Hit.h.

References alignCSCRings::e, and theIncidentEnergy.

Referenced by CaloSD::createNewHit(), and ZdcSD::getFromLibrary().

void CaloG4Hit::setPosition ( double  x,
double  y,
double  z 
) [inline]

Definition at line 57 of file CaloG4Hit.h.

References pos.

Referenced by CaloSD::createNewHit().

{pos.SetCoordinates(x,y,z);}

Member Data Documentation

double CaloG4Hit::elem [private]

Definition at line 88 of file CaloG4Hit.h.

Referenced by addEnergyDeposit(), CaloG4Hit(), getEM(), getEnergyDeposit(), operator=(), and setEM().

Definition at line 85 of file CaloG4Hit.h.

Referenced by CaloG4Hit(), getEntry(), and operator=().

Definition at line 86 of file CaloG4Hit.h.

Referenced by CaloG4Hit(), getEntryLocal(), operator=(), and setEntryLocal().

double CaloG4Hit::hadr [private]

Definition at line 89 of file CaloG4Hit.h.

Referenced by addEnergyDeposit(), CaloG4Hit(), getEnergyDeposit(), getHadr(), operator=(), and setHadr().

Definition at line 87 of file CaloG4Hit.h.

Referenced by CaloG4Hit(), getPosition(), operator=(), and setPosition().

double CaloG4Hit::theIncidentEnergy [private]

Definition at line 90 of file CaloG4Hit.h.

Referenced by CaloG4Hit(), getIncidentEnergy(), operator=(), and setIncidentEnergy().