Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 
voidoperator 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
 

Detailed Description

Definition at line 49 of file ExN02TrackerHit.hh.

Constructor & Destructor Documentation

ExN02TrackerHit::ExN02TrackerHit ( )

Definition at line 46 of file ExN02TrackerHit.cc.

46 {}
ExN02TrackerHit::~ExN02TrackerHit ( )

Definition at line 50 of file ExN02TrackerHit.cc.

50 {}
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 }
G4VHit()
Definition: G4VHit.cc:34
static const G4double pos

Member Function Documentation

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
static G4VVisManager * GetConcreteInstance()
static const G4double pos

Here is the call graph for this function:

G4int ExN02TrackerHit::GetChamberNb ( ) const
inline

Definition at line 93 of file ExN02TrackerHit.hh.

93 {return chamberNb; }

Here is the caller graph for this function:

G4double ExN02TrackerHit::GetEdep ( ) const
inline

Definition at line 94 of file ExN02TrackerHit.hh.

94 {return edep;}

Here is the caller graph for this function:

G4ThreeVector ExN02TrackerHit::GetPos ( ) const
inline

Definition at line 95 of file ExN02TrackerHit.hh.

95 {return pos;}
static const G4double pos

Here is the caller graph for this function:

G4int ExN02TrackerHit::GetTrackID ( ) const
inline

Definition at line 92 of file ExN02TrackerHit.hh.

92 {return trackID; }

Here is the caller graph for this function:

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:

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:

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 }
static const G4double pos
G4int ExN02TrackerHit::operator== ( const ExN02TrackerHit right) const

Definition at line 76 of file ExN02TrackerHit.cc.

77 {
78  return (this==&right) ? 1 : 0;
79 }
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 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
static const G4double pos
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:

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:

void ExN02TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 90 of file ExN02TrackerHit.hh.

90 {pos=xyz;}
static const G4double pos

Here is the caller graph for this function:

void ExN02TrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 87 of file ExN02TrackerHit.hh.

87 {trackID = track; }

Here is the caller graph for this function:


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