18 #include "G4VProcess.hh" 20 #include "G4SystemOfUnits.hh" 35 if (name ==
"EcalTBH4BeamHits") {
38 else {
edm::LogWarning(
"EcalTBSim") <<
"EcalTBH4BeamSD: ReadoutName not supported\n";}
41 edm::LogInfo(
"EcalTBSim") <<
"Constructing a EcalTBH4BeamSD with name " 43 edm::LogInfo(
"EcalTBSim") <<
"EcalTBH4BeamSD:: Use of Birks law is set to " 44 << useBirk <<
" with three constants kB = " 45 << birk1 <<
", C1 = " << birk2 <<
", C2 = " 58 double edep = aStep->GetTotalEnergyDeposit() *
weight;
59 LogDebug(
"EcalTBSim") <<
"EcalTBH4BeamSD:: " 60 << aStep->GetPreStepPoint()->GetPhysicalVolume()->GetName()
61 <<
" Light Collection Efficiency " << weight
62 <<
" Weighted Energy Deposit " << edep/
MeV <<
" MeV";
72 if (scheme !=
nullptr) {
73 edm::LogInfo(
"EcalTBSim") <<
"EcalTBH4BeamSD: updates numbering scheme for " 84 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
85 int theSize = touch->GetHistoryDepth()+1;
89 for (
int ii = 0;
ii < theSize ;
ii++) {
91 LogDebug(
"EcalTBSim") <<
"EcalTBH4BeamSD::getBaseNumber(): Adding level " <<
ii 92 <<
": " << touch->GetVolume(
ii)->GetName() <<
"[" 93 << touch->GetReplicaNumber(
ii) <<
"]";
T getParameter(std::string const &) const
Compact representation of the geometrical detector hierarchy.
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)
double getEnergyDeposit(const G4Step *) override
uint32_t setDetUnitId(const G4Step *step) override
void setNumberingScheme(EcalNumberingScheme *scheme)
EcalTBH4BeamSD(const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
EcalNumberingScheme * numberingScheme
EcalBaseNumber theBaseNumber
virtual uint32_t getUnitID(const EcalBaseNumber &baseNumber) const =0
double getAttenuation(const G4Step *aStep, double birk1, double birk2, double birk3) const
~EcalTBH4BeamSD() override
void getBaseNumber(const G4Step *aStep)
void setSize(const int &size)