Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
ExGflashHit Class Reference

#include <ExGflashHit.hh>

Inheritance diagram for ExGflashHit:
G4VHit

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 *)
 
void Draw ()
 
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 42 of file ExGflashHit.cc.

43 {fLogV=NULL;}
ExGflashHit::ExGflashHit ( G4LogicalVolume logVol)

Definition at line 45 of file ExGflashHit.cc.

46 :fLogV(logVol)
47 {;}
ExGflashHit::~ExGflashHit ( )

Definition at line 49 of file ExGflashHit.cc.

50 {;}
ExGflashHit::ExGflashHit ( const ExGflashHit right)

Definition at line 52 of file ExGflashHit.cc.

53 :G4VHit()
54 //@@@ ExGflashHit:Is it right with the init?
55 {
56  fEdep = right.fEdep;
57  fPos = right.fPos;
58  fStart =right.fStart;
59  fRot = right.fRot;
60  fLogV = right.fLogV;
61  fCrystalNumber = right.fCrystalNumber;
62 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

void ExGflashHit::AddEdep ( G4double  de)
inline

Definition at line 75 of file ExGflashHit.hh.

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

Reimplemented from G4VHit.

Definition at line 84 of file ExGflashHit.cc.

References G4VVisManager::Draw(), G4VVisManager::GetConcreteInstance(), G4LogicalVolume::GetVisAttributes(), G4VisAttributes::SetColour(), G4VisAttributes::SetForceSolid(), and G4VisAttributes::SetForceWireframe().

85 {
87  if(pVVisManager)
88  {
89  G4Transform3D trans(fRot,fPos);
90  G4VisAttributes attribs;
91  const G4VisAttributes* pVA = fLogV->GetVisAttributes();
92  if(pVA) attribs = *pVA;
93  G4Colour colour(1.,0.,0.);
94  attribs.SetColour(colour);
95  attribs.SetForceWireframe(false);
96  attribs.SetForceSolid(true);
97  pVVisManager->Draw(*fLogV,attribs,trans);
98  }
99 }
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
void SetColour(const G4Colour &)
void SetForceWireframe(G4bool)
static G4VVisManager * GetConcreteInstance()
void SetForceSolid(G4bool)
const G4VisAttributes * GetVisAttributes() const
G4int ExGflashHit::GetCrystalNum ( )
inline

Definition at line 81 of file ExGflashHit.hh.

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

Definition at line 77 of file ExGflashHit.hh.

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

Definition at line 96 of file ExGflashHit.hh.

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

Definition at line 85 of file ExGflashHit.hh.

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

Definition at line 94 of file ExGflashHit.hh.

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

Definition at line 89 of file ExGflashHit.hh.

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

Definition at line 111 of file ExGflashHit.hh.

References ExGflashHitAllocator.

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

Definition at line 58 of file ExGflashHit.hh.

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

Definition at line 105 of file ExGflashHit.hh.

References ExGflashHitAllocator.

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

Definition at line 56 of file ExGflashHit.hh.

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

Definition at line 64 of file ExGflashHit.cc.

65 {
66  fEdep = right.fEdep;
67  fStart =right.fStart;
68  fPos = right.fPos;
69  fRot = right.fRot;
70  fLogV = right.fLogV;
71  fCrystalNumber = right.fCrystalNumber;
72  fCrystalNumber = right.fCrystalNumber;
73  return *this;
74 }
int ExGflashHit::operator== ( const ExGflashHit right) const

Definition at line 76 of file ExGflashHit.cc.

77 {
78 // @@@@ return 0;
79  if ((fPos==right.fPos) && (fEdep == right.fEdep)) return true;
80  else return false;
81 
82 }
void ExGflashHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 101 of file ExGflashHit.cc.

102 {
103 }
void ExGflashHit::SetCrystalNum ( G4int  num)
inline

Definition at line 83 of file ExGflashHit.hh.

Referenced by ExGflashSensitiveDetector::ProcessHits().

84  { fCrystalNumber=num; };
void ExGflashHit::SetEdep ( G4double  de)
inline

Definition at line 73 of file ExGflashHit.hh.

Referenced by ExGflashSensitiveDetector::ProcessHits().

74  { fEdep = de; };
void ExGflashHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 79 of file ExGflashHit.hh.

Referenced by ExGflashSensitiveDetector::ProcessHits().

80  { fPos = xyz; };
void ExGflashHit::SetRot ( G4RotationMatrix  rmat)
inline

Definition at line 92 of file ExGflashHit.hh.

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

Definition at line 87 of file ExGflashHit.hh.

88  { fStart = xyz; };

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