14 #include "G4StepPoint.hh" 28 SetVerboseLevel(verbn);
31 if (
name ==
"FastTimerHitsBarrel") {
34 }
else if (
name ==
"FastTimerHitsEndcap") {
49 double newTimeFactor = 1. / m_p.
getParameter<
double>(
"TimeSliceUnit");
72 edm::LogVerbatim(
"MtdSim") <<
"MtdSD: updates numbering scheme for " << GetName();
81 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
82 int theSize = touch->GetHistoryDepth() + 1;
90 for (
int ii = 0;
ii < theSize;
ii++) {
94 << touch->GetVolume(
ii)->GetName() <<
"[" << touch->GetReplicaNumber(
ii) <<
"]";
101 int theID = aTrack->GetTrackID();
103 const G4String&
rname = aTrack->GetVolume()->GetLogicalVolume()->GetRegion()->GetName();
104 if (trkInfo !=
nullptr) {
108 if (
rname ==
"FastTimerRegionSensBTL") {
115 }
else if (
rname ==
"FastTimerRegionSensETL") {
125 edm::LogWarning(
"MtdSim") <<
"MtdSD: Problem with primaryID **** set by force to TkID **** " << theID;
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
void setTimeFactor(double)
void addLevel(const std::string_view name, const int copyNumber)
void setCuts(double eCut, double historyCut)
int getTrackID(const G4Track *) override
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 *)
TrackInformation * cmsTrackInformation(const G4Track *aTrack)
MtdSD(const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
MTDNumberingScheme * numberingScheme
const G4String rname[NREG]
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)