CMS 3D CMS Logo

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

#include <FiberG4Hit.h>

Inheritance diagram for FiberG4Hit:

Public Member Functions

void add (G4int npe)
 
G4int depth () const
 
 FiberG4Hit ()
 
 FiberG4Hit (G4LogicalVolume *logVol, G4int tower, G4int depth, G4int tkID)
 
 FiberG4Hit (const FiberG4Hit &right)
 
math::XYZPoint hitPos () const
 
G4int npe () const
 
void operator delete (void *aHit)
 
void * operator new (size_t)
 
const FiberG4Hitoperator= (const FiberG4Hit &right)
 
G4int operator== (const FiberG4Hit &right) const
 
std::vector< HFShowerPhotonphoton () const
 
void setDepth (G4int depth)
 
void setNpe (G4int npe)
 
void setPhoton (const std::vector< HFShowerPhoton > &photon)
 
void setPos (const math::XYZPoint &xyz)
 
void setTime (G4double t)
 
void setTowerId (G4int tower)
 
G4double time () const
 
G4int towerId () const
 
G4int trackId () const
 
 ~FiberG4Hit () override
 

Private Attributes

G4int theDepth
 
math::XYZPoint theHitPos
 
const G4LogicalVolume * theLogV
 
G4int theNpe
 
std::vector< HFShowerPhotonthePhoton
 
G4double theTime
 
G4int theTowerId
 
G4int theTrackId
 

Detailed Description

Definition at line 14 of file FiberG4Hit.h.

Constructor & Destructor Documentation

FiberG4Hit::FiberG4Hit ( )

Definition at line 6 of file FiberG4Hit.cc.

References theHitPos.

6  : theTowerId(0), theDepth(0), theTrackId(0),
7  theNpe(0), theTime(0), theLogV(nullptr) {
8  theHitPos.SetCoordinates(0.,0.,0.);
9 }
G4int theTrackId
Definition: FiberG4Hit.h:32
G4double theTime
Definition: FiberG4Hit.h:34
G4int theTowerId
Definition: FiberG4Hit.h:30
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:37
G4int theNpe
Definition: FiberG4Hit.h:33
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:35
G4int theDepth
Definition: FiberG4Hit.h:31
FiberG4Hit::FiberG4Hit ( G4LogicalVolume *  logVol,
G4int  tower,
G4int  depth,
G4int  tkID 
)

Definition at line 11 of file FiberG4Hit.cc.

References theHitPos.

12  : theTowerId(tower), theDepth(depth),
13  theTrackId(tkID), theNpe(0), theTime(0),
14  theLogV(logVol) {
15  theHitPos.SetCoordinates(0.,0.,0.);
16 }
G4int theTrackId
Definition: FiberG4Hit.h:32
G4int depth() const
Definition: FiberG4Hit.h:49
G4double theTime
Definition: FiberG4Hit.h:34
G4int theTowerId
Definition: FiberG4Hit.h:30
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:37
G4int theNpe
Definition: FiberG4Hit.h:33
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:35
G4int theDepth
Definition: FiberG4Hit.h:31
FiberG4Hit::~FiberG4Hit ( )
override

Definition at line 18 of file FiberG4Hit.cc.

18 {}
FiberG4Hit::FiberG4Hit ( const FiberG4Hit right)

Definition at line 20 of file FiberG4Hit.cc.

References theDepth, theHitPos, theLogV, theNpe, theTime, and theTowerId.

20  {
21  theTowerId = right.theTowerId;
22  theDepth = right.theDepth;
23  theNpe = right.theNpe;
24  theTime = right.theTime;
25  theHitPos = right.theHitPos;
26  theLogV = right.theLogV;
27 }
G4double theTime
Definition: FiberG4Hit.h:34
G4int theTowerId
Definition: FiberG4Hit.h:30
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:37
G4int theNpe
Definition: FiberG4Hit.h:33
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:35
G4int theDepth
Definition: FiberG4Hit.h:31

Member Function Documentation

void FiberG4Hit::add ( G4int  npe)
inline

Definition at line 55 of file FiberG4Hit.h.

References npe().

Referenced by counter.Counter::register().

55 {theNpe +=npe;}
G4int theNpe
Definition: FiberG4Hit.h:33
G4int npe() const
Definition: FiberG4Hit.h:51
G4int FiberG4Hit::depth ( void  ) const
inline

Definition at line 49 of file FiberG4Hit.h.

References theDepth.

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

49 {return theDepth;}
G4int theDepth
Definition: FiberG4Hit.h:31
math::XYZPoint FiberG4Hit::hitPos ( ) const
inline

Definition at line 52 of file FiberG4Hit.h.

References theHitPos.

Referenced by operator<<().

52 {return theHitPos;};
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:35
G4int FiberG4Hit::npe ( ) const
inline

Definition at line 51 of file FiberG4Hit.h.

References theNpe.

Referenced by add(), operator<<(), and setNpe().

51 {return theNpe;}
G4int theNpe
Definition: FiberG4Hit.h:33
void FiberG4Hit::operator delete ( void *  aHit)
inline

Definition at line 68 of file FiberG4Hit.h.

References fFiberG4HitAllocator.

68  {
69  fFiberG4HitAllocator->FreeSingle((FiberG4Hit*) aHit);
70 }
G4ThreadLocal G4Allocator< FiberG4Hit > * fFiberG4HitAllocator
Definition: FiberG4Hit.cc:4
void * FiberG4Hit::operator new ( size_t  )
inline

Definition at line 62 of file FiberG4Hit.h.

References fFiberG4HitAllocator.

62  {
64  new G4Allocator<FiberG4Hit>;
65  return (void*)fFiberG4HitAllocator->MallocSingle();
66 }
G4ThreadLocal G4Allocator< FiberG4Hit > * fFiberG4HitAllocator
Definition: FiberG4Hit.cc:4
const FiberG4Hit & FiberG4Hit::operator= ( const FiberG4Hit right)

Definition at line 29 of file FiberG4Hit.cc.

References theDepth, theHitPos, theLogV, theNpe, theTime, and theTowerId.

29  {
30  theTowerId = right.theTowerId;
31  theDepth = right.theDepth;
32  theNpe = right.theNpe;
33  theTime = right.theTime;
34  theHitPos = right.theHitPos;
35  theLogV = right.theLogV;
36  return *this;
37 }
G4double theTime
Definition: FiberG4Hit.h:34
G4int theTowerId
Definition: FiberG4Hit.h:30
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:37
G4int theNpe
Definition: FiberG4Hit.h:33
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:35
G4int theDepth
Definition: FiberG4Hit.h:31
int FiberG4Hit::operator== ( const FiberG4Hit right) const

Definition at line 39 of file FiberG4Hit.cc.

39  {
40  return (this==&right) ? 1 : 0;
41 }
std::vector<HFShowerPhoton> FiberG4Hit::photon ( ) const
inline

Definition at line 54 of file FiberG4Hit.h.

References thePhoton.

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

54 {return thePhoton;}
std::vector< HFShowerPhoton > thePhoton
Definition: FiberG4Hit.h:36
void FiberG4Hit::setDepth ( G4int  depth)
inline

Definition at line 42 of file FiberG4Hit.h.

References depth().

42 {theDepth = depth;}
G4int depth() const
Definition: FiberG4Hit.h:49
G4int theDepth
Definition: FiberG4Hit.h:31
void FiberG4Hit::setNpe ( G4int  npe)
inline

Definition at line 43 of file FiberG4Hit.h.

References npe().

43 {theNpe = npe;}
G4int theNpe
Definition: FiberG4Hit.h:33
G4int npe() const
Definition: FiberG4Hit.h:51
void FiberG4Hit::setPhoton ( const std::vector< HFShowerPhoton > &  photon)
inline

Definition at line 46 of file FiberG4Hit.h.

References photon().

46 {thePhoton = photon; }
std::vector< HFShowerPhoton > thePhoton
Definition: FiberG4Hit.h:36
std::vector< HFShowerPhoton > photon() const
Definition: FiberG4Hit.h:54
void FiberG4Hit::setPos ( const math::XYZPoint xyz)
inline

Definition at line 44 of file FiberG4Hit.h.

44 {theHitPos = xyz;}
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:35
void FiberG4Hit::setTime ( G4double  t)
inline

Definition at line 45 of file FiberG4Hit.h.

References lumiQTWidget::t.

45 {theTime = t; }
G4double theTime
Definition: FiberG4Hit.h:34
void FiberG4Hit::setTowerId ( G4int  tower)
inline

Definition at line 41 of file FiberG4Hit.h.

41 {theTowerId = tower;}
G4int theTowerId
Definition: FiberG4Hit.h:30
G4double FiberG4Hit::time ( ) const
inline

Definition at line 53 of file FiberG4Hit.h.

References theTime.

Referenced by operator<<().

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

Definition at line 48 of file FiberG4Hit.h.

References theTowerId.

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

48 {return theTowerId;}
G4int theTowerId
Definition: FiberG4Hit.h:30
G4int FiberG4Hit::trackId ( ) const
inline

Definition at line 50 of file FiberG4Hit.h.

References theTrackId.

Referenced by operator<<().

50 {return theTrackId;}
G4int theTrackId
Definition: FiberG4Hit.h:32

Member Data Documentation

G4int FiberG4Hit::theDepth
private

Definition at line 31 of file FiberG4Hit.h.

Referenced by depth(), FiberG4Hit(), and operator=().

math::XYZPoint FiberG4Hit::theHitPos
private

Definition at line 35 of file FiberG4Hit.h.

Referenced by FiberG4Hit(), hitPos(), and operator=().

const G4LogicalVolume* FiberG4Hit::theLogV
private

Definition at line 37 of file FiberG4Hit.h.

Referenced by FiberG4Hit(), and operator=().

G4int FiberG4Hit::theNpe
private

Definition at line 33 of file FiberG4Hit.h.

Referenced by FiberG4Hit(), npe(), and operator=().

std::vector<HFShowerPhoton> FiberG4Hit::thePhoton
private

Definition at line 36 of file FiberG4Hit.h.

Referenced by photon().

G4double FiberG4Hit::theTime
private

Definition at line 34 of file FiberG4Hit.h.

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

G4int FiberG4Hit::theTowerId
private

Definition at line 30 of file FiberG4Hit.h.

Referenced by FiberG4Hit(), operator=(), and towerId().

G4int FiberG4Hit::theTrackId
private

Definition at line 32 of file FiberG4Hit.h.

Referenced by trackId().