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

#include <DMXPmtHit.hh>

Inheritance diagram for DMXPmtHit:
Collaboration diagram for DMXPmtHit:

Public Member Functions

 DMXPmtHit ()
 
 ~DMXPmtHit ()
 
 DMXPmtHit (const DMXPmtHit &)
 
const DMXPmtHitoperator= (const DMXPmtHit &)
 
int operator== (const DMXPmtHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void SetPos (G4ThreeVector xyz)
 
G4ThreeVector GetPos () const
 
void SetTime (G4double t)
 
G4double GetTime () const
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Detailed Description

Definition at line 51 of file DMXPmtHit.hh.

Constructor & Destructor Documentation

DMXPmtHit::DMXPmtHit ( )

Definition at line 56 of file DMXPmtHit.cc.

56  {
57 
58  pos = G4ThreeVector(0., 0., 0.);
59  time=0.;
60 
61 }
CLHEP::Hep3Vector G4ThreeVector
static const G4double pos
DMXPmtHit::~DMXPmtHit ( )

Definition at line 66 of file DMXPmtHit.cc.

66 {;}
DMXPmtHit::DMXPmtHit ( const DMXPmtHit right)

Definition at line 70 of file DMXPmtHit.cc.

70  : G4VHit(right) {
71 
72  pos = right.pos;
73  time = right.time;
74 
75 }
G4VHit()
Definition: G4VHit.cc:34
static const G4double pos

Member Function Documentation

void DMXPmtHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 98 of file DMXPmtHit.cc.

98  {
99 
101 
102  if(pVVisManager) {
103  G4Circle circle(pos);
104  circle.SetScreenSize(0.002);
105  circle.SetFillStyle(G4Circle::filled);
106  G4Colour colour(1.,1.,0.);
107  G4VisAttributes attribs(colour);
108  circle.SetVisAttributes(attribs);
109  pVVisManager->Draw(circle);
110  }
111 
112 
113 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
static G4VVisManager * GetConcreteInstance()
static const G4double pos

Here is the call graph for this function:

G4ThreeVector DMXPmtHit::GetPos ( ) const
inline

Definition at line 75 of file DMXPmtHit.hh.

75 {return pos;};
static const G4double pos
G4double DMXPmtHit::GetTime ( ) const
inline

Definition at line 78 of file DMXPmtHit.hh.

78 {return time;};
void DMXPmtHit::operator delete ( void aHit)
inline

Definition at line 98 of file DMXPmtHit.hh.

98  {
99  DMXPmtHitsAllocator->FreeSingle((DMXPmtHit*) aHit);
100 }
G4ThreadLocal G4Allocator< DMXPmtHit > * DMXPmtHitsAllocator
Definition: DMXPmtHit.cc:52
void * DMXPmtHit::operator new ( size_t  )
inline

Definition at line 91 of file DMXPmtHit.hh.

91  {
94  return (void*) DMXPmtHitsAllocator->MallocSingle();
95 }
G4ThreadLocal G4Allocator< DMXPmtHit > * DMXPmtHitsAllocator
Definition: DMXPmtHit.cc:52
const DMXPmtHit & DMXPmtHit::operator= ( const DMXPmtHit right)

Definition at line 79 of file DMXPmtHit.cc.

79  {
80 
81  pos = right.pos;
82  time = right.time;
83 
84  return *this;
85 
86 }
static const G4double pos
int DMXPmtHit::operator== ( const DMXPmtHit right) const

Definition at line 90 of file DMXPmtHit.cc.

90  {
91 
92  return (this==&right) ? 1 : 0;
93 
94 }
void DMXPmtHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 117 of file DMXPmtHit.cc.

117  {
118 
119  // G4cout << " PMT hit: " << G4BestUnit(pos,"Length") << G4endl;
120 
121  G4cout << " PMT hit: " << std::setw(5) << G4BestUnit(time,"Time")
122  << ", at " << G4BestUnit(pos,"Length") << G4endl;
123 
124 
125 }
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
static const G4double pos
void DMXPmtHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 74 of file DMXPmtHit.hh.

74 {pos=xyz;};
static const G4double pos

Here is the caller graph for this function:

void DMXPmtHit::SetTime ( G4double  t)
inline

Definition at line 77 of file DMXPmtHit.hh.

77 {time=t;};

Here is the caller graph for this function:


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