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

#include <eRositaTrackerHit.hh>

Inheritance diagram for eRositaTrackerHit:
Collaboration diagram for eRositaTrackerHit:

Public Member Functions

 eRositaTrackerHit ()
 
 ~eRositaTrackerHit ()
 
 eRositaTrackerHit (const eRositaTrackerHit &)
 
const eRositaTrackerHitoperator= (const eRositaTrackerHit &)
 
G4int operator== (const eRositaTrackerHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void PrintToFile ()
 
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

Definition at line 44 of file eRositaTrackerHit.hh.

Constructor & Destructor Documentation

eRositaTrackerHit::eRositaTrackerHit ( )

Definition at line 42 of file eRositaTrackerHit.cc.

42 {}
eRositaTrackerHit::~eRositaTrackerHit ( )

Definition at line 45 of file eRositaTrackerHit.cc.

45 {}
eRositaTrackerHit::eRositaTrackerHit ( const eRositaTrackerHit right)

Definition at line 48 of file eRositaTrackerHit.cc.

49  : G4VHit()
50 {
51  trackID = right.trackID;
52  chamberNb = right.chamberNb;
53  edep = right.edep;
54  pos = right.pos;
55 }
G4VHit()
Definition: G4VHit.cc:34
static const G4double pos

Member Function Documentation

void eRositaTrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 74 of file eRositaTrackerHit.cc.

75 {
77  if(pVVisManager)
78  {
79  G4Circle circle(pos);
80  circle.SetScreenSize(2.);
81  circle.SetFillStyle(G4Circle::filled);
82  G4Colour colour(1.,0.,0.);
83  G4VisAttributes attribs(colour);
84  circle.SetVisAttributes(attribs);
85  pVVisManager->Draw(circle);
86  }
87 }
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 eRositaTrackerHit::GetChamberNb ( )
inline

Definition at line 69 of file eRositaTrackerHit.hh.

69 { return chamberNb; };
G4double eRositaTrackerHit::GetEdep ( )
inline

Definition at line 70 of file eRositaTrackerHit.hh.

70 { return edep; };
G4ThreeVector eRositaTrackerHit::GetPos ( )
inline

Definition at line 71 of file eRositaTrackerHit.hh.

71 { return pos; };
static const G4double pos
G4int eRositaTrackerHit::GetTrackID ( )
inline

Definition at line 68 of file eRositaTrackerHit.hh.

68 { return trackID; };
void eRositaTrackerHit::operator delete ( void aHit)
inline

Definition at line 95 of file eRositaTrackerHit.hh.

96 {
98 }
G4Allocator< eRositaTrackerHit > eRositaTrackerHitAllocator
void * eRositaTrackerHit::operator new ( size_t  )
inline

Definition at line 87 of file eRositaTrackerHit.hh.

88 {
89  void *aHit;
90  aHit = (void *) eRositaTrackerHitAllocator.MallocSingle();
91  return aHit;
92 }
G4Allocator< eRositaTrackerHit > eRositaTrackerHitAllocator
const eRositaTrackerHit & eRositaTrackerHit::operator= ( const eRositaTrackerHit right)

Definition at line 58 of file eRositaTrackerHit.cc.

59 {
60  trackID = right.trackID;
61  chamberNb = right.chamberNb;
62  edep = right.edep;
63  pos = right.pos;
64  return *this;
65 }
static const G4double pos
G4int eRositaTrackerHit::operator== ( const eRositaTrackerHit right) const

Definition at line 68 of file eRositaTrackerHit.cc.

69 {
70  return (this==&right) ? 1 : 0;
71 }
void eRositaTrackerHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 90 of file eRositaTrackerHit.cc.

91 {
92  G4cout << " trackID: " << trackID
93  << " energy deposit: " << G4BestUnit(edep,"Energy")
94  << " position: " << G4BestUnit(pos,"Length") << G4endl;
95 }
#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 eRositaTrackerHit::PrintToFile ( )

Definition at line 98 of file eRositaTrackerHit.cc.

99 {
100  //out << trackID
101  // << " " << edep
102  // << " " << pos.x()
103  // << " " << pos.y()
104  // << " " << pos.z()
105  // << std::endl;
107 
108 }
static AnalysisManager * Instance()
void Score(G4double eDep)

Here is the call graph for this function:

void eRositaTrackerHit::SetChamberNb ( G4int  chamb)
inline

Definition at line 64 of file eRositaTrackerHit.hh.

64 { chamberNb = chamb; };
void eRositaTrackerHit::SetEdep ( G4double  de)
inline

Definition at line 65 of file eRositaTrackerHit.hh.

65 { edep = de; };

Here is the caller graph for this function:

void eRositaTrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 66 of file eRositaTrackerHit.hh.

66 { pos = xyz; };
static const G4double pos

Here is the caller graph for this function:

void eRositaTrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 63 of file eRositaTrackerHit.hh.

63 { trackID = track; };

Here is the caller graph for this function:


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