18#include "SensitiveDetector.h"
24#include <TLorentzVector.h>
25#include <TMCRootManager.h>
27#include <TVirtualMC.h>
40 :
TNamed(name,
""), fHit(0), fAbsorberVolId(), fGasVolId(), fVerboseLevel(1)
55 fVerboseLevel(origin.fVerboseLevel)
66 :
TNamed(), fHit(0), fAbsorberVolId(), fGasVolId(), fVerboseLevel(0)
89 if (TMCRootManager::Instance())
Register();
100 Int_t
id = gMC->CurrentVolID(copyNo);
104 Double_t edep = gMC->Edep();
106 if (gMC->TrackCharge() != 0.) step = gMC->TrackStep();
130 Double_t gain = garfieldPhysics->
GetGain();
152 garfieldPhysics->
Clear();
160 TMCRootManager::Instance()->Register(
"hit",
"VMC::ExGarfield::Hit", &
fHit);
Definition of the GarfieldPhysics class.
static GarfieldPhysics * GetInstance()
double GetEnergyDeposit_MeV()
double GetAvalancheSize()
void AddAvalancheSize(Double_t das)
virtual void Print(Option_t *option="") const
void AddTrackLengthAbs(Double_t dl)
void AddGain(Double_t dg)
void AddEdepGas(Double_t de)
void AddEdepAbs(Double_t de)
The calorimeter sensitive detector.
Int_t fGasVolId
The gas volume Id.
Bool_t UpdateFromGarfield()
Int_t fVerboseLevel
Verbosity level.
Int_t fAbsorberVolId
The absorber volume Id.
virtual ~SensitiveDetector()
Hit * fHit
The detector hit.
virtual void Print(Option_t *option="") const