15 #include "G4StepPoint.hh" 29 SetVerboseLevel(verbn);
32 if (
name ==
"FastTimerHitsBarrel") {
35 }
else if (
name ==
"FastTimerHitsEndcap") {
50 double newTimeFactor = 1. / m_p.
getParameter<
double>(
"TimeSliceUnit");
73 edm::LogVerbatim(
"MtdSim") <<
"MtdSD: updates numbering scheme for " << GetName();
82 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
83 int theSize = touch->GetHistoryDepth() + 1;
91 for (
int ii = 0;
ii < theSize;
ii++) {
95 << touch->GetVolume(
ii)->GetName() <<
"[" << touch->GetReplicaNumber(
ii) <<
"]";
102 int theID = aTrack->GetTrackID();
104 const G4String&
rname = aTrack->GetVolume()->GetLogicalVolume()->GetRegion()->GetName();
105 if (trkInfo !=
nullptr) {
109 if (
rname ==
"FastTimerRegionSensBTL") {
120 <<
" BTL Track ID: " << trkInfo->
mcTruthID() <<
":" << theID;
122 }
else if (
rname ==
"FastTimerRegionSensETL") {
126 <<
" ETL Track ID: " << trkInfo->
mcTruthID() <<
":" << theID;
133 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)
static unsigned int addTrackIdOffset(unsigned int tId, unsigned int offset)
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.
static constexpr unsigned int k_idsecOffset
uint32_t setDetUnitId(const G4Step *) override
T getUntrackedParameter(std::string const &, T const &) const
static constexpr unsigned int k_idloopOffset
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)
static constexpr unsigned int k_idFromCaloOffset
Log< level::Warning, false > LogWarning
void setSize(const int size)