Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members

#include <Doxymodules_parameterisations.h>

Inheritance diagram for ExGflashHit:
G4VHit

Public Member Functions

 ExGflashHit ()
 
 ExGflashHit (G4LogicalVolume *logVol)
 
 ~ExGflashHit () override
 
 ExGflashHit (const ExGflashHit &right)
 
const ExGflashHitoperator= (const ExGflashHit &right)
 
G4bool 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 *)
 
void Draw () override
 
void Print () override
 
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 ()
 

Private Attributes

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

Detailed Description

Definition at line 110 of file Doxymodules_parameterisations.h.

Constructor & Destructor Documentation

◆ ExGflashHit() [1/3]

ExGflashHit::ExGflashHit ( )

Definition at line 45 of file ExGflashHit.cc.

45: fLogV(nullptr) {}
const G4LogicalVolume * fLogV

◆ ExGflashHit() [2/3]

ExGflashHit::ExGflashHit ( G4LogicalVolume logVol)

Definition at line 49 of file ExGflashHit.cc.

49: fLogV(logVol) {}

◆ ~ExGflashHit()

ExGflashHit::~ExGflashHit ( )
overridedefault

◆ ExGflashHit() [3/3]

ExGflashHit::ExGflashHit ( const ExGflashHit right)

Definition at line 57 of file ExGflashHit.cc.

57 : G4VHit(right)
58//@@@ ExGflashHit:Is it right with the init?
59{
60 fEdep = right.fEdep;
61 fPos = right.fPos;
62 fStart = right.fStart;
63 fRot = right.fRot;
64 fLogV = right.fLogV;
65 fCrystalNumber = right.fCrystalNumber;
66}
G4ThreeVector fStart
G4int fCrystalNumber
G4ThreeVector fPos
G4RotationMatrix fRot
G4double fEdep

Member Function Documentation

◆ operator=()

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

Definition at line 70 of file ExGflashHit.cc.

71{
72 G4VHit::operator=(right);
73 fEdep = right.fEdep;
74 fStart = right.fStart;
75 fPos = right.fPos;
76 fRot = right.fRot;
77 fLogV = right.fLogV;
78 fCrystalNumber = right.fCrystalNumber;
79 fCrystalNumber = right.fCrystalNumber;
80 return *this;
81}

◆ operator==()

G4bool ExGflashHit::operator== ( const ExGflashHit right) const

Definition at line 85 of file ExGflashHit.cc.

86{
87 // @@@@ return false;
88 if ((fPos == right.fPos) && (fEdep == right.fEdep))
89 return true;
90 else
91 return false;
92}

◆ operator new() [1/2]

void * ExGflashHit::operator new ( size_t  )
inline

Definition at line 89 of file ExGflashHit.hh.

90{
92 return (void*)ExGflashHitAllocator->MallocSingle();
93}
G4ThreadLocal G4Allocator< ExGflashHit > * ExGflashHitAllocator

◆ operator delete() [1/2]

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

Definition at line 95 of file ExGflashHit.hh.

◆ operator new() [2/2]

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

Definition at line 53 of file ExGflashHit.hh.

53{ return p; }

◆ operator delete() [2/2]

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

Definition at line 55 of file ExGflashHit.hh.

55{}

◆ Draw()

void ExGflashHit::Draw ( )
override

Definition at line 96 of file ExGflashHit.cc.

97{
98 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
99 if (pVVisManager) {
100 G4Transform3D trans(fRot, fPos);
101 G4VisAttributes attribs;
102 const G4VisAttributes* pVA = fLogV->GetVisAttributes();
103 if (pVA) attribs = *pVA;
104 G4Colour colour(1., 0., 0.);
105 attribs.SetColour(colour);
106 attribs.SetForceWireframe(false);
107 attribs.SetForceSolid(true);
108 pVVisManager->Draw(*fLogV, attribs, trans);
109 }
110}

◆ Print()

void ExGflashHit::Print ( )
override

Definition at line 114 of file ExGflashHit.cc.

114{}

◆ SetEdep()

void ExGflashHit::SetEdep ( G4double  de)
inline

Definition at line 70 of file ExGflashHit.hh.

70{ fEdep = de; };

◆ AddEdep()

void ExGflashHit::AddEdep ( G4double  de)
inline

Definition at line 71 of file ExGflashHit.hh.

71{ fEdep += de; };

◆ GetEdep()

G4double ExGflashHit::GetEdep ( )
inline

Definition at line 72 of file ExGflashHit.hh.

72{ return fEdep; };

◆ SetPos()

void ExGflashHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 73 of file ExGflashHit.hh.

73{ fPos = xyz; };

◆ GetCrystalNum()

G4int ExGflashHit::GetCrystalNum ( )
inline

Definition at line 74 of file ExGflashHit.hh.

74{ return fCrystalNumber; };

◆ SetCrystalNum()

void ExGflashHit::SetCrystalNum ( G4int  num)
inline

Definition at line 75 of file ExGflashHit.hh.

75{ fCrystalNumber = num; };

◆ GetPos()

G4ThreeVector ExGflashHit::GetPos ( )
inline

Definition at line 76 of file ExGflashHit.hh.

76{ return fPos; };

◆ SetStart()

void ExGflashHit::SetStart ( G4ThreeVector  xyz)
inline

Definition at line 77 of file ExGflashHit.hh.

77{ fStart = xyz; };

◆ GetStart()

G4ThreeVector ExGflashHit::GetStart ( )
inline

Definition at line 78 of file ExGflashHit.hh.

78{ return fStart; };

◆ SetRot()

void ExGflashHit::SetRot ( G4RotationMatrix  rmat)
inline

Definition at line 80 of file ExGflashHit.hh.

80{ fRot = rmat; };

◆ GetRot()

G4RotationMatrix ExGflashHit::GetRot ( )
inline

Definition at line 81 of file ExGflashHit.hh.

81{ return fRot; };

◆ GetLogV()

const G4LogicalVolume * ExGflashHit::GetLogV ( )
inline

Definition at line 82 of file ExGflashHit.hh.

82{ return fLogV; };

Member Data Documentation

◆ fEdep

G4double ExGflashHit::fEdep
private

Definition at line 62 of file ExGflashHit.hh.

◆ fPos

G4ThreeVector ExGflashHit::fPos
private

Definition at line 63 of file ExGflashHit.hh.

◆ fCrystalNumber

G4int ExGflashHit::fCrystalNumber
private

Definition at line 64 of file ExGflashHit.hh.

◆ fStart

G4ThreeVector ExGflashHit::fStart
private

Definition at line 65 of file ExGflashHit.hh.

◆ fRot

G4RotationMatrix ExGflashHit::fRot
private

Definition at line 66 of file ExGflashHit.hh.

◆ fLogV

const G4LogicalVolume* ExGflashHit::fLogV
private

Definition at line 67 of file ExGflashHit.hh.


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

Applications | User Support | Publications | Collaboration