SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS::CopClusterHit Class Reference

Informations to keep the energy is in a sensitive detector. More...

#include <SToGS_G4_CopClusterHit.hh>

Inherits G4VHit.

Public Member Functions

void AddEdep (G4double de)
 
void AddOneHit ()
 
void AddPos (G4double de, G4ThreeVector xyz)
 
void AddToF (G4double de, G4double t)
 
 CopClusterHit ()
 
 CopClusterHit (const CopClusterHit &right)
 
void Draw ()
 
void EndOfEvent ()
 to be applied at the end of an event to calculate properly the mean values More...
 
G4int GetDetID () const
 
G4double GetEdep () const
 
G4int GetMotherID () const
 
G4int GetNbHits () const
 
const G4ThreeVector & GetPos ()
 
G4double GetToF () const
 
void operator delete (void *aHit)
 
void * operator new (size_t)
 
const CopClusterHitoperator= (const CopClusterHit &right)
 
G4int operator== (const CopClusterHit &right) const
 
void Print ()
 
void SetDetID (G4int id)
 
void SetDetName (G4String name)
 
void SetEdep (G4double de=0.0)
 
void SetMotherDetName (G4String name)
 
void SetMotherID (G4int id)
 
void SetNbHits (G4int nb=0)
 
void SetPos (G4double de, G4ThreeVector xyz=G4ThreeVector(0., 0., 0.))
 
void SetToF (G4double de, G4double tf=0.0)
 
virtual ~CopClusterHit ()
 

Detailed Description

Informations to keep the energy is in a sensitive detector.

In G4, one have to define a class (a hit) that inherits from G4VHit to keep informations during the tracking. This one is dedicated for tracking since it kept infomations of any single impact in sensitive detectors. Here is the list of the available informations for each CopClusterHit. Use Get/Set methods to obtain/change these values.

  • G4int primaryID: Primary vertex from which this hit is coming
  • G4int detID: Detector ID in which the hit occured
  • G4int motherID: Mother ID of the detector in which the hit occured
  • G4double edep: Energy deposited
  • G4double ToF: global time at which the interaction occured
  • G4ThreeVector pos: Position of the impact

Definition at line 58 of file SToGS_G4_CopClusterHit.hh.

Constructor & Destructor Documentation

SToGS::CopClusterHit::CopClusterHit ( )

Definition at line 41 of file SToGS_G4_CopClusterHit.cc.

SToGS::CopClusterHit::~CopClusterHit ( )
virtual

Definition at line 52 of file SToGS_G4_CopClusterHit.cc.

SToGS::CopClusterHit::CopClusterHit ( const CopClusterHit right)

Definition at line 57 of file SToGS_G4_CopClusterHit.cc.

Member Function Documentation

void SToGS::CopClusterHit::AddEdep ( G4double  de)
inline

Definition at line 135 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::AddOneHit ( )
inline

Definition at line 131 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::AddPos ( G4double  de,
G4ThreeVector  xyz 
)
inline

Definition at line 143 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::AddToF ( G4double  de,
G4double  t 
)
inline

Definition at line 139 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::Draw ( )

Definition at line 101 of file SToGS_G4_CopClusterHit.cc.

void SToGS::CopClusterHit::EndOfEvent ( )

to be applied at the end of an event to calculate properly the mean values

Definition at line 128 of file SToGS_G4_CopClusterHit.cc.

G4int SToGS::CopClusterHit::GetDetID ( ) const
inline

Definition at line 106 of file SToGS_G4_CopClusterHit.hh.

G4double SToGS::CopClusterHit::GetEdep ( ) const
inline

Definition at line 114 of file SToGS_G4_CopClusterHit.hh.

G4int SToGS::CopClusterHit::GetMotherID ( ) const
inline

Definition at line 110 of file SToGS_G4_CopClusterHit.hh.

G4int SToGS::CopClusterHit::GetNbHits ( ) const
inline

Definition at line 126 of file SToGS_G4_CopClusterHit.hh.

const G4ThreeVector& SToGS::CopClusterHit::GetPos ( )
inline

Definition at line 122 of file SToGS_G4_CopClusterHit.hh.

G4double SToGS::CopClusterHit::GetToF ( ) const
inline

Definition at line 118 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::operator delete ( void *  aHit)
inline

Definition at line 177 of file SToGS_G4_CopClusterHit.hh.

void * SToGS::CopClusterHit::operator new ( size_t  )
inline

Definition at line 171 of file SToGS_G4_CopClusterHit.hh.

const SToGS::CopClusterHit & SToGS::CopClusterHit::operator= ( const CopClusterHit right)

Definition at line 75 of file SToGS_G4_CopClusterHit.cc.

G4int SToGS::CopClusterHit::operator== ( const CopClusterHit right) const

Definition at line 96 of file SToGS_G4_CopClusterHit.cc.

void SToGS::CopClusterHit::Print ( )

Definition at line 115 of file SToGS_G4_CopClusterHit.cc.

void SToGS::CopClusterHit::SetDetID ( G4int  id)
inline

Definition at line 73 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::SetDetName ( G4String  name)
inline

Definition at line 93 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::SetEdep ( G4double  de = 0.0)
inline

Definition at line 81 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::SetMotherDetName ( G4String  name)
inline

Definition at line 97 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::SetMotherID ( G4int  id)
inline

Definition at line 77 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::SetNbHits ( G4int  nb = 0)
inline

Definition at line 101 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::SetPos ( G4double  de,
G4ThreeVector  xyz = G4ThreeVector(0.,0.,0.) 
)
inline

Definition at line 89 of file SToGS_G4_CopClusterHit.hh.

void SToGS::CopClusterHit::SetToF ( G4double  de,
G4double  tf = 0.0 
)
inline

Definition at line 85 of file SToGS_G4_CopClusterHit.hh.


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