CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
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.

8  : theHitId(0), theTrackId(0), theEdep(0),
9  theTime(0) {}
G4double theEdep
Definition: HFShowerG4Hit.h:34
G4double theTime
Definition: HFShowerG4Hit.h:35
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:34
G4int hitId() const
Definition: HFShowerG4Hit.h:51
G4double edep() const
Definition: HFShowerG4Hit.h:53
G4double theTime
Definition: HFShowerG4Hit.h:35
G4double time() const
Definition: HFShowerG4Hit.h:54
HFShowerG4Hit::~HFShowerG4Hit ( )
virtual

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:34
G4ThreeVector localPos
Definition: HFShowerG4Hit.h:36
G4double theTime
Definition: HFShowerG4Hit.h:35
G4ThreeVector momDir
Definition: HFShowerG4Hit.h:38
G4ThreeVector globalPos
Definition: HFShowerG4Hit.h:37

Member Function Documentation

G4double HFShowerG4Hit::edep ( ) const
inline

Definition at line 53 of file HFShowerG4Hit.h.

References theEdep.

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

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

Definition at line 56 of file HFShowerG4Hit.h.

References globalPos.

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

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

Definition at line 51 of file HFShowerG4Hit.h.

References theHitId.

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

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

Definition at line 55 of file HFShowerG4Hit.h.

References localPos.

Referenced by operator<<().

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

Definition at line 70 of file HFShowerG4Hit.h.

References fHFShowerG4HitAllocator.

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

Definition at line 64 of file HFShowerG4Hit.h.

References fHFShowerG4HitAllocator.

64  {
66  new G4Allocator<HFShowerG4Hit>;
67  return (void*)fHFShowerG4HitAllocator->MallocSingle();
68 }
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:34
G4ThreeVector localPos
Definition: HFShowerG4Hit.h:36
G4double theTime
Definition: HFShowerG4Hit.h:35
G4ThreeVector momDir
Definition: HFShowerG4Hit.h:38
G4ThreeVector globalPos
Definition: HFShowerG4Hit.h:37
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 57 of file HFShowerG4Hit.h.

References momDir.

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

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

Definition at line 44 of file HFShowerG4Hit.h.

References edep(), and theEdep.

44 {theEdep = edep;}
G4double theEdep
Definition: HFShowerG4Hit.h:34
G4double edep() const
Definition: HFShowerG4Hit.h:53
void HFShowerG4Hit::setGlobalPos ( const G4ThreeVector &  xyz)
inline

Definition at line 48 of file HFShowerG4Hit.h.

References globalPos.

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

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

Definition at line 42 of file HFShowerG4Hit.h.

References hitId(), and theHitId.

Referenced by HFWedgeSD::createNewHit().

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

Definition at line 47 of file HFShowerG4Hit.h.

References localPos.

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

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

Definition at line 49 of file HFShowerG4Hit.h.

References momDir.

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

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

Definition at line 46 of file HFShowerG4Hit.h.

References tree::t, and theTime.

Referenced by HFWedgeSD::createNewHit().

46 {theTime = t;}
tuple t
Definition: tree.py:139
G4double theTime
Definition: HFShowerG4Hit.h:35
void HFShowerG4Hit::setTrackId ( G4int  trackId)
inline

Definition at line 43 of file HFShowerG4Hit.h.

References theTrackId, and trackId().

Referenced by HFWedgeSD::createNewHit().

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

Definition at line 54 of file HFShowerG4Hit.h.

References theTime.

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

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

Definition at line 52 of file HFShowerG4Hit.h.

References theTrackId.

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

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

Definition at line 45 of file HFShowerG4Hit.h.

References edep(), and theEdep.

Referenced by HFWedgeSD::updateHit().

45 {theEdep += edep;}
G4double theEdep
Definition: HFShowerG4Hit.h:34
G4double edep() const
Definition: HFShowerG4Hit.h:53

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().