test
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
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
 
virtual ~FiberG4Hit ()
 

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 15 of file FiberG4Hit.h.

Constructor & Destructor Documentation

FiberG4Hit::FiberG4Hit ( )

Definition at line 7 of file FiberG4Hit.cc.

References theHitPos.

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

Definition at line 12 of file FiberG4Hit.cc.

References theHitPos.

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

Definition at line 19 of file FiberG4Hit.cc.

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

Definition at line 21 of file FiberG4Hit.cc.

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

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

Member Function Documentation

void FiberG4Hit::add ( G4int  npe)
inline

Definition at line 56 of file FiberG4Hit.h.

References npe(), and theNpe.

Referenced by counter.Counter::register().

56 {theNpe +=npe;}
G4int theNpe
Definition: FiberG4Hit.h:34
G4int npe() const
Definition: FiberG4Hit.h:52
G4int FiberG4Hit::depth ( void  ) const
inline

Definition at line 50 of file FiberG4Hit.h.

References theDepth.

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

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

Definition at line 53 of file FiberG4Hit.h.

References theHitPos.

Referenced by operator<<().

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

Definition at line 52 of file FiberG4Hit.h.

References theNpe.

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

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

Definition at line 69 of file FiberG4Hit.h.

References fFiberG4HitAllocator.

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

Definition at line 63 of file FiberG4Hit.h.

References fFiberG4HitAllocator.

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

Definition at line 30 of file FiberG4Hit.cc.

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

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

Definition at line 40 of file FiberG4Hit.cc.

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

Definition at line 55 of file FiberG4Hit.h.

References thePhoton.

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

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

Definition at line 43 of file FiberG4Hit.h.

References depth(), and theDepth.

43 {theDepth = depth;}
G4int depth() const
Definition: FiberG4Hit.h:50
G4int theDepth
Definition: FiberG4Hit.h:32
void FiberG4Hit::setNpe ( G4int  npe)
inline

Definition at line 44 of file FiberG4Hit.h.

References npe(), and theNpe.

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

Definition at line 47 of file FiberG4Hit.h.

References photon(), and thePhoton.

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

Definition at line 45 of file FiberG4Hit.h.

References theHitPos.

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

Definition at line 46 of file FiberG4Hit.h.

References lumiQTWidget::t, and theTime.

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

Definition at line 42 of file FiberG4Hit.h.

References theTowerId.

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

Definition at line 54 of file FiberG4Hit.h.

References theTime.

Referenced by operator<<().

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

Definition at line 49 of file FiberG4Hit.h.

References theTowerId.

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

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

Definition at line 51 of file FiberG4Hit.h.

References theTrackId.

Referenced by operator<<().

51 {return theTrackId;}
G4int theTrackId
Definition: FiberG4Hit.h:33

Member Data Documentation

G4int FiberG4Hit::theDepth
private

Definition at line 32 of file FiberG4Hit.h.

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

math::XYZPoint FiberG4Hit::theHitPos
private

Definition at line 36 of file FiberG4Hit.h.

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

const G4LogicalVolume* FiberG4Hit::theLogV
private

Definition at line 38 of file FiberG4Hit.h.

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

G4int FiberG4Hit::theNpe
private

Definition at line 34 of file FiberG4Hit.h.

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

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

Definition at line 37 of file FiberG4Hit.h.

Referenced by photon(), and setPhoton().

G4double FiberG4Hit::theTime
private

Definition at line 35 of file FiberG4Hit.h.

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

G4int FiberG4Hit::theTowerId
private

Definition at line 31 of file FiberG4Hit.h.

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

G4int FiberG4Hit::theTrackId
private

Definition at line 33 of file FiberG4Hit.h.

Referenced by trackId().