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 (G4int hitId, G4int tkID, double edep, double time)
 
 HFShowerG4Hit (const HFShowerG4Hit &right)
 
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::HFShowerG4Hit ( )

Definition at line 8 of file HFShowerG4Hit.cc.

8  : theHitId(0), theTrackId(0), theEdep(0),
9  theTime(0) {}
G4double theEdep
Definition: HFShowerG4Hit.h:33
G4double theTime
Definition: HFShowerG4Hit.h:34
HFShowerG4Hit::HFShowerG4Hit ( G4int  hitId,
G4int  tkID,
double  edep,
double  time 
)

Definition at line 11 of file HFShowerG4Hit.cc.

12  : theHitId(hitId), theTrackId(tkID),
13  theEdep(edep), theTime(time) {}
G4double theEdep
Definition: HFShowerG4Hit.h:33
G4int hitId() const
Definition: HFShowerG4Hit.h:50
G4double edep() const
Definition: HFShowerG4Hit.h:52
G4double theTime
Definition: HFShowerG4Hit.h:34
G4double time() const
Definition: HFShowerG4Hit.h:53
HFShowerG4Hit::~HFShowerG4Hit ( )
override

Definition at line 15 of file HFShowerG4Hit.cc.

15 {}
HFShowerG4Hit::HFShowerG4Hit ( const HFShowerG4Hit right)

Definition at line 17 of file HFShowerG4Hit.cc.

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

17  {
18  theHitId = right.theHitId;
19  theTrackId = right.theTrackId;
20  theEdep = right.theEdep;
21  theTime = right.theTime;
22  localPos = right.localPos;
23  globalPos = right.globalPos;
24  momDir = right.momDir;
25 }
G4double theEdep
Definition: HFShowerG4Hit.h:33
G4ThreeVector localPos
Definition: HFShowerG4Hit.h:35
G4double theTime
Definition: HFShowerG4Hit.h:34
G4ThreeVector momDir
Definition: HFShowerG4Hit.h:37
G4ThreeVector globalPos
Definition: HFShowerG4Hit.h:36

Member Function Documentation

G4double HFShowerG4Hit::edep ( ) const
inline

Definition at line 52 of file HFShowerG4Hit.h.

References theEdep.

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

52 {return theEdep;};
G4double theEdep
Definition: HFShowerG4Hit.h:33
G4ThreeVector HFShowerG4Hit::globalPosition ( ) const
inline

Definition at line 55 of file HFShowerG4Hit.h.

References globalPos.

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

55 {return globalPos;}
G4ThreeVector globalPos
Definition: HFShowerG4Hit.h:36
G4int HFShowerG4Hit::hitId ( ) const
inline

Definition at line 50 of file HFShowerG4Hit.h.

References theHitId.

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

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

Definition at line 54 of file HFShowerG4Hit.h.

References localPos.

Referenced by operator<<().

54 {return localPos;}
G4ThreeVector localPos
Definition: HFShowerG4Hit.h:35
void HFShowerG4Hit::operator delete ( void *  aHit)
inline

Definition at line 69 of file HFShowerG4Hit.h.

References fHFShowerG4HitAllocator.

69  {
70  fHFShowerG4HitAllocator->FreeSingle((HFShowerG4Hit*) aHit);
71 }
G4ThreadLocal G4Allocator< HFShowerG4Hit > * fHFShowerG4HitAllocator
Definition: HFShowerG4Hit.cc:6
void * HFShowerG4Hit::operator new ( size_t  )
inline

Definition at line 63 of file HFShowerG4Hit.h.

References fHFShowerG4HitAllocator.

63  {
65  new G4Allocator<HFShowerG4Hit>;
66  return (void*)fHFShowerG4HitAllocator->MallocSingle();
67 }
G4ThreadLocal G4Allocator< HFShowerG4Hit > * fHFShowerG4HitAllocator
Definition: HFShowerG4Hit.cc:6
const HFShowerG4Hit & HFShowerG4Hit::operator= ( const HFShowerG4Hit right)

Definition at line 27 of file HFShowerG4Hit.cc.

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

27  {
28  theHitId = right.theHitId;
29  theTrackId = right.theTrackId;
30  theEdep = right.theEdep;
31  theTime = right.theTime;
32  localPos = right.localPos;
33  globalPos = right.globalPos;
34  momDir = right.momDir;
35  return *this;
36 }
G4double theEdep
Definition: HFShowerG4Hit.h:33
G4ThreeVector localPos
Definition: HFShowerG4Hit.h:35
G4double theTime
Definition: HFShowerG4Hit.h:34
G4ThreeVector momDir
Definition: HFShowerG4Hit.h:37
G4ThreeVector globalPos
Definition: HFShowerG4Hit.h:36
int HFShowerG4Hit::operator== ( const HFShowerG4Hit right) const

Definition at line 38 of file HFShowerG4Hit.cc.

38  {
39  return (this==&right) ? 1 : 0;
40 }
G4ThreeVector HFShowerG4Hit::primaryMomDir ( ) const
inline

Definition at line 56 of file HFShowerG4Hit.h.

References momDir.

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

56 {return momDir;}
G4ThreeVector momDir
Definition: HFShowerG4Hit.h:37
void HFShowerG4Hit::setEnergy ( G4double  edep)
inline

Definition at line 43 of file HFShowerG4Hit.h.

References edep().

43 {theEdep = edep;}
G4double theEdep
Definition: HFShowerG4Hit.h:33
G4double edep() const
Definition: HFShowerG4Hit.h:52
void HFShowerG4Hit::setGlobalPos ( const G4ThreeVector &  xyz)
inline

Definition at line 47 of file HFShowerG4Hit.h.

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

47 {globalPos = xyz;}
G4ThreeVector globalPos
Definition: HFShowerG4Hit.h:36
void HFShowerG4Hit::setHitId ( G4int  hitId)
inline

Definition at line 41 of file HFShowerG4Hit.h.

References hitId().

Referenced by HFWedgeSD::createNewHit().

41 {theHitId = hitId;}
G4int hitId() const
Definition: HFShowerG4Hit.h:50
void HFShowerG4Hit::setLocalPos ( const G4ThreeVector &  xyz)
inline

Definition at line 46 of file HFShowerG4Hit.h.

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

46 {localPos = xyz;}
G4ThreeVector localPos
Definition: HFShowerG4Hit.h:35
void HFShowerG4Hit::setPrimMomDir ( const G4ThreeVector &  xyz)
inline

Definition at line 48 of file HFShowerG4Hit.h.

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

48 {momDir = xyz;}
G4ThreeVector momDir
Definition: HFShowerG4Hit.h:37
void HFShowerG4Hit::setTime ( G4double  t)
inline

Definition at line 45 of file HFShowerG4Hit.h.

References lumiQTWidget::t.

Referenced by HFWedgeSD::createNewHit().

45 {theTime = t;}
G4double theTime
Definition: HFShowerG4Hit.h:34
void HFShowerG4Hit::setTrackId ( G4int  trackId)
inline

Definition at line 42 of file HFShowerG4Hit.h.

References trackId().

Referenced by HFWedgeSD::createNewHit().

G4int trackId() const
Definition: HFShowerG4Hit.h:51
G4double HFShowerG4Hit::time ( ) const
inline

Definition at line 53 of file HFShowerG4Hit.h.

References theTime.

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

53 {return theTime;}
G4double theTime
Definition: HFShowerG4Hit.h:34
G4int HFShowerG4Hit::trackId ( ) const
inline

Definition at line 51 of file HFShowerG4Hit.h.

References theTrackId.

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

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

Definition at line 44 of file HFShowerG4Hit.h.

References edep().

Referenced by HFWedgeSD::updateHit().

44 {theEdep += edep;}
G4double theEdep
Definition: HFShowerG4Hit.h:33
G4double edep() const
Definition: HFShowerG4Hit.h:52

Member Data Documentation

G4ThreeVector HFShowerG4Hit::globalPos
private

Definition at line 36 of file HFShowerG4Hit.h.

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

G4ThreeVector HFShowerG4Hit::localPos
private

Definition at line 35 of file HFShowerG4Hit.h.

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

G4ThreeVector HFShowerG4Hit::momDir
private

Definition at line 37 of file HFShowerG4Hit.h.

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

G4double HFShowerG4Hit::theEdep
private

Definition at line 33 of file HFShowerG4Hit.h.

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

G4int HFShowerG4Hit::theHitId
private

Definition at line 31 of file HFShowerG4Hit.h.

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

G4double HFShowerG4Hit::theTime
private

Definition at line 34 of file HFShowerG4Hit.h.

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

G4int HFShowerG4Hit::theTrackId
private

Definition at line 32 of file HFShowerG4Hit.h.

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