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() [1/3]

FiberG4Hit::FiberG4Hit ( )

Definition at line 6 of file FiberG4Hit.cc.

References theHitPos.

6  : theTowerId(0), theDepth(0), theTrackId(0), theNpe(0), theTime(0), theLogV(nullptr) {
7  theHitPos.SetCoordinates(0., 0., 0.);
8 }
G4int theTrackId
Definition: FiberG4Hit.h:29
G4double theTime
Definition: FiberG4Hit.h:31
G4int theTowerId
Definition: FiberG4Hit.h:27
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:34
G4int theNpe
Definition: FiberG4Hit.h:30
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:32
G4int theDepth
Definition: FiberG4Hit.h:28

◆ FiberG4Hit() [2/3]

FiberG4Hit::FiberG4Hit ( G4LogicalVolume *  logVol,
G4int  tower,
G4int  depth,
G4int  tkID 
)

Definition at line 10 of file FiberG4Hit.cc.

References theHitPos.

11  : theTowerId(tower), theDepth(depth), theTrackId(tkID), theNpe(0), theTime(0), theLogV(logVol) {
12  theHitPos.SetCoordinates(0., 0., 0.);
13 }
G4int depth() const
Definition: FiberG4Hit.h:45
G4int theTrackId
Definition: FiberG4Hit.h:29
G4double theTime
Definition: FiberG4Hit.h:31
G4int theTowerId
Definition: FiberG4Hit.h:27
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:34
G4int theNpe
Definition: FiberG4Hit.h:30
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:32
G4int theDepth
Definition: FiberG4Hit.h:28

◆ ~FiberG4Hit()

FiberG4Hit::~FiberG4Hit ( )
override

Definition at line 15 of file FiberG4Hit.cc.

15 {}

◆ FiberG4Hit() [3/3]

FiberG4Hit::FiberG4Hit ( const FiberG4Hit right)

Definition at line 17 of file FiberG4Hit.cc.

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

17  {
18  theTowerId = right.theTowerId;
19  theDepth = right.theDepth;
20  theNpe = right.theNpe;
21  theTime = right.theTime;
22  theHitPos = right.theHitPos;
23  theLogV = right.theLogV;
24 }
G4double theTime
Definition: FiberG4Hit.h:31
G4int theTowerId
Definition: FiberG4Hit.h:27
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:34
G4int theNpe
Definition: FiberG4Hit.h:30
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:32
G4int theDepth
Definition: FiberG4Hit.h:28

Member Function Documentation

◆ add()

void FiberG4Hit::add ( G4int  npe)
inline

Definition at line 51 of file FiberG4Hit.h.

References npe(), and theNpe.

Referenced by counter.Counter::register().

51 { theNpe += npe; }
G4int theNpe
Definition: FiberG4Hit.h:30
G4int npe() const
Definition: FiberG4Hit.h:47

◆ depth()

G4int FiberG4Hit::depth ( void  ) const
inline

Definition at line 45 of file FiberG4Hit.h.

References theDepth.

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

45 { return theDepth; }
G4int theDepth
Definition: FiberG4Hit.h:28

◆ hitPos()

math::XYZPoint FiberG4Hit::hitPos ( ) const
inline

Definition at line 48 of file FiberG4Hit.h.

References theHitPos.

48 { return theHitPos; };
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:32

◆ npe()

G4int FiberG4Hit::npe ( ) const
inline

Definition at line 47 of file FiberG4Hit.h.

References theNpe.

Referenced by add(), and setNpe().

47 { return theNpe; }
G4int theNpe
Definition: FiberG4Hit.h:30

◆ operator delete()

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

Definition at line 64 of file FiberG4Hit.h.

References fFiberG4HitAllocator.

64 { fFiberG4HitAllocator->FreeSingle((FiberG4Hit *)aHit); }
G4ThreadLocal G4Allocator< FiberG4Hit > * fFiberG4HitAllocator
Definition: FiberG4Hit.cc:4

◆ operator new()

void * FiberG4Hit::operator new ( size_t  )
inline

Definition at line 58 of file FiberG4Hit.h.

References fFiberG4HitAllocator.

58  {
60  fFiberG4HitAllocator = new G4Allocator<FiberG4Hit>;
61  return (void *)fFiberG4HitAllocator->MallocSingle();
62 }
G4ThreadLocal G4Allocator< FiberG4Hit > * fFiberG4HitAllocator
Definition: FiberG4Hit.cc:4

◆ operator=()

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

Definition at line 26 of file FiberG4Hit.cc.

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

26  {
27  theTowerId = right.theTowerId;
28  theDepth = right.theDepth;
29  theNpe = right.theNpe;
30  theTime = right.theTime;
31  theHitPos = right.theHitPos;
32  theLogV = right.theLogV;
33  return *this;
34 }
G4double theTime
Definition: FiberG4Hit.h:31
G4int theTowerId
Definition: FiberG4Hit.h:27
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:34
G4int theNpe
Definition: FiberG4Hit.h:30
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:32
G4int theDepth
Definition: FiberG4Hit.h:28

◆ operator==()

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

Definition at line 36 of file FiberG4Hit.cc.

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

◆ photon()

std::vector<HFShowerPhoton> FiberG4Hit::photon ( ) const
inline

Definition at line 50 of file FiberG4Hit.h.

References thePhoton.

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

50 { return thePhoton; }
std::vector< HFShowerPhoton > thePhoton
Definition: FiberG4Hit.h:33

◆ setDepth()

void FiberG4Hit::setDepth ( G4int  depth)
inline

Definition at line 38 of file FiberG4Hit.h.

References depth(), and theDepth.

38 { theDepth = depth; }
G4int depth() const
Definition: FiberG4Hit.h:45
G4int theDepth
Definition: FiberG4Hit.h:28

◆ setNpe()

void FiberG4Hit::setNpe ( G4int  npe)
inline

Definition at line 39 of file FiberG4Hit.h.

References npe(), and theNpe.

39 { theNpe = npe; }
G4int theNpe
Definition: FiberG4Hit.h:30
G4int npe() const
Definition: FiberG4Hit.h:47

◆ setPhoton()

void FiberG4Hit::setPhoton ( const std::vector< HFShowerPhoton > &  photon)
inline

Definition at line 42 of file FiberG4Hit.h.

References photon(), and thePhoton.

42 { thePhoton = photon; }
std::vector< HFShowerPhoton > thePhoton
Definition: FiberG4Hit.h:33
std::vector< HFShowerPhoton > photon() const
Definition: FiberG4Hit.h:50

◆ setPos()

void FiberG4Hit::setPos ( const math::XYZPoint xyz)
inline

Definition at line 40 of file FiberG4Hit.h.

References theHitPos.

40 { theHitPos = xyz; }
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:32

◆ setTime()

void FiberG4Hit::setTime ( G4double  t)
inline

Definition at line 41 of file FiberG4Hit.h.

References submitPVValidationJobs::t, and theTime.

◆ setTowerId()

void FiberG4Hit::setTowerId ( G4int  tower)
inline

◆ time()

G4double FiberG4Hit::time ( ) const
inline

Definition at line 49 of file FiberG4Hit.h.

References theTime.

49 { return theTime; }
G4double theTime
Definition: FiberG4Hit.h:31

◆ towerId()

G4int FiberG4Hit::towerId ( ) const
inline

Definition at line 44 of file FiberG4Hit.h.

References theTowerId.

Referenced by HcalForwardAnalysis::setPhotons().

44 { return theTowerId; }
G4int theTowerId
Definition: FiberG4Hit.h:27

◆ trackId()

G4int FiberG4Hit::trackId ( ) const
inline

Definition at line 46 of file FiberG4Hit.h.

References theTrackId.

46 { return theTrackId; }
G4int theTrackId
Definition: FiberG4Hit.h:29

Member Data Documentation

◆ theDepth

G4int FiberG4Hit::theDepth
private

Definition at line 28 of file FiberG4Hit.h.

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

◆ theHitPos

math::XYZPoint FiberG4Hit::theHitPos
private

Definition at line 32 of file FiberG4Hit.h.

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

◆ theLogV

const G4LogicalVolume* FiberG4Hit::theLogV
private

Definition at line 34 of file FiberG4Hit.h.

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

◆ theNpe

G4int FiberG4Hit::theNpe
private

Definition at line 30 of file FiberG4Hit.h.

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

◆ thePhoton

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

Definition at line 33 of file FiberG4Hit.h.

Referenced by photon(), and setPhoton().

◆ theTime

G4double FiberG4Hit::theTime
private

Definition at line 31 of file FiberG4Hit.h.

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

◆ theTowerId

G4int FiberG4Hit::theTowerId
private

Definition at line 27 of file FiberG4Hit.h.

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

◆ theTrackId

G4int FiberG4Hit::theTrackId
private

Definition at line 29 of file FiberG4Hit.h.

Referenced by trackId().