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

#include <XAluminumElectrodeHit.hh>

Inheritance diagram for XAluminumElectrodeHit:
Collaboration diagram for XAluminumElectrodeHit:

Public Member Functions

 XAluminumElectrodeHit ()
 
virtual ~XAluminumElectrodeHit ()
 
 XAluminumElectrodeHit (const XAluminumElectrodeHit &right)
 
const XAluminumElectrodeHitoperator= (const XAluminumElectrodeHit &right)
 
int operator== (const XAluminumElectrodeHit &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 ()
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 

Public Attributes

G4double fTime
 
G4double fEdep
 
G4ThreeVector fLocalPos
 
G4ThreeVector fWorldPos
 

Detailed Description

Definition at line 45 of file XAluminumElectrodeHit.hh.

Constructor & Destructor Documentation

XAluminumElectrodeHit::XAluminumElectrodeHit ( )

Definition at line 51 of file XAluminumElectrodeHit.cc.

52 {
53  fTime = 0.;
54  fEdep = 0.;
55 }
XAluminumElectrodeHit::~XAluminumElectrodeHit ( )
virtual

Definition at line 59 of file XAluminumElectrodeHit.cc.

60 {;}
XAluminumElectrodeHit::XAluminumElectrodeHit ( const XAluminumElectrodeHit right)

Definition at line 64 of file XAluminumElectrodeHit.cc.

65 : G4VHit() {
66  fTime = right.fTime;
67  fEdep = right.fEdep;
68  fWorldPos = right.fWorldPos;
69  fLocalPos = right.fLocalPos;
70 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

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

Reimplemented from G4VHit.

Definition at line 135 of file XAluminumElectrodeHit.cc.

136 {
137  std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
138 
139  values->push_back(G4AttValue("HitType","XAluminumElectrodeHit",""));
140 
141  values->push_back
142  (G4AttValue("Time",G4BestUnit(fTime,"Time"),""));
143 
144  values->push_back
145  (G4AttValue("EDep",G4BestUnit(fEdep,"Energy"),""));
146 
147  values->push_back
148  (G4AttValue("Pos",G4BestUnit(fWorldPos,"Length"),""));
149 
150  return values;
151 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void XAluminumElectrodeHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 92 of file XAluminumElectrodeHit.cc.

93 {
95  if(pVVisManager)
96  {
97  G4Circle circle(fWorldPos);
98  circle.SetScreenSize(15);
99  circle.SetFillStyle(G4Circle::filled);
100  G4Colour colour(0.65,0.65,0.);
101  G4VisAttributes attribs(colour);
102  attribs.SetStartTime(fTime);
103  attribs.SetEndTime(fTime+1*ms);
104  circle.SetVisAttributes(attribs);
105  pVVisManager->Draw(circle);
106  }
107 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
static G4VVisManager * GetConcreteInstance()
static constexpr double ms
Definition: G4SIunits.hh:170

Here is the call graph for this function:

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

Reimplemented from G4VHit.

Definition at line 111 of file XAluminumElectrodeHit.cc.

112 {
113  G4bool isNew;
114  std::map<G4String,G4AttDef>* store
115  = G4AttDefStore::GetInstance("XAluminumElectrodeHit",isNew);
116  if (isNew) {
117  G4String HitType("HitType");
118  (*store)[HitType] = G4AttDef(HitType,"Hit Type","Physics","","G4String");
119 
120  G4String Time("Time");
121  (*store)[Time] = G4AttDef(Time,"Time","Physics","G4BestUnit","G4double");
122 
123  G4String EDep("EDep");
124  (*store)[EDep] = G4AttDef(Time,"EDep","Physics","G4BestUnit","G4double");
125 
126  G4String Pos("Pos");
127  (*store)[Pos] = G4AttDef(Pos, "Position",
128  "Physics","G4BestUnit","G4ThreeVector");
129  }
130  return store;
131 }
ush Pos
Definition: deflate.h:89
bool G4bool
Definition: G4Types.hh:79
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)

Here is the call graph for this function:

void XAluminumElectrodeHit::operator delete ( void aHit)
inline

Definition at line 80 of file XAluminumElectrodeHit.hh.

81 {
83 }
G4ThreadLocal G4Allocator< XAluminumElectrodeHit > * XAluminumElectrodeHitAllocator
void * XAluminumElectrodeHit::operator new ( size_t  )
inline

Definition at line 72 of file XAluminumElectrodeHit.hh.

73 {
74  if (!XAluminumElectrodeHitAllocator) // Singleton
76 
77  return (void*)XAluminumElectrodeHitAllocator->MallocSingle();
78 }
G4ThreadLocal G4Allocator< XAluminumElectrodeHit > * XAluminumElectrodeHitAllocator
const XAluminumElectrodeHit & XAluminumElectrodeHit::operator= ( const XAluminumElectrodeHit right)

Definition at line 74 of file XAluminumElectrodeHit.cc.

75 {
76  fTime = right.fTime;
77  fEdep = right.fEdep;
78  fWorldPos = right.fWorldPos;
79  fLocalPos = right.fLocalPos;
80  return *this;
81 }
int XAluminumElectrodeHit::operator== ( const XAluminumElectrodeHit right) const

Definition at line 85 of file XAluminumElectrodeHit.cc.

86 {
87  return 0;
88 }
void XAluminumElectrodeHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 155 of file XAluminumElectrodeHit.cc.

156 {
157  G4cout << " time " << fTime/ns << " (nsec) : at " << fLocalPos
158  << " -- fEdep = " << fEdep/eV << " [eV]" << G4endl;
159 }
G4GLOB_DLL std::ostream G4cout
static constexpr double eV
Definition: G4SIunits.hh:215
#define G4endl
Definition: G4ios.hh:61
#define ns
Definition: xmlparse.cc:614

Member Data Documentation

G4double XAluminumElectrodeHit::fEdep

Definition at line 48 of file XAluminumElectrodeHit.hh.

G4ThreeVector XAluminumElectrodeHit::fLocalPos

Definition at line 49 of file XAluminumElectrodeHit.hh.

G4double XAluminumElectrodeHit::fTime

Definition at line 47 of file XAluminumElectrodeHit.hh.

G4ThreeVector XAluminumElectrodeHit::fWorldPos

Definition at line 50 of file XAluminumElectrodeHit.hh.


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