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

#include <ExGflashHit.hh>

Inheritance diagram for ExGflashHit:
Collaboration diagram for ExGflashHit:

Public Member Functions

 ExGflashHit ()
 
 ExGflashHit (G4LogicalVolume *logVol)
 
 ~ExGflashHit ()
 
 ExGflashHit (const ExGflashHit &right)
 
const ExGflashHitoperator= (const ExGflashHit &right)
 
int operator== (const ExGflashHit &right) const
 
voidoperator new (size_t)
 
void operator delete (void *aHit)
 
voidoperator new (size_t, void *p)
 
void operator delete (void *, void *)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetEdep (G4double de)
 
void AddEdep (G4double de)
 
G4double GetEdep ()
 
void SetPos (G4ThreeVector xyz)
 
G4int GetCrystalNum ()
 
void SetCrystalNum (G4int num)
 
G4ThreeVector GetPos ()
 
void SetStart (G4ThreeVector xyz)
 
G4ThreeVector GetStart ()
 
void SetRot (G4RotationMatrix rmat)
 
G4RotationMatrix GetRot ()
 
const G4LogicalVolumeGetLogV ()
 
- 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 42 of file ExGflashHit.hh.

Constructor & Destructor Documentation

ExGflashHit::ExGflashHit ( )

Definition at line 46 of file ExGflashHit.cc.

47 : G4VHit(), fLogV(0)
48 {}
G4VHit()
Definition: G4VHit.cc:34
ExGflashHit::ExGflashHit ( G4LogicalVolume logVol)

Definition at line 52 of file ExGflashHit.cc.

53 : G4VHit(), fLogV(logVol)
54 {}
G4VHit()
Definition: G4VHit.cc:34
ExGflashHit::~ExGflashHit ( )

Definition at line 58 of file ExGflashHit.cc.

59 {}
ExGflashHit::ExGflashHit ( const ExGflashHit right)

Definition at line 63 of file ExGflashHit.cc.

64 : G4VHit(right)
65 //@@@ ExGflashHit:Is it right with the init?
66 {
67  fEdep = right.fEdep;
68  fPos = right.fPos;
69  fStart =right.fStart;
70  fRot = right.fRot;
71  fLogV = right.fLogV;
72  fCrystalNumber = right.fCrystalNumber;
73 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

void ExGflashHit::AddEdep ( G4double  de)
inline

Definition at line 74 of file ExGflashHit.hh.

75  { fEdep += de; };
void ExGflashHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 102 of file ExGflashHit.cc.

103 {
105  if(pVVisManager)
106  {
107  G4Transform3D trans(fRot,fPos);
108  G4VisAttributes attribs;
109  const G4VisAttributes* pVA = fLogV->GetVisAttributes();
110  if(pVA) attribs = *pVA;
111  G4Colour colour(1.,0.,0.);
112  attribs.SetColour(colour);
113  attribs.SetForceWireframe(false);
114  attribs.SetForceSolid(true);
115  pVVisManager->Draw(*fLogV,attribs,trans);
116  }
117 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetColour(const G4Colour &)
static G4VVisManager * GetConcreteInstance()
void SetForceSolid(G4bool=true)
const G4VisAttributes * GetVisAttributes() const
void SetForceWireframe(G4bool=true)

Here is the call graph for this function:

G4int ExGflashHit::GetCrystalNum ( )
inline

Definition at line 80 of file ExGflashHit.hh.

81  { return fCrystalNumber; };
G4double ExGflashHit::GetEdep ( )
inline

Definition at line 76 of file ExGflashHit.hh.

77  { return fEdep; };
const G4LogicalVolume* ExGflashHit::GetLogV ( )
inline

Definition at line 95 of file ExGflashHit.hh.

96  { return fLogV; };
G4ThreeVector ExGflashHit::GetPos ( )
inline

Definition at line 84 of file ExGflashHit.hh.

85  { return fPos; };
G4RotationMatrix ExGflashHit::GetRot ( )
inline

Definition at line 93 of file ExGflashHit.hh.

94  { return fRot; };
G4ThreeVector ExGflashHit::GetStart ( )
inline

Definition at line 88 of file ExGflashHit.hh.

89  { return fStart; };
void ExGflashHit::operator delete ( void aHit)
inline

Definition at line 109 of file ExGflashHit.hh.

110 {
111  ExGflashHitAllocator->FreeSingle((ExGflashHit*) aHit);
112 }
G4ThreadLocal G4Allocator< ExGflashHit > * ExGflashHitAllocator
Definition: ExGflashHit.cc:42
void ExGflashHit::operator delete ( void ,
void  
)
inline

Definition at line 57 of file ExGflashHit.hh.

57 {}
void * ExGflashHit::operator new ( size_t  )
inline

Definition at line 103 of file ExGflashHit.hh.

104 {
106  return (void *) ExGflashHitAllocator->MallocSingle();
107 }
G4ThreadLocal G4Allocator< ExGflashHit > * ExGflashHitAllocator
Definition: ExGflashHit.cc:42
void* ExGflashHit::operator new ( size_t  ,
void p 
)
inline

Definition at line 55 of file ExGflashHit.hh.

55 {return p;}
const char * p
Definition: xmltok.h:285
const ExGflashHit & ExGflashHit::operator= ( const ExGflashHit right)

Definition at line 77 of file ExGflashHit.cc.

78 {
79  G4VHit::operator=(right);
80  fEdep = right.fEdep;
81  fStart =right.fStart;
82  fPos = right.fPos;
83  fRot = right.fRot;
84  fLogV = right.fLogV;
85  fCrystalNumber = right.fCrystalNumber;
86  fCrystalNumber = right.fCrystalNumber;
87  return *this;
88 }
int ExGflashHit::operator== ( const ExGflashHit right) const

Definition at line 92 of file ExGflashHit.cc.

93 {
94 // @@@@ return 0;
95  if ((fPos==right.fPos) && (fEdep == right.fEdep)) return true;
96  else return false;
97 
98 }
void ExGflashHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 121 of file ExGflashHit.cc.

122 {}
void ExGflashHit::SetCrystalNum ( G4int  num)
inline

Definition at line 82 of file ExGflashHit.hh.

83  { fCrystalNumber=num; };

Here is the caller graph for this function:

void ExGflashHit::SetEdep ( G4double  de)
inline

Definition at line 72 of file ExGflashHit.hh.

73  { fEdep = de; };

Here is the caller graph for this function:

void ExGflashHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 78 of file ExGflashHit.hh.

79  { fPos = xyz; };

Here is the caller graph for this function:

void ExGflashHit::SetRot ( G4RotationMatrix  rmat)
inline

Definition at line 91 of file ExGflashHit.hh.

92  { fRot = rmat; };
void ExGflashHit::SetStart ( G4ThreeVector  xyz)
inline

Definition at line 86 of file ExGflashHit.hh.

87  { fStart = xyz; };

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