CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HFShowerG4Hit Class Reference

#include <HFShowerG4Hit.h>

Inheritance diagram for HFShowerG4Hit:

Public Member Functions

G4double edep () const
 
G4ThreeVector globalPosition () const
 
 HFShowerG4Hit ()
 
 HFShowerG4Hit (const HFShowerG4Hit &right)
 
 HFShowerG4Hit (G4int hitId, G4int tkID, double edep, double time)
 
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 (const G4ThreeVector &xyz)
 
void setHitId (G4int hitId)
 
void setLocalPos (const G4ThreeVector &xyz)
 
void setPrimMomDir (const G4ThreeVector &xyz)
 
void setTime (G4double t)
 
void setTrackId (G4int trackId)
 
G4double time () const
 
G4int trackId () const
 
void updateEnergy (G4double edep)
 
 ~HFShowerG4Hit () override
 

Private Attributes

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

Detailed Description

Definition at line 15 of file HFShowerG4Hit.h.

Constructor & Destructor Documentation

◆ HFShowerG4Hit() [1/3]

HFShowerG4Hit::HFShowerG4Hit ( )

Definition at line 7 of file HFShowerG4Hit.cc.

7 : theHitId(0), theTrackId(0), theEdep(0), theTime(0) {}

◆ HFShowerG4Hit() [2/3]

HFShowerG4Hit::HFShowerG4Hit ( G4int  hitId,
G4int  tkID,
double  edep,
double  time 
)

Definition at line 9 of file HFShowerG4Hit.cc.

◆ ~HFShowerG4Hit()

HFShowerG4Hit::~HFShowerG4Hit ( )
override

Definition at line 12 of file HFShowerG4Hit.cc.

12 {}

◆ HFShowerG4Hit() [3/3]

HFShowerG4Hit::HFShowerG4Hit ( const HFShowerG4Hit right)

Definition at line 14 of file HFShowerG4Hit.cc.

14  {
15  theHitId = right.theHitId;
16  theTrackId = right.theTrackId;
17  theEdep = right.theEdep;
18  theTime = right.theTime;
19  localPos = right.localPos;
20  globalPos = right.globalPos;
21  momDir = right.momDir;
22 }

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

Member Function Documentation

◆ edep()

G4double HFShowerG4Hit::edep ( ) const
inline

Definition at line 48 of file HFShowerG4Hit.h.

48 { return theEdep; };

References theEdep.

Referenced by setEnergy(), and updateEnergy().

◆ globalPosition()

G4ThreeVector HFShowerG4Hit::globalPosition ( ) const
inline

Definition at line 51 of file HFShowerG4Hit.h.

51 { return globalPos; }

References globalPos.

Referenced by HcalForwardAnalysis::setPhotons().

◆ hitId()

G4int HFShowerG4Hit::hitId ( ) const
inline

Definition at line 46 of file HFShowerG4Hit.h.

46 { return theHitId; }

References theHitId.

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

◆ localPosition()

G4ThreeVector HFShowerG4Hit::localPosition ( ) const
inline

Definition at line 50 of file HFShowerG4Hit.h.

50 { return localPos; }

References localPos.

◆ operator delete()

void HFShowerG4Hit::operator delete ( void *  aHit)
inline

Definition at line 65 of file HFShowerG4Hit.h.

65 { fHFShowerG4HitAllocator->FreeSingle((HFShowerG4Hit*)aHit); }

References fHFShowerG4HitAllocator.

◆ operator new()

void * HFShowerG4Hit::operator new ( size_t  )
inline

Definition at line 59 of file HFShowerG4Hit.h.

59  {
61  fHFShowerG4HitAllocator = new G4Allocator<HFShowerG4Hit>;
62  return (void*)fHFShowerG4HitAllocator->MallocSingle();
63 }

References fHFShowerG4HitAllocator.

◆ operator=()

const HFShowerG4Hit & HFShowerG4Hit::operator= ( const HFShowerG4Hit right)

Definition at line 24 of file HFShowerG4Hit.cc.

24  {
25  theHitId = right.theHitId;
26  theTrackId = right.theTrackId;
27  theEdep = right.theEdep;
28  theTime = right.theTime;
29  localPos = right.localPos;
30  globalPos = right.globalPos;
31  momDir = right.momDir;
32  return *this;
33 }

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

◆ operator==()

int HFShowerG4Hit::operator== ( const HFShowerG4Hit right) const

Definition at line 35 of file HFShowerG4Hit.cc.

35 { return (this == &right) ? 1 : 0; }

◆ primaryMomDir()

G4ThreeVector HFShowerG4Hit::primaryMomDir ( ) const
inline

Definition at line 52 of file HFShowerG4Hit.h.

52 { return momDir; }

References momDir.

Referenced by HcalForwardAnalysis::setPhotons().

◆ setEnergy()

void HFShowerG4Hit::setEnergy ( G4double  edep)
inline

Definition at line 39 of file HFShowerG4Hit.h.

39 { theEdep = edep; }

References edep(), and theEdep.

◆ setGlobalPos()

void HFShowerG4Hit::setGlobalPos ( const G4ThreeVector &  xyz)
inline

Definition at line 43 of file HFShowerG4Hit.h.

43 { globalPos = xyz; }

References globalPos.

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

◆ setHitId()

void HFShowerG4Hit::setHitId ( G4int  hitId)
inline

Definition at line 37 of file HFShowerG4Hit.h.

37 { theHitId = hitId; }

References hitId(), and theHitId.

Referenced by HFWedgeSD::createNewHit().

◆ setLocalPos()

void HFShowerG4Hit::setLocalPos ( const G4ThreeVector &  xyz)
inline

Definition at line 42 of file HFShowerG4Hit.h.

42 { localPos = xyz; }

References localPos.

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

◆ setPrimMomDir()

void HFShowerG4Hit::setPrimMomDir ( const G4ThreeVector &  xyz)
inline

Definition at line 44 of file HFShowerG4Hit.h.

44 { momDir = xyz; }

References momDir.

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

◆ setTime()

void HFShowerG4Hit::setTime ( G4double  t)
inline

Definition at line 41 of file HFShowerG4Hit.h.

41 { theTime = t; }

References submitPVValidationJobs::t, and theTime.

Referenced by HFWedgeSD::createNewHit().

◆ setTrackId()

void HFShowerG4Hit::setTrackId ( G4int  trackId)
inline

Definition at line 38 of file HFShowerG4Hit.h.

38 { theTrackId = trackId; }

References theTrackId, and trackId().

Referenced by HFWedgeSD::createNewHit().

◆ time()

G4double HFShowerG4Hit::time ( ) const
inline

Definition at line 49 of file HFShowerG4Hit.h.

49 { return theTime; }

References theTime.

Referenced by HcalForwardAnalysis::setPhotons().

◆ trackId()

G4int HFShowerG4Hit::trackId ( ) const
inline

Definition at line 47 of file HFShowerG4Hit.h.

47 { return theTrackId; }

References theTrackId.

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

◆ updateEnergy()

void HFShowerG4Hit::updateEnergy ( G4double  edep)
inline

Definition at line 40 of file HFShowerG4Hit.h.

40 { theEdep += edep; }

References edep(), and theEdep.

Referenced by HFWedgeSD::updateHit().

Member Data Documentation

◆ globalPos

G4ThreeVector HFShowerG4Hit::globalPos
private

Definition at line 33 of file HFShowerG4Hit.h.

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

◆ localPos

G4ThreeVector HFShowerG4Hit::localPos
private

Definition at line 32 of file HFShowerG4Hit.h.

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

◆ momDir

G4ThreeVector HFShowerG4Hit::momDir
private

Definition at line 34 of file HFShowerG4Hit.h.

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

◆ theEdep

G4double HFShowerG4Hit::theEdep
private

Definition at line 30 of file HFShowerG4Hit.h.

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

◆ theHitId

G4int HFShowerG4Hit::theHitId
private

Definition at line 28 of file HFShowerG4Hit.h.

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

◆ theTime

G4double HFShowerG4Hit::theTime
private

Definition at line 31 of file HFShowerG4Hit.h.

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

◆ theTrackId

G4int HFShowerG4Hit::theTrackId
private

Definition at line 29 of file HFShowerG4Hit.h.

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

fHFShowerG4HitAllocator
G4ThreadLocal G4Allocator< HFShowerG4Hit > * fHFShowerG4HitAllocator
Definition: HFShowerG4Hit.cc:5
HFShowerG4Hit::theHitId
G4int theHitId
Definition: HFShowerG4Hit.h:28
HFShowerG4Hit::theTime
G4double theTime
Definition: HFShowerG4Hit.h:31
HFShowerG4Hit::momDir
G4ThreeVector momDir
Definition: HFShowerG4Hit.h:34
HFShowerG4Hit
Definition: HFShowerG4Hit.h:15
HFShowerG4Hit::hitId
G4int hitId() const
Definition: HFShowerG4Hit.h:46
HFShowerG4Hit::time
G4double time() const
Definition: HFShowerG4Hit.h:49
HFShowerG4Hit::localPos
G4ThreeVector localPos
Definition: HFShowerG4Hit.h:32
HFShowerG4Hit::theEdep
G4double theEdep
Definition: HFShowerG4Hit.h:30
HFShowerG4Hit::globalPos
G4ThreeVector globalPos
Definition: HFShowerG4Hit.h:33
HFShowerG4Hit::theTrackId
G4int theTrackId
Definition: HFShowerG4Hit.h:29
HFShowerG4Hit::trackId
G4int trackId() const
Definition: HFShowerG4Hit.h:47
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
HFShowerG4Hit::edep
G4double edep() const
Definition: HFShowerG4Hit.h:48