Geant4  10.02.p03
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
 
void * operator 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
 

Private Attributes

G4int trackID
 
G4int chamberNb
 
G4double edep
 
G4ThreeVector pos
 

Detailed Description

Definition at line 44 of file eRositaTrackerHit.hh.

Constructor & Destructor Documentation

◆ eRositaTrackerHit() [1/2]

eRositaTrackerHit::eRositaTrackerHit ( )

Definition at line 42 of file eRositaTrackerHit.cc.

42 {}

◆ ~eRositaTrackerHit()

eRositaTrackerHit::~eRositaTrackerHit ( )

Definition at line 45 of file eRositaTrackerHit.cc.

45 {}

◆ eRositaTrackerHit() [2/2]

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

Member Function Documentation

◆ Draw()

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()
Here is the call graph for this function:

◆ GetChamberNb()

G4int eRositaTrackerHit::GetChamberNb ( )
inline

Definition at line 69 of file eRositaTrackerHit.hh.

69 { return chamberNb; };

◆ GetEdep()

G4double eRositaTrackerHit::GetEdep ( )
inline

Definition at line 70 of file eRositaTrackerHit.hh.

70 { return edep; };

◆ GetPos()

G4ThreeVector eRositaTrackerHit::GetPos ( )
inline

Definition at line 71 of file eRositaTrackerHit.hh.

71 { return pos; };

◆ GetTrackID()

G4int eRositaTrackerHit::GetTrackID ( )
inline

Definition at line 68 of file eRositaTrackerHit.hh.

68 { return trackID; };

◆ operator delete()

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

Definition at line 95 of file eRositaTrackerHit.hh.

96 {
98 }
G4Allocator< eRositaTrackerHit > eRositaTrackerHitAllocator
Here is the call graph for this function:

◆ operator new()

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
Here is the call graph for this function:

◆ operator=()

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 }

◆ operator==()

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

Definition at line 68 of file eRositaTrackerHit.cc.

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

◆ Print()

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

◆ PrintToFile()

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()
Here is the call graph for this function:

◆ SetChamberNb()

void eRositaTrackerHit::SetChamberNb ( G4int  chamb)
inline

Definition at line 64 of file eRositaTrackerHit.hh.

64 { chamberNb = chamb; };

◆ SetEdep()

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:

◆ SetPos()

void eRositaTrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 66 of file eRositaTrackerHit.hh.

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

◆ SetTrackID()

void eRositaTrackerHit::SetTrackID ( G4int  track)
inline

Definition at line 63 of file eRositaTrackerHit.hh.

Here is the caller graph for this function:

Member Data Documentation

◆ chamberNb

G4int eRositaTrackerHit::chamberNb
private

Definition at line 76 of file eRositaTrackerHit.hh.

◆ edep

G4double eRositaTrackerHit::edep
private

Definition at line 77 of file eRositaTrackerHit.hh.

◆ pos

G4ThreeVector eRositaTrackerHit::pos
private

Definition at line 78 of file eRositaTrackerHit.hh.

◆ trackID

G4int eRositaTrackerHit::trackID
private

Definition at line 71 of file eRositaTrackerHit.hh.


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