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

Detailed Description

Definition at line 43 of file RE05TrackerHit.hh.

Constructor & Destructor Documentation

RE05TrackerHit::RE05TrackerHit ( )

Definition at line 47 of file RE05TrackerHit.cc.

48 : G4VHit(),
49  fEdep(0.),fPos()
50 {}
G4VHit()
Definition: G4VHit.cc:34
RE05TrackerHit::~RE05TrackerHit ( )
virtual

Definition at line 54 of file RE05TrackerHit.cc.

55 {}
RE05TrackerHit::RE05TrackerHit ( const RE05TrackerHit right)

Definition at line 59 of file RE05TrackerHit.cc.

60  : G4VHit()
61 {
62  fEdep = right.fEdep;
63  fPos = right.fPos;
64 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

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

Reimplemented from G4VHit.

Definition at line 113 of file RE05TrackerHit.cc.

114 {
115  // Create expendable G4AttsValues for picking...
116  std::vector<G4AttValue>* attValues = new std::vector<G4AttValue>;
117  attValues->push_back
118  (G4AttValue("HitType","RE05TrackerHit",""));
119  //G4cout << "Checking...\n" << G4AttCheck(attValues, GetAttDefs());
120  return attValues;
121 }
void RE05TrackerHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 84 of file RE05TrackerHit.cc.

85 {
87  if(pVVisManager)
88  {
89  G4Circle circle(fPos);
90  circle.SetScreenSize(0.04);
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:

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

Reimplemented from G4VHit.

Definition at line 101 of file RE05TrackerHit.cc.

102 {
103  // G4AttDefs have to have long life. Use static member...
104  if (fAttDefs.empty()) {
105  fAttDefs["HitType"] =
106  G4AttDef("HitType","Type of hit","Physics","","G4String");
107  }
108  return &fAttDefs;
109 }
G4double RE05TrackerHit::GetEdep ( )
inline

Definition at line 69 of file RE05TrackerHit.hh.

70  { return fEdep; }
G4ThreeVector RE05TrackerHit::GetPos ( )
inline

Definition at line 73 of file RE05TrackerHit.hh.

74  { return fPos; }
void RE05TrackerHit::operator delete ( void aHit)
inline

Definition at line 87 of file RE05TrackerHit.hh.

88 {
89  RE05TrackerHitAllocator->FreeSingle((RE05TrackerHit*) aHit);
90 }
G4ThreadLocal G4Allocator< RE05TrackerHit > * RE05TrackerHitAllocator
void * RE05TrackerHit::operator new ( size_t  )
inline

Definition at line 81 of file RE05TrackerHit.hh.

82 {
84  return (void *) RE05TrackerHitAllocator->MallocSingle();
85 }
G4ThreadLocal G4Allocator< RE05TrackerHit > * RE05TrackerHitAllocator
const RE05TrackerHit & RE05TrackerHit::operator= ( const RE05TrackerHit right)

Definition at line 68 of file RE05TrackerHit.cc.

69 {
70  fEdep = right.fEdep;
71  fPos = right.fPos;
72  return *this;
73 }
G4int RE05TrackerHit::operator== ( const RE05TrackerHit right) const

Definition at line 77 of file RE05TrackerHit.cc.

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

Reimplemented from G4VHit.

Definition at line 125 of file RE05TrackerHit.cc.

126 {}
void RE05TrackerHit::SetEdep ( G4double  de)
inline

Definition at line 67 of file RE05TrackerHit.hh.

68  { fEdep = de; }

Here is the caller graph for this function:

void RE05TrackerHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 71 of file RE05TrackerHit.hh.

72  { fPos = xyz; }

Here is the caller graph for this function:


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