CMS 3D CMS Logo

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