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

#include <ExExChSensitiveDetectorHit.hh>

Inheritance diagram for ExExChSensitiveDetectorHit:
Collaboration diagram for ExExChSensitiveDetectorHit:

Public Member Functions

 ExExChSensitiveDetectorHit ()
 
 ExExChSensitiveDetectorHit (G4int z)
 
virtual ~ExExChSensitiveDetectorHit ()
 
 ExExChSensitiveDetectorHit (const ExExChSensitiveDetectorHit &right)
 
const ExExChSensitiveDetectorHitoperator= (const ExExChSensitiveDetectorHit &right)
 
int operator== (const ExExChSensitiveDetectorHit &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 SetLayerID (G4int z)
 
G4int GetLayerID () const
 
void SetWorldPos (G4ThreeVector xyz)
 
G4ThreeVector GetWorldPos () const
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 

Detailed Description

Definition at line 45 of file ExExChSensitiveDetectorHit.hh.

Constructor & Destructor Documentation

ExExChSensitiveDetectorHit::ExExChSensitiveDetectorHit ( )

Definition at line 54 of file ExExChSensitiveDetectorHit.cc.

54  {
55  fLayerID = -1;
56 }
ExExChSensitiveDetectorHit::ExExChSensitiveDetectorHit ( G4int  z)

Definition at line 60 of file ExExChSensitiveDetectorHit.cc.

60  {
61  fLayerID = z;
62 }
tuple z
Definition: test.py:28
ExExChSensitiveDetectorHit::~ExExChSensitiveDetectorHit ( )
virtual

Definition at line 66 of file ExExChSensitiveDetectorHit.cc.

66  {
67 }
ExExChSensitiveDetectorHit::ExExChSensitiveDetectorHit ( const ExExChSensitiveDetectorHit right)

Definition at line 71 of file ExExChSensitiveDetectorHit.cc.

72  : G4VHit(){
73  fLayerID = right.fLayerID;
74  fWorldPos = right.fWorldPos;
75 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

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

Reimplemented from G4VHit.

Definition at line 131 of file ExExChSensitiveDetectorHit.cc.

131  {
132  std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
133 
134  values->push_back(G4AttValue("ID",
136  ""));
137 
138  values->push_back(G4AttValue("Pos",G4BestUnit(fWorldPos,"Length"),""));
139 
140  return values;
141 }
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:372
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1

Here is the call graph for this function:

void ExExChSensitiveDetectorHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 96 of file ExExChSensitiveDetectorHit.cc.

96  {
98  if(pVVisManager)
99  {
100  G4Circle circle(fWorldPos);
101  circle.SetScreenSize(2);
102  circle.SetFillStyle(G4Circle::filled);
103  G4Colour colour(1.,1.,0.);
104  G4VisAttributes attribs(colour);
105  circle.SetVisAttributes(attribs);
106  pVVisManager->Draw(circle);
107  }
108 }
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 > * ExExChSensitiveDetectorHit::GetAttDefs ( ) const
virtual

Reimplemented from G4VHit.

Definition at line 113 of file ExExChSensitiveDetectorHit.cc.

113  {
114  G4bool isNew;
115  std::map<G4String,G4AttDef>* store =
116  G4AttDefStore::GetInstance("ExExChSensitiveDetectorHit",isNew);
117  if (isNew) {
118  G4String ID("ID");
119  (*store)[ID] = G4AttDef(ID,"ID","Physics","","G4int");
120 
121  G4String Pos("Pos");
122  (*store)[Pos] =
123  G4AttDef(Pos, "Position","Physics","G4BestUnit","G4ThreeVector");
124  }
125  return store;
126 }
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:

G4int ExExChSensitiveDetectorHit::GetLayerID ( ) const
inline

Definition at line 71 of file ExExChSensitiveDetectorHit.hh.

71 { return fLayerID; }

Here is the caller graph for this function:

G4ThreeVector ExExChSensitiveDetectorHit::GetWorldPos ( ) const
inline

Definition at line 73 of file ExExChSensitiveDetectorHit.hh.

73 { return fWorldPos; }

Here is the caller graph for this function:

void ExExChSensitiveDetectorHit::operator delete ( void aHit)
inline

Definition at line 101 of file ExExChSensitiveDetectorHit.hh.

102 {
103 #ifdef G4MULTITHREADED
106 #else
109 #endif
110 }
G4Allocator< ExExChSensitiveDetectorHit > ExExChSensitiveDetectorHitAllocator

Here is the call graph for this function:

void * ExExChSensitiveDetectorHit::operator new ( size_t  )
inline

Definition at line 87 of file ExExChSensitiveDetectorHit.hh.

88 {
89 #ifdef G4MULTITHREADED
93  return (void *) ExExChSensitiveDetectorHitAllocator->MallocSingle();
94 #else
95  void* aHit;
96  aHit = (void*)ExExChSensitiveDetectorHitAllocator.MallocSingle();
97  return aHit;
98 #endif
99 }
G4Allocator< ExExChSensitiveDetectorHit > ExExChSensitiveDetectorHitAllocator

Here is the call graph for this function:

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

Definition at line 80 of file ExExChSensitiveDetectorHit.cc.

81  {
82  fLayerID = right.fLayerID;
83  fWorldPos = right.fWorldPos;
84  return *this;
85 }
int ExExChSensitiveDetectorHit::operator== ( const ExExChSensitiveDetectorHit right) const

Definition at line 90 of file ExExChSensitiveDetectorHit.cc.

90  {
91  return 0;
92 }
void ExExChSensitiveDetectorHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 145 of file ExExChSensitiveDetectorHit.cc.

145  {
146  G4cout << fLayerID <<
147  "," << fWorldPos.x() <<
148  "," << fWorldPos.z() <<
149  "," << fWorldPos.y() << G4endl;
150 }
double x() const
double z() const
G4GLOB_DLL std::ostream G4cout
double y() const
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void ExExChSensitiveDetectorHit::SetLayerID ( G4int  z)
inline

Definition at line 70 of file ExExChSensitiveDetectorHit.hh.

70 { fLayerID = z; }
tuple z
Definition: test.py:28

Here is the caller graph for this function:

void ExExChSensitiveDetectorHit::SetWorldPos ( G4ThreeVector  xyz)
inline

Definition at line 72 of file ExExChSensitiveDetectorHit.hh.

72 { fWorldPos = xyz; }

Here is the caller graph for this function:


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