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 (const FiberG4Hit &right)
 
 FiberG4Hit (G4LogicalVolume *logVol, G4int tower, G4int depth, G4int tkID)
 
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.

6  : theTowerId(0), theDepth(0), theTrackId(0), theNpe(0), theTime(0), theLogV(nullptr) {
7  theHitPos.SetCoordinates(0., 0., 0.);
8 }

References theHitPos.

◆ FiberG4Hit() [2/3]

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

Definition at line 10 of file FiberG4Hit.cc.

11  : theTowerId(tower), theDepth(depth), theTrackId(tkID), theNpe(0), theTime(0), theLogV(logVol) {
12  theHitPos.SetCoordinates(0., 0., 0.);
13 }

References theHitPos.

◆ ~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.

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 }

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

Member Function Documentation

◆ add()

void FiberG4Hit::add ( G4int  npe)
inline

Definition at line 51 of file FiberG4Hit.h.

51 { theNpe += npe; }

References npe(), and theNpe.

Referenced by counter.Counter::register().

◆ depth()

G4int FiberG4Hit::depth ( void  ) const
inline

Definition at line 45 of file FiberG4Hit.h.

45 { return theDepth; }

References theDepth.

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

◆ hitPos()

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

Definition at line 48 of file FiberG4Hit.h.

48 { return theHitPos; };

References theHitPos.

◆ npe()

G4int FiberG4Hit::npe ( ) const
inline

Definition at line 47 of file FiberG4Hit.h.

47 { return theNpe; }

References theNpe.

Referenced by add(), and setNpe().

◆ operator delete()

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

Definition at line 64 of file FiberG4Hit.h.

64 { fFiberG4HitAllocator->FreeSingle((FiberG4Hit *)aHit); }

References fFiberG4HitAllocator.

◆ operator new()

void * FiberG4Hit::operator new ( size_t  )
inline

Definition at line 58 of file FiberG4Hit.h.

58  {
60  fFiberG4HitAllocator = new G4Allocator<FiberG4Hit>;
61  return (void *)fFiberG4HitAllocator->MallocSingle();
62 }

References fFiberG4HitAllocator.

◆ operator=()

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

Definition at line 26 of file FiberG4Hit.cc.

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 }

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

◆ 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.

50 { return thePhoton; }

References thePhoton.

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

◆ setDepth()

void FiberG4Hit::setDepth ( G4int  depth)
inline

Definition at line 38 of file FiberG4Hit.h.

38 { theDepth = depth; }

References depth(), and theDepth.

◆ setNpe()

void FiberG4Hit::setNpe ( G4int  npe)
inline

Definition at line 39 of file FiberG4Hit.h.

39 { theNpe = npe; }

References npe(), and theNpe.

◆ setPhoton()

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

Definition at line 42 of file FiberG4Hit.h.

42 { thePhoton = photon; }

References photon(), and thePhoton.

◆ setPos()

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

Definition at line 40 of file FiberG4Hit.h.

40 { theHitPos = xyz; }

References theHitPos.

◆ setTime()

void FiberG4Hit::setTime ( G4double  t)
inline

Definition at line 41 of file FiberG4Hit.h.

41 { theTime = t; }

References OrderedSet::t, and theTime.

◆ setTowerId()

void FiberG4Hit::setTowerId ( G4int  tower)
inline

Definition at line 37 of file FiberG4Hit.h.

37 { theTowerId = tower; }

References theTowerId, and hgcalTowerProducer_cfi::tower.

◆ time()

G4double FiberG4Hit::time ( ) const
inline

Definition at line 49 of file FiberG4Hit.h.

49 { return theTime; }

References theTime.

◆ towerId()

G4int FiberG4Hit::towerId ( ) const
inline

Definition at line 44 of file FiberG4Hit.h.

44 { return theTowerId; }

References theTowerId.

Referenced by HcalForwardAnalysis::setPhotons().

◆ trackId()

G4int FiberG4Hit::trackId ( ) const
inline

Definition at line 46 of file FiberG4Hit.h.

46 { return theTrackId; }

References theTrackId.

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

FiberG4Hit::theTowerId
G4int theTowerId
Definition: FiberG4Hit.h:27
fFiberG4HitAllocator
G4ThreadLocal G4Allocator< FiberG4Hit > * fFiberG4HitAllocator
Definition: FiberG4Hit.cc:4
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:3
FiberG4Hit::theLogV
const G4LogicalVolume * theLogV
Definition: FiberG4Hit.h:34
FiberG4Hit::theHitPos
math::XYZPoint theHitPos
Definition: FiberG4Hit.h:32
FiberG4Hit::theNpe
G4int theNpe
Definition: FiberG4Hit.h:30
FiberG4Hit
Definition: FiberG4Hit.h:14
FiberG4Hit::npe
G4int npe() const
Definition: FiberG4Hit.h:47
FiberG4Hit::theDepth
G4int theDepth
Definition: FiberG4Hit.h:28
FiberG4Hit::theTrackId
G4int theTrackId
Definition: FiberG4Hit.h:29
OrderedSet.t
t
Definition: OrderedSet.py:90
FiberG4Hit::depth
G4int depth() const
Definition: FiberG4Hit.h:45
FiberG4Hit::theTime
G4double theTime
Definition: FiberG4Hit.h:31
FiberG4Hit::thePhoton
std::vector< HFShowerPhoton > thePhoton
Definition: FiberG4Hit.h:33
FiberG4Hit::photon
std::vector< HFShowerPhoton > photon() const
Definition: FiberG4Hit.h:50