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

Private Attributes

G4int fLayerID
 
G4ThreeVector fWorldPos
 

Detailed Description

Definition at line 42 of file ExExChSensitiveDetectorHit.hh.

Constructor & Destructor Documentation

◆ ExExChSensitiveDetectorHit() [1/3]

ExExChSensitiveDetectorHit::ExExChSensitiveDetectorHit ( )

Definition at line 51 of file ExExChSensitiveDetectorHit.cc.

51  {
52  fLayerID = -1;
53 }

◆ ExExChSensitiveDetectorHit() [2/3]

ExExChSensitiveDetectorHit::ExExChSensitiveDetectorHit ( G4int  z)

Definition at line 57 of file ExExChSensitiveDetectorHit.cc.

◆ ~ExExChSensitiveDetectorHit()

ExExChSensitiveDetectorHit::~ExExChSensitiveDetectorHit ( )
virtual

Definition at line 63 of file ExExChSensitiveDetectorHit.cc.

63  {
64 }

◆ ExExChSensitiveDetectorHit() [3/3]

ExExChSensitiveDetectorHit::ExExChSensitiveDetectorHit ( const ExExChSensitiveDetectorHit right)

Definition at line 68 of file ExExChSensitiveDetectorHit.cc.

Member Function Documentation

◆ CreateAttValues()

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

Reimplemented from G4VHit.

Definition at line 128 of file ExExChSensitiveDetectorHit.cc.

128  {
129  std::vector<G4AttValue>* values = new std::vector<G4AttValue>;
130 
131  values->push_back(G4AttValue("ID",
133  ""));
134 
135  values->push_back(G4AttValue("Pos",G4BestUnit(fWorldPos,"Length"),""));
136 
137  return values;
138 }
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:371
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
Here is the call graph for this function:

◆ Draw()

void ExExChSensitiveDetectorHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 93 of file ExExChSensitiveDetectorHit.cc.

93  {
95  if(pVVisManager)
96  {
97  G4Circle circle(fWorldPos);
98  circle.SetScreenSize(2);
99  circle.SetFillStyle(G4Circle::filled);
100  G4Colour colour(1.,1.,0.);
101  G4VisAttributes attribs(colour);
102  circle.SetVisAttributes(attribs);
103  pVVisManager->Draw(circle);
104  }
105 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
static G4VVisManager * GetConcreteInstance()
Here is the call graph for this function:

◆ GetAttDefs()

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

Reimplemented from G4VHit.

Definition at line 110 of file ExExChSensitiveDetectorHit.cc.

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

◆ GetLayerID()

G4int ExExChSensitiveDetectorHit::GetLayerID ( ) const
inline

Definition at line 68 of file ExExChSensitiveDetectorHit.hh.

Here is the caller graph for this function:

◆ GetWorldPos()

G4ThreeVector ExExChSensitiveDetectorHit::GetWorldPos ( ) const
inline

Definition at line 70 of file ExExChSensitiveDetectorHit.hh.

70 { return fWorldPos; }
Here is the caller graph for this function:

◆ operator delete()

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

Definition at line 98 of file ExExChSensitiveDetectorHit.hh.

99 {
100 #ifdef G4MULTITHREADED
103 #else
106 #endif
107 }
G4Allocator< ExExChSensitiveDetectorHit > ExExChSensitiveDetectorHitAllocator
Here is the call graph for this function:

◆ operator new()

void * ExExChSensitiveDetectorHit::operator new ( size_t  )
inline

Definition at line 84 of file ExExChSensitiveDetectorHit.hh.

85 {
86 #ifdef G4MULTITHREADED
90  return (void *) ExExChSensitiveDetectorHitAllocator->MallocSingle();
91 #else
92  void* aHit;
93  aHit = (void*)ExExChSensitiveDetectorHitAllocator.MallocSingle();
94  return aHit;
95 #endif
96 }
G4Allocator< ExExChSensitiveDetectorHit > ExExChSensitiveDetectorHitAllocator
Here is the call graph for this function:

◆ operator=()

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

Definition at line 77 of file ExExChSensitiveDetectorHit.cc.

78  {
79  fLayerID = right.fLayerID;
80  fWorldPos = right.fWorldPos;
81  return *this;
82 }

◆ operator==()

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

Definition at line 87 of file ExExChSensitiveDetectorHit.cc.

87  {
88  return 0;
89 }

◆ Print()

void ExExChSensitiveDetectorHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 142 of file ExExChSensitiveDetectorHit.cc.

142  {
143  G4cout << fLayerID <<
144  "," << fWorldPos.x() <<
145  "," << fWorldPos.z() <<
146  "," << fWorldPos.y() << G4endl;
147 }
G4GLOB_DLL std::ostream G4cout
double x() const
double y() const
double z() const
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:

◆ SetLayerID()

void ExExChSensitiveDetectorHit::SetLayerID ( G4int  z)
inline

Definition at line 67 of file ExExChSensitiveDetectorHit.hh.

Here is the caller graph for this function:

◆ SetWorldPos()

void ExExChSensitiveDetectorHit::SetWorldPos ( G4ThreeVector  xyz)
inline

Definition at line 69 of file ExExChSensitiveDetectorHit.hh.

69 { fWorldPos = xyz; }
Here is the caller graph for this function:

Member Data Documentation

◆ fLayerID

G4int ExExChSensitiveDetectorHit::fLayerID
private

Definition at line 63 of file ExExChSensitiveDetectorHit.hh.

◆ fWorldPos

G4ThreeVector ExExChSensitiveDetectorHit::fWorldPos
private

Definition at line 64 of file ExExChSensitiveDetectorHit.hh.


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