Geant4  10.02.p02
B5EmCalorimeterHit Class Reference

EM Calorimeter hit. More...

#include <B5EmCalorimeterHit.hh>

+ Inheritance diagram for B5EmCalorimeterHit:
+ Collaboration diagram for B5EmCalorimeterHit:

Public Member Functions

 B5EmCalorimeterHit ()
 
 B5EmCalorimeterHit (G4int z)
 
 B5EmCalorimeterHit (const B5EmCalorimeterHit &right)
 
virtual ~B5EmCalorimeterHit ()
 
const B5EmCalorimeterHitoperator= (const B5EmCalorimeterHit &right)
 
int operator== (const B5EmCalorimeterHit &right) const
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
virtual void Draw ()
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 
virtual void Print ()
 
void SetCellID (G4int z)
 
G4int GetCellID () const
 
void SetEdep (G4double de)
 
void AddEdep (G4double de)
 
G4double GetEdep () const
 
void SetPos (G4ThreeVector xyz)
 
G4ThreeVector GetPos () const
 
void SetRot (G4RotationMatrix rmat)
 
G4RotationMatrix GetRot () const
 
void SetLogV (G4LogicalVolume *val)
 
const G4LogicalVolumeGetLogV () const
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 

Private Attributes

G4int fCellID
 
G4double fEdep
 
G4ThreeVector fPos
 
G4RotationMatrix fRot
 
const G4LogicalVolumefPLogV
 

Detailed Description

EM Calorimeter hit.

It records:

  • the cell ID
  • the energy deposit
  • the cell logical volume, its position and rotation

Definition at line 52 of file B5EmCalorimeterHit.hh.

Constructor & Destructor Documentation

B5EmCalorimeterHit::B5EmCalorimeterHit ( )

Definition at line 50 of file B5EmCalorimeterHit.cc.

B5EmCalorimeterHit::B5EmCalorimeterHit ( G4int  z)

Definition at line 56 of file B5EmCalorimeterHit.cc.

B5EmCalorimeterHit::B5EmCalorimeterHit ( const B5EmCalorimeterHit right)

Definition at line 67 of file B5EmCalorimeterHit.cc.

References fCellID, fEdep, fPLogV, fPos, and fRot.

B5EmCalorimeterHit::~B5EmCalorimeterHit ( )
virtual

Definition at line 62 of file B5EmCalorimeterHit.cc.

Member Function Documentation

void B5EmCalorimeterHit::AddEdep ( G4double  de)
inline

Definition at line 75 of file B5EmCalorimeterHit.hh.

References fEdep.

Referenced by B5EmCalorimeterSD::ProcessHits().

+ Here is the caller graph for this function:

std::vector< G4AttValue > * B5EmCalorimeterHit::CreateAttValues ( ) const
virtual

Reimplemented from G4VHit.

Definition at line 149 of file B5EmCalorimeterHit.cc.

References G4UIcommand::ConvertToString(), fCellID, fEdep, fPLogV, fPos, G4BestUnit, and G4LogicalVolume::GetName().

+ Here is the call graph for this function:

void B5EmCalorimeterHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 98 of file B5EmCalorimeterHit.cc.

References G4VVisManager::Draw(), fEdep, fPLogV, fPos, fRot, G4VVisManager::GetConcreteInstance(), G4LogicalVolume::GetVisAttributes(), and GeV.

+ Here is the call graph for this function:

const std::map< G4String, G4AttDef > * B5EmCalorimeterHit::GetAttDefs ( ) const
virtual

Reimplemented from G4VHit.

Definition at line 120 of file B5EmCalorimeterHit.cc.

References G4AttDefStore::GetInstance().

+ Here is the call graph for this function:

G4int B5EmCalorimeterHit::GetCellID ( ) const
inline

Definition at line 72 of file B5EmCalorimeterHit.hh.

References fCellID.

G4double B5EmCalorimeterHit::GetEdep ( ) const
inline

Definition at line 76 of file B5EmCalorimeterHit.hh.

References fEdep.

Referenced by B5EventAction::EndOfEventAction().

+ Here is the caller graph for this function:

const G4LogicalVolume* B5EmCalorimeterHit::GetLogV ( ) const
inline

Definition at line 85 of file B5EmCalorimeterHit.hh.

References fPLogV.

Referenced by B5EmCalorimeterSD::ProcessHits().

+ Here is the caller graph for this function:

G4ThreeVector B5EmCalorimeterHit::GetPos ( ) const
inline

Definition at line 79 of file B5EmCalorimeterHit.hh.

References fPos.

G4RotationMatrix B5EmCalorimeterHit::GetRot ( ) const
inline

Definition at line 82 of file B5EmCalorimeterHit.hh.

References fRot.

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

Definition at line 106 of file B5EmCalorimeterHit.hh.

References B5EmCalorimeterHitAllocator.

void * B5EmCalorimeterHit::operator new ( size_t  )
inline

Definition at line 99 of file B5EmCalorimeterHit.hh.

References B5EmCalorimeterHitAllocator.

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

Definition at line 78 of file B5EmCalorimeterHit.cc.

References fCellID, fEdep, fPLogV, fPos, and fRot.

int B5EmCalorimeterHit::operator== ( const B5EmCalorimeterHit right) const

Definition at line 91 of file B5EmCalorimeterHit.cc.

References fCellID.

void B5EmCalorimeterHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 172 of file B5EmCalorimeterHit.cc.

References fCellID, fEdep, G4cout, G4endl, and MeV.

void B5EmCalorimeterHit::SetCellID ( G4int  z)
inline

Definition at line 71 of file B5EmCalorimeterHit.hh.

References fCellID, and z.

void B5EmCalorimeterHit::SetEdep ( G4double  de)
inline

Definition at line 74 of file B5EmCalorimeterHit.hh.

References fEdep.

void B5EmCalorimeterHit::SetLogV ( G4LogicalVolume val)
inline

Definition at line 84 of file B5EmCalorimeterHit.hh.

References fPLogV.

Referenced by B5EmCalorimeterSD::ProcessHits().

+ Here is the caller graph for this function:

void B5EmCalorimeterHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 78 of file B5EmCalorimeterHit.hh.

References fPos.

Referenced by B5EmCalorimeterSD::ProcessHits().

+ Here is the caller graph for this function:

void B5EmCalorimeterHit::SetRot ( G4RotationMatrix  rmat)
inline

Definition at line 81 of file B5EmCalorimeterHit.hh.

References fRot.

Referenced by B5EmCalorimeterSD::ProcessHits().

+ Here is the caller graph for this function:

Member Data Documentation

G4int B5EmCalorimeterHit::fCellID
private
G4double B5EmCalorimeterHit::fEdep
private
const G4LogicalVolume* B5EmCalorimeterHit::fPLogV
private
G4ThreeVector B5EmCalorimeterHit::fPos
private
G4RotationMatrix B5EmCalorimeterHit::fRot
private

Definition at line 91 of file B5EmCalorimeterHit.hh.

Referenced by B5EmCalorimeterHit(), Draw(), GetRot(), operator=(), and SetRot().


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