Geant4  10.02.p03
RE05TrackerHit Class Reference

#include <RE05TrackerHit.hh>

Inheritance diagram for RE05TrackerHit:
Collaboration diagram for RE05TrackerHit:

Public Member Functions

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

Private Attributes

G4double edep
 
G4ThreeVector pos
 

Static Private Attributes

static std::map< G4String, G4AttDeffAttDefs
 

Detailed Description

Definition at line 43 of file RE05TrackerHit.hh.

Constructor & Destructor Documentation

◆ RE05TrackerHit() [1/2]

RE05TrackerHit::RE05TrackerHit ( )

Definition at line 44 of file RE05TrackerHit.cc.

45 {;}

◆ ~RE05TrackerHit()

RE05TrackerHit::~RE05TrackerHit ( )
virtual

Definition at line 47 of file RE05TrackerHit.cc.

48 {;}

◆ RE05TrackerHit() [2/2]

RE05TrackerHit::RE05TrackerHit ( const RE05TrackerHit right)

Definition at line 50 of file RE05TrackerHit.cc.

51  : G4VHit()
52 {
53  edep = right.edep;
54  pos = right.pos;
55 }
G4VHit()
Definition: G4VHit.cc:34
G4ThreeVector pos

Member Function Documentation

◆ CreateAttValues()

std::vector< G4AttValue > * RE05TrackerHit::CreateAttValues ( ) const
virtual

Reimplemented from G4VHit.

Definition at line 96 of file RE05TrackerHit.cc.

97 {
98  // Create expendable G4AttsValues for picking...
99  std::vector<G4AttValue>* attValues = new std::vector<G4AttValue>;
100  attValues->push_back
101  (G4AttValue("HitType","RE05TrackerHit",""));
102  //G4cout << "Checking...\n" << G4AttCheck(attValues, GetAttDefs());
103  return attValues;
104 }

◆ Draw()

void RE05TrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 71 of file RE05TrackerHit.cc.

72 {
74  if(pVVisManager)
75  {
76  G4Circle circle(pos);
77  circle.SetScreenSize(0.04);
78  circle.SetFillStyle(G4Circle::filled);
79  G4Colour colour(1.,0.,0.);
80  G4VisAttributes attribs(colour);
81  circle.SetVisAttributes(attribs);
82  pVVisManager->Draw(circle);
83  }
84 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
static G4VVisManager * GetConcreteInstance()
G4ThreeVector pos
Here is the call graph for this function:

◆ GetAttDefs()

const std::map< G4String, G4AttDef > * RE05TrackerHit::GetAttDefs ( ) const
virtual

Reimplemented from G4VHit.

Definition at line 86 of file RE05TrackerHit.cc.

87 {
88  // G4AttDefs have to have long life. Use static member...
89  if (fAttDefs.empty()) {
90  fAttDefs["HitType"] =
91  G4AttDef("HitType","Type of hit","Physics","","G4String");
92  }
93  return &fAttDefs;
94 }
static std::map< G4String, G4AttDef > fAttDefs

◆ GetEdep()

G4double RE05TrackerHit::GetEdep ( )
inline

Definition at line 69 of file RE05TrackerHit.hh.

70  { return edep; }

◆ GetPos()

G4ThreeVector RE05TrackerHit::GetPos ( )
inline

Definition at line 73 of file RE05TrackerHit.hh.

74  { return pos; }
G4ThreeVector pos

◆ operator delete()

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

Definition at line 88 of file RE05TrackerHit.hh.

89 {
90  RE05TrackerHitAllocator->FreeSingle((RE05TrackerHit*) aHit);
91 }
G4ThreadLocal G4Allocator< RE05TrackerHit > * RE05TrackerHitAllocator

◆ operator new()

void * RE05TrackerHit::operator new ( size_t  )
inline

Definition at line 82 of file RE05TrackerHit.hh.

83 {
85  return (void *) RE05TrackerHitAllocator->MallocSingle();
86 }
G4ThreadLocal G4Allocator< RE05TrackerHit > * RE05TrackerHitAllocator

◆ operator=()

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

Definition at line 57 of file RE05TrackerHit.cc.

58 {
59  edep = right.edep;
60  pos = right.pos;
61  return *this;
62 }
G4ThreeVector pos

◆ operator==()

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

Definition at line 64 of file RE05TrackerHit.cc.

65 {
66  return (this==&right) ? 1 : 0;
67 }

◆ Print()

void RE05TrackerHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 106 of file RE05TrackerHit.cc.

107 {;}

◆ SetEdep()

void RE05TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 67 of file RE05TrackerHit.hh.

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

◆ SetPos()

void RE05TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 71 of file RE05TrackerHit.hh.

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

Member Data Documentation

◆ edep

G4double RE05TrackerHit::edep
private

Definition at line 62 of file RE05TrackerHit.hh.

◆ fAttDefs

std::map< G4String, G4AttDef > RE05TrackerHit::fAttDefs
staticprivate

Definition at line 64 of file RE05TrackerHit.hh.

◆ pos

G4ThreeVector RE05TrackerHit::pos
private

Definition at line 63 of file RE05TrackerHit.hh.


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