Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExP01TrackerHit Class Reference

Hit implementation for the persistency example. More...

#include <ExP01TrackerHit.hh>

Inheritance diagram for ExP01TrackerHit:
Collaboration diagram for ExP01TrackerHit:

Public Member Functions

 ExP01TrackerHit ()
 
 ~ExP01TrackerHit ()
 
 ExP01TrackerHit (const ExP01TrackerHit &)
 
const ExP01TrackerHitoperator= (const ExP01TrackerHit &)
 
G4int operator== (const ExP01TrackerHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetTrackID (G4int track)
 
void SetChamberNb (G4int chamb)
 
void SetEdep (G4double de)
 
void SetPos (G4ThreeVector xyz)
 
G4int GetTrackID ()
 
G4int GetChamberNb ()
 
G4double GetEdep ()
 
G4ThreeVector GetPos ()
 
- 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

Hit implementation for the persistency example.

Definition at line 47 of file ExP01TrackerHit.hh.

Constructor & Destructor Documentation

ExP01TrackerHit::ExP01TrackerHit ( )

Definition at line 46 of file ExP01TrackerHit.cc.

47 : G4VHit(), fTrackID(0), fChamberNb(0), fEdep(0), fPos(0,0,0) {}
G4VHit()
Definition: G4VHit.cc:34
ExP01TrackerHit::~ExP01TrackerHit ( )

Definition at line 51 of file ExP01TrackerHit.cc.

51 {}
ExP01TrackerHit::ExP01TrackerHit ( const ExP01TrackerHit right)

Definition at line 55 of file ExP01TrackerHit.cc.

56  : G4VHit()
57 {
58  fTrackID = right.fTrackID;
59  fChamberNb = right.fChamberNb;
60  fEdep = right.fEdep;
61  fPos = right.fPos;
62 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

void ExP01TrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 84 of file ExP01TrackerHit.cc.

85 {
87  if(pVVisManager)
88  {
89  G4Circle circle(fPos);
90  circle.SetScreenSize(2.);
91  circle.SetFillStyle(G4Circle::filled);
92  G4Colour colour(1.,0.,0.);
93  G4VisAttributes attribs(colour);
94  circle.SetVisAttributes(attribs);
95  pVVisManager->Draw(circle);
96  }
97 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
static G4VVisManager * GetConcreteInstance()

Here is the call graph for this function:

G4int ExP01TrackerHit::GetChamberNb ( )
inline

Definition at line 71 of file ExP01TrackerHit.hh.

71 { return fChamberNb; };
G4double ExP01TrackerHit::GetEdep ( )
inline

Definition at line 72 of file ExP01TrackerHit.hh.

72 { return fEdep; };
G4ThreeVector ExP01TrackerHit::GetPos ( )
inline

Definition at line 73 of file ExP01TrackerHit.hh.

73 { return fPos; };
G4int ExP01TrackerHit::GetTrackID ( )
inline

Definition at line 70 of file ExP01TrackerHit.hh.

70 { return fTrackID; };
void ExP01TrackerHit::operator delete ( void aHit)
inline

Definition at line 100 of file ExP01TrackerHit.hh.

101 {
102  ExP01TrackerHitAllocator.FreeSingle((ExP01TrackerHit*) aHit);
103 }
G4Allocator< ExP01TrackerHit > ExP01TrackerHitAllocator
Hit implementation for the persistency example.

Here is the call graph for this function:

void * ExP01TrackerHit::operator new ( size_t  )
inline

Definition at line 91 of file ExP01TrackerHit.hh.

92 {
93  void *aHit;
94  aHit = (void *) ExP01TrackerHitAllocator.MallocSingle();
95  return aHit;
96 }
G4Allocator< ExP01TrackerHit > ExP01TrackerHitAllocator

Here is the call graph for this function:

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

Definition at line 66 of file ExP01TrackerHit.cc.

67 {
68  fTrackID = right.fTrackID;
69  fChamberNb = right.fChamberNb;
70  fEdep = right.fEdep;
71  fPos = right.fPos;
72  return *this;
73 }
G4int ExP01TrackerHit::operator== ( const ExP01TrackerHit right) const

Definition at line 77 of file ExP01TrackerHit.cc.

78 {
79  return (this==&right) ? 1 : 0;
80 }
void ExP01TrackerHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 101 of file ExP01TrackerHit.cc.

102 {
103  G4cout << " trackID: " << fTrackID << " chamberNb: " << fChamberNb
104  << " energy deposit[MeV]: " << fEdep
105  << " position[mm]: " << fPos << G4endl;
106 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void ExP01TrackerHit::SetChamberNb ( G4int  chamb)
inline

Definition at line 66 of file ExP01TrackerHit.hh.

66 { fChamberNb = chamb; };

Here is the caller graph for this function:

void ExP01TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 67 of file ExP01TrackerHit.hh.

67 { fEdep = de; };

Here is the caller graph for this function:

void ExP01TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 68 of file ExP01TrackerHit.hh.

68 { fPos = xyz; };

Here is the caller graph for this function:

void ExP01TrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 65 of file ExP01TrackerHit.hh.

65 { fTrackID = track; };

Here is the caller graph for this function:


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