Geant4  10.02.p03
ExN02TrackerHit Class Reference

#include <ExN02TrackerHit.hh>

Inheritance diagram for ExN02TrackerHit:
Collaboration diagram for ExN02TrackerHit:

Public Member Functions

 ExN02TrackerHit ()
 
 ~ExN02TrackerHit ()
 
 ExN02TrackerHit (const ExN02TrackerHit &)
 
const ExN02TrackerHitoperator= (const ExN02TrackerHit &)
 
G4int operator== (const ExN02TrackerHit &) const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void SetTrackID (G4int track)
 
void SetChamberNb (G4int chamb)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
G4int GetTrackID () const
 
G4int GetChamberNb () const
 
G4double GetEdep () const
 
G4ThreeVector GetPos () const
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual const std::map< G4String, G4AttDef > * GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Private Attributes

G4ThreeVector pos
 
G4double edep
 
G4int trackID
 
G4int chamberNb
 

Detailed Description

Definition at line 49 of file ExN02TrackerHit.hh.

Constructor & Destructor Documentation

◆ ExN02TrackerHit() [1/2]

ExN02TrackerHit::ExN02TrackerHit ( )

Definition at line 46 of file ExN02TrackerHit.cc.

46 {}
Here is the caller graph for this function:

◆ ~ExN02TrackerHit()

ExN02TrackerHit::~ExN02TrackerHit ( )

Definition at line 50 of file ExN02TrackerHit.cc.

50 {}

◆ ExN02TrackerHit() [2/2]

ExN02TrackerHit::ExN02TrackerHit ( const ExN02TrackerHit right)

Definition at line 54 of file ExN02TrackerHit.cc.

55  : G4VHit()
56 {
57  trackID = right.trackID;
58  chamberNb = right.chamberNb;
59  edep = right.edep;
60  pos = right.pos;
61 }
G4ThreeVector pos
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

◆ Draw()

void ExN02TrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 83 of file ExN02TrackerHit.cc.

84 {
86  if(pVVisManager)
87  {
88  G4Circle circle(pos);
89  circle.SetScreenSize(2.);
90  circle.SetFillStyle(G4Circle::filled);
91  G4Colour colour(1.,0.,0.);
92  G4VisAttributes attribs(colour);
93  circle.SetVisAttributes(attribs);
94  pVVisManager->Draw(circle);
95  }
96 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
G4ThreeVector pos
static G4VVisManager * GetConcreteInstance()
Here is the call graph for this function:

◆ GetChamberNb()

G4int ExN02TrackerHit::GetChamberNb ( ) const
inline

Definition at line 93 of file ExN02TrackerHit.hh.

93 {return chamberNb; }
Here is the caller graph for this function:

◆ GetEdep()

G4double ExN02TrackerHit::GetEdep ( ) const
inline

Definition at line 94 of file ExN02TrackerHit.hh.

94 {return edep;}
Here is the caller graph for this function:

◆ GetPos()

G4ThreeVector ExN02TrackerHit::GetPos ( ) const
inline

Definition at line 95 of file ExN02TrackerHit.hh.

95 {return pos;}
G4ThreeVector pos
Here is the caller graph for this function:

◆ GetTrackID()

G4int ExN02TrackerHit::GetTrackID ( ) const
inline

Definition at line 92 of file ExN02TrackerHit.hh.

92 {return trackID; }
Here is the caller graph for this function:

◆ operator delete()

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

Definition at line 112 of file ExN02TrackerHit.hh.

113 {
114  ExN02TrackerHitAllocator.FreeSingle((ExN02TrackerHit*) aHit);
115 }
G4Allocator< ExN02TrackerHit > ExN02TrackerHitAllocator
Here is the call graph for this function:

◆ operator new()

void * ExN02TrackerHit::operator new ( size_t  )
inline

Definition at line 105 of file ExN02TrackerHit.hh.

106 {
107  void* aHit;
108  aHit = (void*) ExN02TrackerHitAllocator.MallocSingle();
109  return aHit;
110 }
G4Allocator< ExN02TrackerHit > ExN02TrackerHitAllocator
Here is the call graph for this function:

◆ operator=()

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

Definition at line 65 of file ExN02TrackerHit.cc.

66 {
67  trackID = right.trackID;
68  chamberNb = right.chamberNb;
69  edep = right.edep;
70  pos = right.pos;
71  return *this;
72 }
G4ThreeVector pos

◆ operator==()

G4int ExN02TrackerHit::operator== ( const ExN02TrackerHit right) const

Definition at line 76 of file ExN02TrackerHit.cc.

77 {
78  return (this==&right) ? 1 : 0;
79 }

◆ Print()

void ExN02TrackerHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 100 of file ExN02TrackerHit.cc.

101 {
102  G4cout << " trackID: " << trackID << " chamberNb: " << chamberNb
103  << " energy deposit: " << G4BestUnit(edep,"Energy")
104  << " position: " << G4BestUnit(pos,"Length") << G4endl;
105 }
G4ThreeVector pos
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

◆ SetChamberNb()

void ExN02TrackerHit::SetChamberNb ( G4int  chamb)
inline

Definition at line 88 of file ExN02TrackerHit.hh.

88 {chamberNb = chamb; }
Here is the caller graph for this function:

◆ SetEdep()

void ExN02TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 89 of file ExN02TrackerHit.hh.

89 {edep=de;}
Here is the caller graph for this function:

◆ SetPos()

void ExN02TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 90 of file ExN02TrackerHit.hh.

90 {pos=xyz;}
G4ThreeVector pos
Here is the caller graph for this function:

◆ SetTrackID()

void ExN02TrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 87 of file ExN02TrackerHit.hh.

Here is the caller graph for this function:

Member Data Documentation

◆ chamberNb

G4int ExN02TrackerHit::chamberNb
private

Definition at line 80 of file ExN02TrackerHit.hh.

◆ edep

G4double ExN02TrackerHit::edep
private

Definition at line 72 of file ExN02TrackerHit.hh.

◆ pos

G4ThreeVector ExN02TrackerHit::pos
private

Definition at line 68 of file ExN02TrackerHit.hh.

◆ trackID

G4int ExN02TrackerHit::trackID
private

Definition at line 76 of file ExN02TrackerHit.hh.


The documentation for this class was generated from the following files: