18 #include "G4VProcess.hh"
33 if (name ==
"EcalTBH4BeamHits") {
36 else {
edm::LogWarning(
"EcalTBSim") <<
"EcalTBH4BeamSD: ReadoutName not supported\n";}
39 edm::LogInfo(
"EcalTBSim") <<
"Constructing a EcalTBH4BeamSD with name "
41 edm::LogInfo(
"EcalTBSim") <<
"EcalTBH4BeamSD:: Use of Birks law is set to "
42 << useBirk <<
" with three constants kB = "
43 << birk1 <<
", C1 = " << birk2 <<
", C2 = "
57 G4String nameVolume =
preStepPoint->GetPhysicalVolume()->GetName();
62 double edep = aStep->GetTotalEnergyDeposit() *
weight;
63 LogDebug(
"EcalTBSim") <<
"EcalTBH4BeamSD:: " << nameVolume
64 <<
" Light Collection Efficiency " << weight
65 <<
" Weighted Energy Deposit " << edep/MeV <<
" MeV";
77 edm::LogInfo(
"EcalTBSim") <<
"EcalTBH4BeamSD: updates numbering scheme for "
88 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
89 int theSize = touch->GetHistoryDepth()+1;
93 for (
int ii = 0; ii < theSize ; ii++) {
95 LogDebug(
"EcalTBSim") <<
"EcalTBH4BeamSD::getBaseNumber(): Adding level " << ii
96 <<
": " << touch->GetVolume(ii)->GetName() <<
"["
97 << touch->GetReplicaNumber(ii) <<
"]";
T getParameter(std::string const &) const
virtual uint32_t setDetUnitId(G4Step *step)
type of data representation of DDCompactView
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
static TrackerG4SimHitNumberingScheme & numberingScheme(const DDCompactView &cpv, const GeometricDet &det)
void addLevel(const std::string &name, const int ©Number)
virtual ~EcalTBH4BeamSD()
void setNumberingScheme(EcalNumberingScheme *scheme)
double getAttenuation(G4Step *aStep, double birk1, double birk2, double birk3)
EcalNumberingScheme * numberingScheme
G4StepPoint * preStepPoint
EcalBaseNumber theBaseNumber
EcalTBH4BeamSD(G4String, const DDCompactView &, SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
void getBaseNumber(const G4Step *aStep)
virtual double getEnergyDeposit(G4Step *)
void setSize(const int &size)
virtual uint32_t getUnitID(const EcalBaseNumber &baseNumber) const =0