CMS 3D CMS Logo

MuonSensitiveDetector.cc
Go to the documentation of this file.
8 
12 
17 
21 
22 #include "G4VProcess.hh"
23 #include "G4EventManager.hh"
24 #include "G4SystemOfUnits.hh"
25 #include "G4Step.hh"
26 #include "G4StepPoint.hh"
27 #include "G4Track.hh"
28 
30 
31 #include <iostream>
32 
33 //#define EDM_ML_DEBUG
34 
36  const MuonOffsetMap* offmap,
38  const SensitiveDetectorCatalog& clg,
39  double aEPersistentCutGeV,
40  bool aAllMuonsPersistent,
41  bool aPrintHits,
42  bool dd4hep,
43  const SimTrackManager* manager)
44  : SensitiveTkDetector(name, clg),
45  thePV(nullptr),
46  theHit(nullptr),
47  theDetUnitId(0),
48  newDetUnitId(0),
49  theTrackID(0),
50  printHits(aPrintHits),
51  thePrinter(nullptr),
52  ePersistentCutGeV(aEPersistentCutGeV),
53  allMuonsPersistent(aAllMuonsPersistent),
54  theManager(manager) {
55  // Here simply create 1 MuonSlaveSD for the moment
56  //
57 #ifdef EDM_ML_DEBUG
58  edm::LogVerbatim("MuonSim") << "create MuonSubDetector " << name << " with dd4hep flag " << dd4hep;
59 #endif
61 
62  G4String sdet = "unknown";
63  if (detector->isEndcap()) {
65  sdet = "Endcap";
66  } else if (detector->isRPC()) {
68  sdet = "RPC";
69  } else if (detector->isGEM()) {
71  sdet = "GEM";
72  } else if (detector->isME0()) {
74  sdet = "ME0";
75  } else {
77  if (detector->isBarrel())
78  sdet = "Barrel";
79  }
83 
84  if (printHits) {
85  thePrinter = new SimHitPrinter("HitPositionOSCAR.dat");
86  }
87 
88  edm::LogVerbatim("MuonSim") << " of type " << sdet << " <" << GetName() << "> EnergyThresholdForPersistency(GeV) "
89  << ePersistentCutGeV / CLHEP::GeV << " allMuonsPersistent: " << allMuonsPersistent;
90 
92 }
93 
95  delete g4numbering;
96  delete numbering;
97  delete slaveMuon;
98  delete theRotation;
99  delete detector;
101 }
102 
104  clearHits();
105  //----- Initialize variables to check if two steps belong to same hit
106  thePV = nullptr;
107  theDetUnitId = 0;
108  theTrackID = 0;
109 }
110 
112 #ifdef EDM_ML_DEBUG
113  edm::LogVerbatim("MuonSim") << "MuonSensitiveDetector::clearHits";
114 #endif
116 }
117 
118 bool MuonSensitiveDetector::ProcessHits(G4Step* aStep, G4TouchableHistory* ROhist) {
119 #ifdef EDM_ML_DEBUG
120  edm::LogVerbatim("MuonSim") << " MuonSensitiveDetector::ProcessHits " << InitialStepPosition(aStep, WorldCoordinates);
121 #endif
122 
123  if (aStep->GetTotalEnergyDeposit() > 0.) {
124  newDetUnitId = setDetUnitId(aStep);
125 
126  if (newHit(aStep)) {
127  saveHit();
128  createHit(aStep);
129  } else {
130  updateHit(aStep);
131  }
132  thePV = aStep->GetPreStepPoint()->GetPhysicalVolume();
133  theTrackID = aStep->GetTrack()->GetTrackID();
135  }
136  return true;
137 }
138 
139 uint32_t MuonSensitiveDetector::setDetUnitId(const G4Step* aStep) {
141 
142 #ifdef EDM_ML_DEBUG
143  std::stringstream MuonBaseNumber;
144  MuonBaseNumber << "MuonNumbering :: number of levels = " << num.getLevels() << std::endl;
145  MuonBaseNumber << "Level \t SuperNo \t BaseNo" << std::endl;
146  for (int level = 1; level <= num.getLevels(); level++) {
147  MuonBaseNumber << level << " \t " << num.getSuperNo(level) << " \t " << num.getBaseNo(level) << std::endl;
148  }
149  std::string MuonBaseNumbr = MuonBaseNumber.str();
150 
151  edm::LogVerbatim("MuonSim") << "MuonSensitiveDetector::setDetUnitId :: " << MuonBaseNumbr;
152  edm::LogVerbatim("MuonSim") << "MuonSensitiveDetector::setDetUnitId :: MuonDetUnitId = "
154 #endif
156 }
157 
158 bool MuonSensitiveDetector::newHit(const G4Step* aStep) {
159  return (!theHit || (aStep->GetTrack()->GetTrackID() != theTrackID) ||
160  (aStep->GetPreStepPoint()->GetPhysicalVolume() != thePV) || newDetUnitId != theDetUnitId);
161 }
162 
163 void MuonSensitiveDetector::createHit(const G4Step* aStep) {
164  Local3DPoint theEntryPoint;
165  Local3DPoint theExitPoint;
166 
167  if (detector->isBarrel()) {
168  // 1 levels up
169  theEntryPoint = cmsUnits(theRotation->transformPoint(InitialStepPositionVsParent(aStep, 1), aStep));
170  theExitPoint = cmsUnits(theRotation->transformPoint(FinalStepPositionVsParent(aStep, 1), aStep));
171  } else if (detector->isEndcap()) {
172  // save local z at current level
173  theEntryPoint = theRotation->transformPoint(InitialStepPosition(aStep, LocalCoordinates), aStep);
174  theExitPoint = theRotation->transformPoint(FinalStepPosition(aStep, LocalCoordinates), aStep);
175  float zentry = theEntryPoint.z();
176  float zexit = theExitPoint.z();
177  // 4 levels up
180  // reset local z from z wrt deep-parent volume to z wrt low-level volume
181  theEntryPoint = cmsUnits(Local3DPoint(tempEntry.x(), tempEntry.y(), zentry));
182  theExitPoint = cmsUnits(Local3DPoint(tempExit.x(), tempExit.y(), zexit));
183  } else {
184  theEntryPoint = cmsUnits(theRotation->transformPoint(InitialStepPosition(aStep, LocalCoordinates), aStep));
185  theExitPoint = cmsUnits(theRotation->transformPoint(FinalStepPosition(aStep, LocalCoordinates), aStep));
186  }
187 
188  const G4Track* theTrack = aStep->GetTrack();
189  const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
190 
191  float thePabs = preStepPoint->GetMomentum().mag() / CLHEP::GeV;
192  float theTof = preStepPoint->GetGlobalTime() / CLHEP::nanosecond;
193  float theEnergyLoss = aStep->GetTotalEnergyDeposit() / CLHEP::GeV;
194  int theParticleType = G4TrackToParticleID::particleID(theTrack);
195 
197  thePV = preStepPoint->GetPhysicalVolume();
198  theTrackID = theTrack->GetTrackID();
199 
200  // convert momentum direction it to local frame
201  const G4ThreeVector& gmd = preStepPoint->GetMomentumDirection();
202  G4ThreeVector lmd = static_cast<const G4TouchableHistory*>(preStepPoint->GetTouchable())
203  ->GetHistory()
204  ->GetTopTransform()
205  .TransformAxis(gmd);
207  lnmd = theRotation->transformPoint(lnmd, aStep);
208  float theThetaAtEntry = lnmd.theta();
209  float thePhiAtEntry = lnmd.phi();
210 
211  theHit = new UpdatablePSimHit(theEntryPoint,
212  theExitPoint,
213  thePabs,
214  theTof,
215  theEnergyLoss,
216  theParticleType,
217  theDetUnitId,
218  theTrackID,
219  theThetaAtEntry,
220  thePhiAtEntry,
221  theG4ProcessTypeEnumerator->processId(theTrack->GetCreatorProcess()));
222 
223  // Make track persistent
224  int thePID = std::abs(theTrack->GetDefinition()->GetPDGEncoding());
225  //---VI - in parameters cut in energy is declared but applied to momentum
226  if (thePabs > ePersistentCutGeV || (thePID == 13 && allMuonsPersistent)) {
228  info->storeTrack(true);
229  }
230 
231 #ifdef EDM_ML_DEBUG
232  edm::LogVerbatim("MuonSim") << "=== NEW Muon hit for " << GetName() << " Edep(GeV)= " << theEnergyLoss << " "
233  << thePV->GetLogicalVolume()->GetName();
234  const G4VProcess* p = aStep->GetPostStepPoint()->GetProcessDefinedStep();
235  const G4VProcess* p2 = aStep->GetPreStepPoint()->GetProcessDefinedStep();
236  G4String sss = "";
237  if (p)
238  sss += " POST PROCESS: " + p->GetProcessName();
239  if (p2)
240  sss += "; PRE PROCESS: " + p2->GetProcessName();
241  if (!sss.empty())
242  edm::LogVerbatim("MuonSim") << sss;
243  edm::LogVerbatim("MuonSim") << " theta= " << theThetaAtEntry << " phi= " << thePhiAtEntry << " Pabs(GeV/c) "
244  << thePabs << " Eloss(GeV)= " << theEnergyLoss << " Tof(ns)= " << theTof
245  << " trackID= " << theTrackID << " detID= " << theDetUnitId << "\n Local: entry "
246  << theEntryPoint << " exit " << theExitPoint << " delta "
247  << (theExitPoint - theEntryPoint) << "\n Global: entry "
248  << aStep->GetPreStepPoint()->GetPosition() << " exit "
249  << aStep->GetPostStepPoint()->GetPosition();
250 #endif
251 }
252 
253 void MuonSensitiveDetector::updateHit(const G4Step* aStep) {
254  Local3DPoint theExitPoint;
255 
256  if (detector->isBarrel()) {
257  theExitPoint = cmsUnits(theRotation->transformPoint(FinalStepPositionVsParent(aStep, 1), aStep));
258  } else if (detector->isEndcap()) {
259  // save local z at current level
260  theExitPoint = theRotation->transformPoint(FinalStepPosition(aStep, LocalCoordinates), aStep);
261  float zexit = theExitPoint.z();
262  Local3DPoint tempExitPoint = theRotation->transformPoint(FinalStepPositionVsParent(aStep, 4), aStep);
263  theExitPoint = cmsUnits(Local3DPoint(tempExitPoint.x(), tempExitPoint.y(), zexit));
264  } else {
265  theExitPoint = cmsUnits(theRotation->transformPoint(FinalStepPosition(aStep, LocalCoordinates), aStep));
266  }
267 
268  float theEnergyLoss = aStep->GetTotalEnergyDeposit() / CLHEP::GeV;
269 
270  theHit->updateExitPoint(theExitPoint);
271  theHit->addEnergyLoss(theEnergyLoss);
272 
273 #ifdef EDM_ML_DEBUG
274  edm::LogVerbatim("MuonSim") << "=== NEW Update muon hit for " << GetName() << " Edep(GeV)= " << theEnergyLoss << " "
275  << thePV->GetLogicalVolume()->GetName();
276  const G4VProcess* p = aStep->GetPostStepPoint()->GetProcessDefinedStep();
277  const G4VProcess* p2 = aStep->GetPreStepPoint()->GetProcessDefinedStep();
278  G4String sss = "";
279  if (p)
280  sss += " POST PROCESS: " + p->GetProcessName();
281  if (p2)
282  sss += "; PRE PROCESS: " + p2->GetProcessName();
283  if (!sss.empty())
284  edm::LogVerbatim("MuonSim") << sss;
285  edm::LogVerbatim("MuonSim") << " delEloss(GeV)= " << theEnergyLoss
286  << " Tof(ns)= " << aStep->GetPreStepPoint()->GetGlobalTime() / CLHEP::nanosecond
287  << " trackID= " << theTrackID << " detID= " << theDetUnitId << " exit " << theExitPoint;
288 #endif
289 }
290 
292  if (theHit) {
293  if (printHits) {
297  }
298  // hit is included into hit collection
300  delete theHit;
301  theHit = nullptr;
302  }
303 }
304 
305 void MuonSensitiveDetector::EndOfEvent(G4HCofThisEvent*) { saveHit(); }
306 
308  if (slaveMuon->name() == hname) {
309  cc = slaveMuon->hits();
310  }
311 }
312 
313 Local3DPoint MuonSensitiveDetector::InitialStepPositionVsParent(const G4Step* currentStep, G4int levelsUp) {
314  const G4StepPoint* preStepPoint = currentStep->GetPreStepPoint();
315  const G4ThreeVector& globalCoordinates = preStepPoint->GetPosition();
316 
317  const G4TouchableHistory* theTouchable = (const G4TouchableHistory*)(preStepPoint->GetTouchable());
318 
319  G4int depth = theTouchable->GetHistory()->GetDepth();
320  G4ThreeVector localCoordinates =
321  theTouchable->GetHistory()->GetTransform(depth - levelsUp).TransformPoint(globalCoordinates);
322 
323  return ConvertToLocal3DPoint(localCoordinates);
324 }
325 
326 Local3DPoint MuonSensitiveDetector::FinalStepPositionVsParent(const G4Step* currentStep, G4int levelsUp) {
327  const G4StepPoint* postStepPoint = currentStep->GetPostStepPoint();
328  const G4StepPoint* preStepPoint = currentStep->GetPreStepPoint();
329  const G4ThreeVector& globalCoordinates = postStepPoint->GetPosition();
330 
331  const G4TouchableHistory* theTouchable = (const G4TouchableHistory*)(preStepPoint->GetTouchable());
332 
333  G4int depth = theTouchable->GetHistory()->GetDepth();
334  G4ThreeVector localCoordinates =
335  theTouchable->GetHistory()->GetTransform(depth - levelsUp).TransformPoint(globalCoordinates);
336 
337  return ConvertToLocal3DPoint(localCoordinates);
338 }
personalPlayback.level
level
Definition: personalPlayback.py:22
G4ProcessTypeEnumerator::processId
unsigned int processId(const G4VProcess *p) const
Definition: G4ProcessTypeEnumerator.h:11
MuonSensitiveDetector::theDetUnitId
uint32_t theDetUnitId
Definition: MuonSensitiveDetector.h:86
MuonGeometryConstants
Definition: MuonGeometryConstants.h:20
MuonSubDetector
Definition: MuonSubDetector.h:19
SimTrackManager
Definition: SimTrackManager.h:35
MuonSensitiveDetector::slaveMuon
MuonSlaveSD * slaveMuon
Definition: MuonSensitiveDetector.h:65
MuonSensitiveDetector::newHit
bool newHit(const G4Step *)
Definition: MuonSensitiveDetector.cc:158
mps_fire.i
i
Definition: mps_fire.py:428
SimHitPrinter::startNewSimHit
void startNewSimHit(std::string)
Definition: SimHitPrinter.cc:31
MuonSensitiveDetector::theHit
UpdatablePSimHit * theHit
Definition: MuonSensitiveDetector.h:85
MuonG4Numbering.h
MuonSensitiveDetector::theTrackID
int theTrackID
Definition: MuonSensitiveDetector.h:88
MessageLogger.h
MuonSlaveSD
Definition: MuonSlaveSD.h:26
MuonEndcapFrameRotation.h
MuonSensitiveDetector::InitialStepPositionVsParent
Local3DPoint InitialStepPositionVsParent(const G4Step *currentStep, G4int levelsUp)
Definition: MuonSensitiveDetector.cc:313
MuonSensitiveDetector::newDetUnitId
uint32_t newDetUnitId
Definition: MuonSensitiveDetector.h:87
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
MuonSensitiveDetector::ePersistentCutGeV
float ePersistentCutGeV
Definition: MuonSensitiveDetector.h:94
SensitiveTkDetector
Definition: SensitiveTkDetector.h:8
PV3DBase::theta
Geom::Theta< T > theta() const
Definition: PV3DBase.h:72
MuonGeometryConstants.h
MuonSensitiveDetector::clearHits
void clearHits() override
Definition: MuonSensitiveDetector.cc:111
SimHitPrinter::printId
void printId(int) const
Definition: SimHitPrinter.cc:51
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
MuonSubDetector::name
std::string name()
Definition: MuonSubDetector.cc:31
constants
PSimHit::entryPoint
Local3DPoint entryPoint() const
Entry point in the local Det frame.
Definition: PSimHit.h:43
G4ProcessTypeEnumerator
Definition: G4ProcessTypeEnumerator.h:6
G4TrackToParticleID::particleID
static int particleID(const G4Track *)
Definition: G4TrackToParticleID.cc:7
MuonRPCFrameRotation
Definition: MuonRPCFrameRotation.h:22
MuonSensitiveDetector::thePV
const G4VPhysicalVolume * thePV
Definition: MuonSensitiveDetector.h:84
MuonG4Numbering
Definition: MuonG4Numbering.h:26
MuonOffsetMap
Definition: MuonOffsetMap.h:9
MuonSensitiveDetector::thePrinter
SimHitPrinter * thePrinter
Definition: MuonSensitiveDetector.h:91
PSimHit::detUnitId
unsigned int detUnitId() const
Definition: PSimHit.h:97
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
MuonEndcapFrameRotation
Definition: MuonEndcapFrameRotation.h:18
MuonFrameRotation::transformPoint
virtual Local3DPoint transformPoint(const Local3DPoint &, const G4Step *) const
Definition: MuonFrameRotation.cc:4
MuonSensitiveDetector::FinalStepPositionVsParent
Local3DPoint FinalStepPositionVsParent(const G4Step *currentStep, G4int levelsUp)
Definition: MuonSensitiveDetector.cc:326
PSimHit::exitPoint
Local3DPoint exitPoint() const
Exit point in the local Det frame.
Definition: PSimHit.h:46
MuonSensitiveDetector::theRotation
const MuonFrameRotation * theRotation
Definition: MuonSensitiveDetector.h:68
MuonSensitiveDetector::numbering
MuonSimHitNumberingScheme * numbering
Definition: MuonSensitiveDetector.h:66
G4ProcessTypeEnumerator.h
MuonSimHitNumberingScheme::baseNumberToUnitNumber
int baseNumberToUnitNumber(const MuonBaseNumber &) const override
Definition: MuonSimHitNumberingScheme.cc:28
MuonSubDetector.h
p2
double p2[4]
Definition: TauolaWrapper.h:90
MuonSensitiveDetector::detector
MuonSubDetector * detector
Definition: MuonSensitiveDetector.h:67
MuonSensitiveDetector::EndOfEvent
void EndOfEvent(G4HCofThisEvent *) override
Definition: MuonSensitiveDetector.cc:305
SensitiveDetectorCatalog
Definition: SensitiveDetectorCatalog.h:10
MuonSensitiveDetector::fillHits
void fillHits(edm::PSimHitContainer &, const std::string &) override
Definition: MuonSensitiveDetector.cc:307
MuonSubDetector::isBarrel
bool isBarrel()
Definition: MuonSubDetector.cc:21
Point3DBase< float, LocalTag >
SensitiveDetector::FinalStepPosition
Local3DPoint FinalStepPosition(const G4Step *step, coordinates) const
Definition: SensitiveDetector.cc:66
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
MuonSensitiveDetector::~MuonSensitiveDetector
~MuonSensitiveDetector() override
Definition: MuonSensitiveDetector.cc:94
MuonME0FrameRotation
Definition: MuonME0FrameRotation.h:22
SensitiveDetector::InitialStepPosition
Local3DPoint InitialStepPosition(const G4Step *step, coordinates) const
Definition: SensitiveDetector.cc:54
UpdatablePSimHit::updateExitPoint
void updateExitPoint(const Local3DPoint &exit)
Definition: UpdatablePSimHit.h:28
TrackingSlaveSD::Initialize
virtual void Initialize()
Definition: TrackingSlaveSD.cc:17
MuonSensitiveDetector::update
void update(const BeginOfEvent *) override
This routine will be called when the appropriate signal arrives.
Definition: MuonSensitiveDetector.cc:103
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TrackingSlaveSD::processHits
virtual bool processHits(const PSimHit &)
Definition: TrackingSlaveSD.cc:52
UpdatablePSimHit
Definition: UpdatablePSimHit.h:12
MuonSubDetector::isME0
bool isME0()
Definition: MuonSubDetector.cc:29
GeV
const double GeV
Definition: MathUtil.h:16
UpdatablePSimHit::addEnergyLoss
void addEnergyLoss(float eloss)
Definition: UpdatablePSimHit.h:34
MuonSensitiveDetector::updateHit
void updateHit(const G4Step *)
Definition: MuonSensitiveDetector.cc:253
MuonBaseNumber.h
SimHitPrinter::printLocal
void printLocal(LocalPoint, LocalPoint) const
Definition: SimHitPrinter.cc:81
MuonSubDetector::isEndcap
bool isEndcap()
Definition: MuonSubDetector.cc:23
MuonSensitiveDetector::allMuonsPersistent
bool allMuonsPersistent
Definition: MuonSensitiveDetector.h:95
MuonSubDetector::isRPC
bool isRPC()
Definition: MuonSubDetector.cc:25
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
SensitiveDetector::ConvertToLocal3DPoint
Local3DPoint ConvertToLocal3DPoint(const G4ThreeVector &point) const
Definition: SensitiveDetector.h:46
TrackInformation
Definition: TrackInformation.h:12
SensitiveDetector::LocalCoordinates
Definition: SensitiveDetector.h:38
UpdatablePSimHit.h
BeginOfEvent
Definition: BeginOfEvent.h:6
MuonSensitiveDetector.h
TrackInformation.h
cc
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonG4Numbering::PhysicalVolumeToBaseNumber
MuonBaseNumber PhysicalVolumeToBaseNumber(const G4Step *aStep)
Definition: MuonG4Numbering.cc:47
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:33
PV3DBase::mag
T mag() const
Definition: PV3DBase.h:64
MuonBaseNumber
Definition: MuonBaseNumber.h:21
SimHitPrinter.h
SensitiveDetector::cmsTrackInformation
TrackInformation * cmsTrackInformation(const G4Track *aTrack)
Definition: SensitiveDetector.cc:92
G4TrackToParticleID.h
MuonSubDetector::isGEM
bool isGEM()
Definition: MuonSubDetector.cc:27
MuonSensitiveDetector::saveHit
void saveHit()
Definition: MuonSensitiveDetector.cc:291
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
MuonSensitiveDetector::printHits
bool printHits
Definition: MuonSensitiveDetector.h:90
dd4hep
Definition: DDPlugins.h:8
MuonSensitiveDetector::ProcessHits
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override
Definition: MuonSensitiveDetector.cc:118
SensitiveDetector::WorldCoordinates
Definition: SensitiveDetector.h:38
MuonSimHitNumberingScheme
Definition: MuonSimHitNumberingScheme.h:19
MuonFrameRotation
Definition: MuonFrameRotation.h:17
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MuonSimHitNumberingScheme.h
MuonGEMFrameRotation
Definition: MuonGEMFrameRotation.h:20
TrackingSlaveSD::name
std::string name() const
Definition: TrackingSlaveSD.h:21
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
TrackingSlaveSD::hits
std::vector< PSimHit > & hits()
Definition: TrackingSlaveSD.h:22
MuonSensitiveDetector::cmsUnits
Local3DPoint cmsUnits(const Local3DPoint &v)
Definition: MuonSensitiveDetector.h:63
SimHitPrinter
Definition: SimHitPrinter.h:23
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
MuonSensitiveDetector::theManager
const SimTrackManager * theManager
Definition: MuonSensitiveDetector.h:99
MuonSensitiveDetector::g4numbering
MuonG4Numbering * g4numbering
Definition: MuonSensitiveDetector.h:69
MuonGEMFrameRotation.h
edm::Log
Definition: MessageLogger.h:70
MuonSensitiveDetector::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition: MuonSensitiveDetector.cc:139
GlobalPoint.h
MuonRPCFrameRotation.h
PV3DBase::phi
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
MuonME0FrameRotation.h
MuonSensitiveDetector::createHit
void createHit(const G4Step *)
Definition: MuonSensitiveDetector.cc:163
MuonSlaveSD.h
MuonSensitiveDetector::MuonSensitiveDetector
MuonSensitiveDetector(const std::string &, const MuonOffsetMap *, const MuonGeometryConstants &, const SensitiveDetectorCatalog &, double ePersistentCutGeV, bool allMuonsPersistent, bool aPrintHits, bool dd4hep, const SimTrackManager *)
Definition: MuonSensitiveDetector.cc:35
Local3DPoint
Point3DBase< float, LocalTag > Local3DPoint
Definition: LocalPoint.h:9
MuonSensitiveDetector::theG4ProcessTypeEnumerator
G4ProcessTypeEnumerator * theG4ProcessTypeEnumerator
Definition: MuonSensitiveDetector.h:97