CMS 3D CMS Logo

Public Member Functions | Private Attributes

HFShowerG4Hit Class Reference

#include <HFShowerG4Hit.h>

List of all members.

Public Member Functions

G4double edep () const
G4ThreeVector globalPosition () const
 HFShowerG4Hit (G4int hitId, G4int tkID, double edep, double time)
 HFShowerG4Hit (const HFShowerG4Hit &right)
 HFShowerG4Hit ()
G4int hitId () const
G4ThreeVector localPosition () const
void operator delete (void *aHit)
void * operator new (size_t)
const HFShowerG4Hitoperator= (const HFShowerG4Hit &right)
G4int operator== (const HFShowerG4Hit &right) const
G4ThreeVector primaryMomDir () const
void setEnergy (G4double edep)
void setGlobalPos (G4ThreeVector xyz)
void setHitId (G4int hitId)
void setLocalPos (G4ThreeVector xyz)
void setPrimMomDir (G4ThreeVector xyz)
void setTime (G4double t)
void setTrackId (G4int trackId)
G4double time () const
G4int trackId () const
void updateEnergy (G4double edep)
virtual ~HFShowerG4Hit ()

Private Attributes

G4ThreeVector globalPos
G4ThreeVector localPos
G4ThreeVector momDir
G4double theEdep
G4int theHitId
G4double theTime
G4int theTrackId

Detailed Description

Definition at line 16 of file HFShowerG4Hit.h.


Constructor & Destructor Documentation

HFShowerG4Hit::HFShowerG4Hit ( )

Definition at line 8 of file HFShowerG4Hit.cc.

                             : theHitId(0), theTrackId(0), theEdep(0),
                                 theTime(0) {}
HFShowerG4Hit::HFShowerG4Hit ( G4int  hitId,
G4int  tkID,
double  edep,
double  time 
)

Definition at line 11 of file HFShowerG4Hit.cc.

HFShowerG4Hit::~HFShowerG4Hit ( ) [virtual]

Definition at line 15 of file HFShowerG4Hit.cc.

{}
HFShowerG4Hit::HFShowerG4Hit ( const HFShowerG4Hit right)

Definition at line 17 of file HFShowerG4Hit.cc.

References globalPos, localPos, momDir, theEdep, theHitId, theTime, and theTrackId.

                                                       {
  theHitId   = right.theHitId;
  theTrackId = right.theTrackId;
  theEdep    = right.theEdep;
  theTime    = right.theTime;
  localPos   = right.localPos;
  globalPos  = right.globalPos;
  momDir     = right.momDir;
}

Member Function Documentation

G4double HFShowerG4Hit::edep ( ) const [inline]

Definition at line 53 of file HFShowerG4Hit.h.

References theEdep.

Referenced by operator<<(), setEnergy(), and updateEnergy().

{return theEdep;};
G4ThreeVector HFShowerG4Hit::globalPosition ( ) const [inline]

Definition at line 56 of file HFShowerG4Hit.h.

References globalPos.

Referenced by operator<<(), and HcalForwardAnalysis::setPhotons().

{return globalPos;}
G4int HFShowerG4Hit::hitId ( ) const [inline]

Definition at line 51 of file HFShowerG4Hit.h.

References theHitId.

Referenced by operator<<(), setHitId(), and HcalForwardAnalysis::setPhotons().

{return theHitId;}
G4ThreeVector HFShowerG4Hit::localPosition ( ) const [inline]

Definition at line 55 of file HFShowerG4Hit.h.

References localPos.

Referenced by operator<<().

{return localPos;}
void HFShowerG4Hit::operator delete ( void *  aHit) [inline]

Definition at line 70 of file HFShowerG4Hit.h.

References HFShowerG4HitAllocator.

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

Definition at line 64 of file HFShowerG4Hit.h.

References HFShowerG4HitAllocator.

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

Definition at line 27 of file HFShowerG4Hit.cc.

References globalPos, localPos, momDir, theEdep, theHitId, theTime, and theTrackId.

                                                                        {
  theHitId   = right.theHitId;
  theTrackId = right.theTrackId;
  theEdep    = right.theEdep;
  theTime    = right.theTime;
  localPos   = right.localPos;
  globalPos  = right.globalPos;
  momDir     = right.momDir;
  return *this;
}
int HFShowerG4Hit::operator== ( const HFShowerG4Hit right) const

Definition at line 38 of file HFShowerG4Hit.cc.

                                                              {
  return (this==&right) ? 1 : 0;
}
G4ThreeVector HFShowerG4Hit::primaryMomDir ( ) const [inline]

Definition at line 57 of file HFShowerG4Hit.h.

References momDir.

Referenced by operator<<(), and HcalForwardAnalysis::setPhotons().

{return momDir;}
void HFShowerG4Hit::setEnergy ( G4double  edep) [inline]

Definition at line 44 of file HFShowerG4Hit.h.

References edep(), and theEdep.

void HFShowerG4Hit::setGlobalPos ( G4ThreeVector  xyz) [inline]

Definition at line 48 of file HFShowerG4Hit.h.

References globalPos.

Referenced by HFWedgeSD::createNewHit(), and HFChamberSD::ProcessHits().

{globalPos = xyz;}
void HFShowerG4Hit::setHitId ( G4int  hitId) [inline]

Definition at line 42 of file HFShowerG4Hit.h.

References hitId(), and theHitId.

Referenced by HFWedgeSD::createNewHit().

void HFShowerG4Hit::setLocalPos ( G4ThreeVector  xyz) [inline]

Definition at line 47 of file HFShowerG4Hit.h.

References localPos.

Referenced by HFWedgeSD::createNewHit(), and HFChamberSD::ProcessHits().

{localPos  = xyz;}
void HFShowerG4Hit::setPrimMomDir ( G4ThreeVector  xyz) [inline]

Definition at line 49 of file HFShowerG4Hit.h.

References momDir.

Referenced by HFWedgeSD::createNewHit(), and HFChamberSD::ProcessHits().

{momDir    = xyz;}
void HFShowerG4Hit::setTime ( G4double  t) [inline]

Definition at line 46 of file HFShowerG4Hit.h.

References matplotRender::t, and theTime.

Referenced by HFWedgeSD::createNewHit().

{theTime  = t;}
void HFShowerG4Hit::setTrackId ( G4int  trackId) [inline]

Definition at line 43 of file HFShowerG4Hit.h.

References theTrackId, and trackId().

Referenced by HFWedgeSD::createNewHit().

G4double HFShowerG4Hit::time ( ) const [inline]

Definition at line 54 of file HFShowerG4Hit.h.

References theTime.

Referenced by operator<<(), and HcalForwardAnalysis::setPhotons().

{return theTime;}
G4int HFShowerG4Hit::trackId ( ) const [inline]

Definition at line 52 of file HFShowerG4Hit.h.

References theTrackId.

Referenced by operator<<(), HcalForwardAnalysis::setPhotons(), and setTrackId().

{return theTrackId;}
void HFShowerG4Hit::updateEnergy ( G4double  edep) [inline]

Definition at line 45 of file HFShowerG4Hit.h.

References edep(), and theEdep.

Referenced by HFWedgeSD::updateHit().

{theEdep += edep;}

Member Data Documentation

G4ThreeVector HFShowerG4Hit::globalPos [private]

Definition at line 37 of file HFShowerG4Hit.h.

Referenced by globalPosition(), HFShowerG4Hit(), operator=(), and setGlobalPos().

G4ThreeVector HFShowerG4Hit::localPos [private]

Definition at line 36 of file HFShowerG4Hit.h.

Referenced by HFShowerG4Hit(), localPosition(), operator=(), and setLocalPos().

G4ThreeVector HFShowerG4Hit::momDir [private]

Definition at line 38 of file HFShowerG4Hit.h.

Referenced by HFShowerG4Hit(), operator=(), primaryMomDir(), and setPrimMomDir().

G4double HFShowerG4Hit::theEdep [private]

Definition at line 34 of file HFShowerG4Hit.h.

Referenced by edep(), HFShowerG4Hit(), operator=(), setEnergy(), and updateEnergy().

G4int HFShowerG4Hit::theHitId [private]

Definition at line 32 of file HFShowerG4Hit.h.

Referenced by HFShowerG4Hit(), hitId(), operator=(), and setHitId().

G4double HFShowerG4Hit::theTime [private]

Definition at line 35 of file HFShowerG4Hit.h.

Referenced by HFShowerG4Hit(), operator=(), setTime(), and time().

G4int HFShowerG4Hit::theTrackId [private]

Definition at line 33 of file HFShowerG4Hit.h.

Referenced by HFShowerG4Hit(), operator=(), setTrackId(), and trackId().