Geant4  10.02.p03
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
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
void * operator 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
 

Private Attributes

G4double fEdep
 
G4ThreeVector fPos
 
G4int fCrystalNumber
 
G4ThreeVector fStart
 
G4RotationMatrix fRot
 
const G4LogicalVolumefLogV
 

Detailed Description

Definition at line 42 of file ExGflashHit.hh.

Constructor & Destructor Documentation

◆ ExGflashHit() [1/3]

ExGflashHit::ExGflashHit ( )

Definition at line 46 of file ExGflashHit.cc.

47 : G4VHit(), fLogV(0)
48 {}
G4VHit()
Definition: G4VHit.cc:34
const G4LogicalVolume * fLogV
Definition: ExGflashHit.hh:69

◆ ExGflashHit() [2/3]

ExGflashHit::ExGflashHit ( G4LogicalVolume logVol)

Definition at line 52 of file ExGflashHit.cc.

53 : G4VHit(), fLogV(logVol)
54 {}
G4VHit()
Definition: G4VHit.cc:34
const G4LogicalVolume * fLogV
Definition: ExGflashHit.hh:69

◆ ~ExGflashHit()

ExGflashHit::~ExGflashHit ( )

Definition at line 58 of file ExGflashHit.cc.

59 {}

◆ ExGflashHit() [3/3]

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;
73 }
G4VHit()
Definition: G4VHit.cc:34
G4ThreeVector fPos
Definition: ExGflashHit.hh:65
const G4LogicalVolume * fLogV
Definition: ExGflashHit.hh:69
G4int fCrystalNumber
Definition: ExGflashHit.hh:66
G4double fEdep
Definition: ExGflashHit.hh:64
G4ThreeVector fStart
Definition: ExGflashHit.hh:67
G4RotationMatrix fRot
Definition: ExGflashHit.hh:68

Member Function Documentation

◆ AddEdep()

void ExGflashHit::AddEdep ( G4double  de)
inline

Definition at line 74 of file ExGflashHit.hh.

75  { fEdep += de; };
G4double fEdep
Definition: ExGflashHit.hh:64

◆ Draw()

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 &)
void SetForceWireframe(G4bool)
static G4VVisManager * GetConcreteInstance()
G4ThreeVector fPos
Definition: ExGflashHit.hh:65
void SetForceSolid(G4bool)
const G4LogicalVolume * fLogV
Definition: ExGflashHit.hh:69
const G4VisAttributes * GetVisAttributes() const
G4RotationMatrix fRot
Definition: ExGflashHit.hh:68
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCrystalNum()

G4int ExGflashHit::GetCrystalNum ( )
inline

Definition at line 80 of file ExGflashHit.hh.

81  { return fCrystalNumber; };
G4int fCrystalNumber
Definition: ExGflashHit.hh:66

◆ GetEdep()

G4double ExGflashHit::GetEdep ( )
inline

Definition at line 76 of file ExGflashHit.hh.

77  { return fEdep; };
G4double fEdep
Definition: ExGflashHit.hh:64

◆ GetLogV()

const G4LogicalVolume* ExGflashHit::GetLogV ( )
inline

Definition at line 95 of file ExGflashHit.hh.

96  { return fLogV; };
const G4LogicalVolume * fLogV
Definition: ExGflashHit.hh:69

◆ GetPos()

G4ThreeVector ExGflashHit::GetPos ( )
inline

Definition at line 84 of file ExGflashHit.hh.

85  { return fPos; };
G4ThreeVector fPos
Definition: ExGflashHit.hh:65

◆ GetRot()

G4RotationMatrix ExGflashHit::GetRot ( )
inline

Definition at line 93 of file ExGflashHit.hh.

94  { return fRot; };
G4RotationMatrix fRot
Definition: ExGflashHit.hh:68

◆ GetStart()

G4ThreeVector ExGflashHit::GetStart ( )
inline

Definition at line 88 of file ExGflashHit.hh.

89  { return fStart; };
G4ThreeVector fStart
Definition: ExGflashHit.hh:67

◆ operator delete() [1/2]

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

◆ operator delete() [2/2]

void ExGflashHit::operator delete ( void *  ,
void *   
)
inline

Definition at line 57 of file ExGflashHit.hh.

57 {}
Here is the call graph for this function:

◆ operator new() [1/2]

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

◆ operator new() [2/2]

void* ExGflashHit::operator new ( size_t  ,
void *  p 
)
inline

Definition at line 55 of file ExGflashHit.hh.

55 {return p;}

◆ operator=()

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;
87  return *this;
88 }
G4ThreeVector fPos
Definition: ExGflashHit.hh:65
const G4LogicalVolume * fLogV
Definition: ExGflashHit.hh:69
G4int fCrystalNumber
Definition: ExGflashHit.hh:66
G4double fEdep
Definition: ExGflashHit.hh:64
G4ThreeVector fStart
Definition: ExGflashHit.hh:67
G4RotationMatrix fRot
Definition: ExGflashHit.hh:68

◆ operator==()

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 }
G4ThreeVector fPos
Definition: ExGflashHit.hh:65
G4double fEdep
Definition: ExGflashHit.hh:64

◆ Print()

void ExGflashHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 121 of file ExGflashHit.cc.

122 {}
Here is the caller graph for this function:

◆ SetCrystalNum()

void ExGflashHit::SetCrystalNum ( G4int  num)
inline

Definition at line 82 of file ExGflashHit.hh.

83  { fCrystalNumber=num; };
G4int fCrystalNumber
Definition: ExGflashHit.hh:66
Here is the caller graph for this function:

◆ SetEdep()

void ExGflashHit::SetEdep ( G4double  de)
inline

Definition at line 72 of file ExGflashHit.hh.

73  { fEdep = de; };
G4double fEdep
Definition: ExGflashHit.hh:64
Here is the caller graph for this function:

◆ SetPos()

void ExGflashHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 78 of file ExGflashHit.hh.

79  { fPos = xyz; };
G4ThreeVector fPos
Definition: ExGflashHit.hh:65
Here is the caller graph for this function:

◆ SetRot()

void ExGflashHit::SetRot ( G4RotationMatrix  rmat)
inline

Definition at line 91 of file ExGflashHit.hh.

92  { fRot = rmat; };
G4RotationMatrix fRot
Definition: ExGflashHit.hh:68

◆ SetStart()

void ExGflashHit::SetStart ( G4ThreeVector  xyz)
inline

Definition at line 86 of file ExGflashHit.hh.

87  { fStart = xyz; };
G4ThreeVector fStart
Definition: ExGflashHit.hh:67

Member Data Documentation

◆ fCrystalNumber

G4int ExGflashHit::fCrystalNumber
private

Definition at line 66 of file ExGflashHit.hh.

◆ fEdep

G4double ExGflashHit::fEdep
private

Definition at line 64 of file ExGflashHit.hh.

◆ fLogV

const G4LogicalVolume* ExGflashHit::fLogV
private

Definition at line 69 of file ExGflashHit.hh.

◆ fPos

G4ThreeVector ExGflashHit::fPos
private

Definition at line 65 of file ExGflashHit.hh.

◆ fRot

G4RotationMatrix ExGflashHit::fRot
private

Definition at line 68 of file ExGflashHit.hh.

◆ fStart

G4ThreeVector ExGflashHit::fStart
private

Definition at line 67 of file ExGflashHit.hh.


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