12 #include "G4StepPoint.hh" 27 SetVerboseLevel(verbn);
30 if (
name ==
"FastTimerHitsBarrel") {
33 }
else if (
name ==
"FastTimerHitsEndcap") {
43 double newTimeFactor = 1. / m_p.
getParameter<
double>(
"TimeSliceUnit");
66 edm::LogVerbatim(
"MtdSim") <<
"MtdSD: updates numbering scheme for " << GetName();
75 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
76 int theSize = touch->GetHistoryDepth() + 1;
84 for (
int ii = 0;
ii < theSize;
ii++) {
88 << touch->GetVolume(
ii)->GetName() <<
"[" << touch->GetReplicaNumber(
ii) <<
"]";
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
void setTimeFactor(double)
void addLevel(const std::string_view name, const int copyNumber)
Detector identifier base class for the MIP Timing Layer.
uint32_t setDetUnitId(const G4Step *) override
T getUntrackedParameter(std::string const &, T const &) const
MTDBaseNumber theBaseNumber
void getBaseNumber(const G4Step *)
void setNumberingScheme(MTDNumberingScheme *)
MtdSD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
MTDNumberingScheme * numberingScheme
virtual uint32_t getUnitID(const MTDBaseNumber &baseNumber) const =0
static TrackerG4SimHitNumberingScheme & numberingScheme(const GeometricDet &det)
Log< level::Warning, false > LogWarning
void setSize(const int size)