Go to the documentation of this file.
15 #include "G4StepPoint.hh"
31 SetVerboseLevel(verbn);
34 if (
name ==
"FastTimerHitsBarrel") {
37 }
else if (
name ==
"FastTimerHitsEndcap") {
47 double newTimeFactor = 1. / m_p.
getParameter<
double>(
"TimeSliceUnit");
48 edm::LogInfo(
"MtdSim") <<
"New time factor = " << newTimeFactor;
70 edm::LogInfo(
"MtdSim") <<
"MtdSD: updates numbering scheme for " << GetName();
79 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
80 int theSize = touch->GetHistoryDepth() + 1;
88 for (
int ii = 0;
ii < theSize;
ii++) {
92 << touch->GetVolume(
ii)->GetName() <<
"[" << touch->GetReplicaNumber(
ii) <<
"]";
virtual uint32_t getUnitID(const MTDBaseNumber &baseNumber) const =0
void setTimeFactor(double)
uint32_t setDetUnitId(const G4Step *) override
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Info, false > LogInfo
Log< level::Warning, false > LogWarning
void addLevel(const std::string &name, const int ©Number)
MTDNumberingScheme * numberingScheme
void setSize(const int &size)
static TrackerG4SimHitNumberingScheme & numberingScheme(const GeometricDet &det)
MtdSD(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
MTDBaseNumber theBaseNumber
void setNumberingScheme(MTDNumberingScheme *)
Log< level::Info, true > LogVerbatim
Detector identifier base class for the MIP Timing Layer.
void getBaseNumber(const G4Step *)
T getParameter(std::string const &) const