CMS 3D CMS Logo

TkAccumulatingSensitiveDetector.cc
Go to the documentation of this file.
2 
5 
8 
14 
18 
21 
25 
26 #include "G4Track.hh"
27 #include "G4StepPoint.hh"
28 #include "G4VProcess.hh"
29 
30 #include "G4SystemOfUnits.hh"
31 
32 #include <vector>
33 #include <iostream>
34 
36 
37 //#define FAKEFRAMEROTATION
38 
40  static thread_local TrackerG4SimHitNumberingScheme s_scheme(det);
41  return s_scheme;
42 }
43 
45  const edm::EventSetup& es,
46  const SensitiveDetectorCatalog& clg,
47  edm::ParameterSet const& p,
48  const SimTrackManager* manager)
49  : SensitiveTkDetector(name, es, clg, p),
50  theManager(manager),
51  rTracker(1200. * CLHEP::mm),
52  zTracker(3000. * CLHEP::mm),
53  mySimHit(nullptr),
54  lastId(0),
55  lastTrack(0),
56  oldVolume(nullptr),
57  px(0.0f),
58  py(0.0f),
59  pz(0.0f),
60  eventno(0),
61  pname("") {
62  edm::ParameterSet m_TrackerSD = p.getParameter<edm::ParameterSet>("TrackerSD");
63  allowZeroEnergyLoss = m_TrackerSD.getParameter<bool>("ZeroEnergyLoss");
64  neverAccumulate = m_TrackerSD.getParameter<bool>("NeverAccumulate");
65  printHits = m_TrackerSD.getParameter<bool>("PrintHits");
66  theTofLimit = m_TrackerSD.getParameter<double>("ElectronicSigmaInNanoSeconds") * 3 * CLHEP::ns; // 3 sigma
67  energyCut =
68  m_TrackerSD.getParameter<double>("EnergyThresholdForPersistencyInGeV") * CLHEP::GeV; //default must be 0.5
70  m_TrackerSD.getParameter<double>("EnergyThresholdForHistoryInGeV") * CLHEP::GeV; //default must be 0.05
72 
73  // No Rotation given in input, automagically choose one based upon the name
74  std::string rotType;
75  theRotation.reset(new TrackerFrameRotation());
76  rotType = "TrackerFrameRotation";
77 
78 #ifdef FAKEFRAMEROTATION
79  theRotation.reset(new FakeFrameRotation());
80  rotType = "FakeFrameRotation";
81 #endif
82 
83  edm::LogVerbatim("TrackerSim") << " TkAccumulatingSensitiveDetector: "
84  << " Criteria for Saving Tracker SimTracks: \n"
85  << " History: " << energyHistoryCut << " MeV; Persistency: " << energyCut
86  << " MeV; TofLimit: " << theTofLimit << " ns"
87  << "\n FrameRotation type " << rotType << " rTracker(cm)= " << rTracker / CLHEP::cm
88  << " zTracker(cm)= " << zTracker / CLHEP::cm
89  << " allowZeroEnergyLoss: " << allowZeroEnergyLoss
90  << " neverAccumulate: " << neverAccumulate << " printHits: " << printHits;
91 
92  slaveLowTof.reset(new TrackingSlaveSD(name + "LowTof"));
93  slaveHighTof.reset(new TrackingSlaveSD(name + "HighTof"));
94 
95  std::vector<std::string> temp;
96  temp.push_back(slaveLowTof.get()->name());
97  temp.push_back(slaveHighTof.get()->name());
98  setNames(temp);
99 
101  theNumberingScheme = nullptr;
102 }
103 
105 
106 bool TkAccumulatingSensitiveDetector::ProcessHits(G4Step* aStep, G4TouchableHistory*) {
107  LogDebug("TrackerSimDebug") << " Entering a new Step " << aStep->GetTotalEnergyDeposit() << " "
108  << aStep->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume()->GetName();
109 
110  if (aStep->GetTotalEnergyDeposit() > 0. || allowZeroEnergyLoss) {
111  if (!mySimHit) {
112  createHit(aStep);
113  } else if (neverAccumulate || newHit(aStep)) {
114  sendHit();
115  createHit(aStep);
116  } else {
117  updateHit(aStep);
118  }
119  return true;
120  }
121  return false;
122 }
123 
125  return theNumberingScheme->g4ToNumberingScheme(step->GetPreStepPoint()->GetTouchable());
126 }
127 
129  const G4Track* gTrack = (*bot)();
130 
131 #ifdef DUMPPROCESSES
132  if (gTrack->GetCreatorProcess()) {
133  edm::LogVerbatim("TrackerSim") << " -> PROCESS CREATOR : " << gTrack->GetCreatorProcess()->GetProcessName();
134  } else {
135  edm::LogVerbatim("TrackerSim") << " -> No Creator process";
136  }
137 #endif
138 
139  //
140  //Position
141  //
142  const G4ThreeVector& pos = gTrack->GetPosition();
143  LogDebug("TrackerSimDebug") << " update(..) of " << gTrack->GetDefinition()->GetParticleName()
144  << " trackID= " << gTrack->GetTrackID() << " E(MeV)= " << gTrack->GetKineticEnergy()
145  << " Ecut= " << energyCut << " R(mm)= " << pos.perp() << " Z(mm)= " << pos.z();
146 
147  //
148  // Check if in Tracker Volume
149  //
150  if (pos.x() * pos.x() + pos.y() * pos.y() < rTracker2 && std::abs(pos.z()) < zTracker) {
151  //
152  // inside the Tracker
153  //
154  TrackInformation* info = nullptr;
155  if (gTrack->GetKineticEnergy() > energyCut) {
156  info = cmsTrackInformation(gTrack);
157  info->storeTrack(true);
158  }
159  //
160  // Save History?
161  //
162  if (gTrack->GetKineticEnergy() > energyHistoryCut) {
163  if (!info) {
164  info = cmsTrackInformation(gTrack);
165  }
166  info->putInHistory();
167  LogDebug("TrackerSimDebug") << " Track inside the tracker selected for HISTORY"
168  << " Track ID= " << gTrack->GetTrackID();
169  }
170  }
171 }
172 
174  if (mySimHit == nullptr)
175  return;
176  if (printHits) {
177  TkSimHitPrinter thePrinter("TkHitPositionOSCAR.dat");
178  thePrinter.startNewSimHit(GetName(),
179  oldVolume->GetLogicalVolume()->GetName(),
180  mySimHit->detUnitId(),
181  mySimHit->trackId(),
182  lastTrack,
183  eventno);
184  thePrinter.printLocal(mySimHit->entryPoint(), mySimHit->exitPoint());
187  thePrinter.printGlobalMomentum(px, py, pz);
188  LogDebug("TrackerSimDebug") << " Storing PSimHit: " << mySimHit->detUnitId() << " " << mySimHit->trackId() << " "
189  << mySimHit->energyLoss() << " " << mySimHit->entryPoint() << " "
190  << mySimHit->exitPoint();
191  }
192 
193  if (mySimHit->timeOfFlight() < theTofLimit) {
194  slaveLowTof.get()->processHits(*mySimHit); // implicit conversion (slicing) to PSimHit!!!
195  } else {
196  slaveHighTof.get()->processHits(*mySimHit); // implicit conversion (slicing) to PSimHit!!!
197  }
198  //
199  // clean up
200  delete mySimHit;
201  mySimHit = nullptr;
202  lastTrack = 0;
203  lastId = 0;
204 }
205 
207  // VI: previous hit should be already deleted
208  // in past here was a check if a hit is inside a sensitive detector,
209  // this is not needed, because call to senstive detector happens
210  // only inside the volume
211  const G4Track* theTrack = aStep->GetTrack();
212  Local3DPoint theExitPoint = theRotation.get()->transformPoint(LocalPostStepPosition(aStep));
213  Local3DPoint theEntryPoint;
214  //
215  // Check particle type - for gamma and neutral hadrons energy deposition
216  // should be local (VI)
217  //
218  if (0.0 == theTrack->GetDefinition()->GetPDGCharge()) {
219  theEntryPoint = theExitPoint;
220  } else {
221  theEntryPoint = theRotation.get()->transformPoint(LocalPreStepPosition(aStep));
222  }
223 
224  //
225  // This allows to send he skipEvent if it is outside!
226  //
227  const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
228  float thePabs = preStepPoint->GetMomentum().mag() / GeV;
229  float theTof = preStepPoint->GetGlobalTime() / nanosecond;
230  float theEnergyLoss = aStep->GetTotalEnergyDeposit() / GeV;
231  int theParticleType = G4TrackToParticleID::particleID(theTrack);
232  uint32_t theDetUnitId = setDetUnitId(aStep);
233  int theTrackID = theTrack->GetTrackID();
234  if (theDetUnitId == 0) {
235  edm::LogWarning("TkAccumulatingSensitiveDetector::createHit") << " theDetUnitId is not valid for " << GetName();
236  throw cms::Exception("TkAccumulatingSensitiveDetector::createHit")
237  << "cannot get theDetUnitId for G4Track " << theTrackID;
238  }
239 
240  // To whom assign the Hit?
241  // First iteration: if the track is to be stored, use the current number;
242  // otherwise, get to the mother
243  unsigned int theTrackIDInsideTheSimHit = theTrackID;
244 
245  const TrackInformation* temp = cmsTrackInformation(theTrack);
246  if (!temp->storeTrack()) {
247  // Go to the mother!
248  theTrackIDInsideTheSimHit = theTrack->GetParentID();
249  LogDebug("TrackerSimDebug") << " TkAccumulatingSensitiveDetector::createHit(): setting the TrackID from "
250  << theTrackIDInsideTheSimHit << " to the mother one " << theTrackIDInsideTheSimHit
251  << " " << theEnergyLoss;
252  } else {
253  LogDebug("TrackerSimDebug") << " TkAccumulatingSensitiveDetector:createHit(): leaving the current TrackID "
254  << theTrackIDInsideTheSimHit;
255  }
256 
257  const G4ThreeVector& gmd = preStepPoint->GetMomentumDirection();
258  // convert it to local frame
259  G4ThreeVector lmd =
260  ((G4TouchableHistory*)(preStepPoint->GetTouchable()))->GetHistory()->GetTopTransform().TransformAxis(gmd);
261  Local3DPoint lnmd = theRotation.get()->transformPoint(ConvertToLocal3DPoint(lmd));
262  float theThetaAtEntry = lnmd.theta();
263  float thePhiAtEntry = lnmd.phi();
264 
265  mySimHit = new UpdatablePSimHit(theEntryPoint,
266  theExitPoint,
267  thePabs,
268  theTof,
269  theEnergyLoss,
270  theParticleType,
271  theDetUnitId,
272  theTrackIDInsideTheSimHit,
273  theThetaAtEntry,
274  thePhiAtEntry,
275  theG4ProcTypeEnumerator.get()->processId(theTrack->GetCreatorProcess()));
276  lastId = theDetUnitId;
277  lastTrack = theTrackID;
278 
279  // only for debugging
280  if (printHits) {
281  // point on Geant4 unit (mm)
282  globalEntryPoint = ConvertToLocal3DPoint(preStepPoint->GetPosition());
283  globalExitPoint = ConvertToLocal3DPoint(aStep->GetPostStepPoint()->GetPosition());
284  // in CMS unit (GeV)
285  px = preStepPoint->GetMomentum().x() / CLHEP::GeV;
286  py = preStepPoint->GetMomentum().y() / CLHEP::GeV;
287  pz = preStepPoint->GetMomentum().z() / CLHEP::GeV;
288  oldVolume = preStepPoint->GetPhysicalVolume();
289  pname = theTrack->GetDefinition()->GetParticleName();
290  LogDebug("TrackerSimDebug") << " Created PSimHit: " << pname << " " << mySimHit->detUnitId() << " "
291  << mySimHit->trackId() << " " << theTrackID
292  << " p= " << aStep->GetPreStepPoint()->GetMomentum().mag() << " "
293  << mySimHit->energyLoss() << " " << mySimHit->entryPoint() << " "
294  << mySimHit->exitPoint();
295  }
296 }
297 
299  // VI: in past here was a check if a hit is inside a sensitive detector,
300  // this is not needed, because call to senstive detector happens
301  // only inside the volume
302  Local3DPoint theExitPoint = theRotation.get()->transformPoint(LocalPostStepPosition(aStep));
303  float theEnergyLoss = aStep->GetTotalEnergyDeposit() / GeV;
304  mySimHit->setExitPoint(theExitPoint);
305  mySimHit->addEnergyLoss(theEnergyLoss);
306  if (printHits) {
307  globalExitPoint = ConvertToLocal3DPoint(aStep->GetPostStepPoint()->GetPosition());
308  LogDebug("TrackerSimDebug") << " updateHit: for " << aStep->GetTrack()->GetDefinition()->GetParticleName()
309  << " trackID= " << aStep->GetTrack()->GetTrackID() << " deltaEloss= " << theEnergyLoss
310  << "\n Updated PSimHit: " << mySimHit->detUnitId() << " " << mySimHit->trackId() << " "
311  << mySimHit->energyLoss() << " " << mySimHit->entryPoint() << " "
312  << mySimHit->exitPoint();
313  }
314 }
315 
316 bool TkAccumulatingSensitiveDetector::newHit(const G4Step* aStep) {
317  const G4Track* theTrack = aStep->GetTrack();
318 
319  // for neutral particles do not merge hits (V.I.)
320  if (0.0 == theTrack->GetDefinition()->GetPDGCharge())
321  return true;
322 
323  uint32_t theDetUnitId = setDetUnitId(aStep);
324  int theTrackID = theTrack->GetTrackID();
325 
326  LogDebug("TrackerSimDebug") << "newHit: OLD(detID,trID) = (" << lastId << "," << lastTrack << "), NEW = ("
327  << theDetUnitId << "," << theTrackID << ") Step length(mm)= " << aStep->GetStepLength()
328  << " Edep= " << aStep->GetTotalEnergyDeposit()
329  << " p= " << aStep->GetPreStepPoint()->GetMomentum().mag();
330  return ((theTrackID == lastTrack) && (lastId == theDetUnitId) && closeHit(aStep)) ? false : true;
331 }
332 
333 bool TkAccumulatingSensitiveDetector::closeHit(const G4Step* aStep) {
334  const float tolerance2 = 0.0025f; // (0.5 mm)^2 are allowed between entry and exit
335  Local3DPoint theEntryPoint = theRotation.get()->transformPoint(LocalPreStepPosition(aStep));
336  LogDebug("TrackerSimDebug") << " closeHit: distance = " << (mySimHit->exitPoint() - theEntryPoint).mag();
337 
338  return ((mySimHit->exitPoint() - theEntryPoint).mag2() < tolerance2) ? true : false;
339 }
340 
342  LogDebug("TrackerSimDebug") << " Saving the last hit in a ROU " << GetName();
343  if (mySimHit != nullptr)
344  sendHit();
345 }
346 
348  clearHits();
349  eventno = (*i)()->GetEventID();
350  delete mySimHit;
351  mySimHit = nullptr;
352 }
353 
356  const edm::EventSetup* es = (*i)();
357  es->get<IdealGeometryRecord>().get(pDD);
358 
360 }
361 
363  slaveLowTof.get()->Initialize();
364  slaveHighTof.get()->Initialize();
365 }
366 
368  if (slaveLowTof.get()->name() == hname) {
369  cc = slaveLowTof.get()->hits();
370  } else if (slaveHighTof.get()->name() == hname) {
371  cc = slaveHighTof.get()->hits();
372  }
373 }
TkAccumulatingSensitiveDetector::sendHit
void sendHit()
Definition: TkAccumulatingSensitiveDetector.cc:173
TkAccumulatingSensitiveDetector::printHits
bool printHits
Definition: TkAccumulatingSensitiveDetector.h:67
TkAccumulatingSensitiveDetector::energyCut
float energyCut
Definition: TkAccumulatingSensitiveDetector.h:73
TkAccumulatingSensitiveDetector::lastId
uint32_t lastId
Definition: TkAccumulatingSensitiveDetector.h:78
SimTrackManager
Definition: SimTrackManager.h:35
TkAccumulatingSensitiveDetector::EndOfEvent
void EndOfEvent(G4HCofThisEvent *) override
Definition: TkAccumulatingSensitiveDetector.cc:341
TkAccumulatingSensitiveDetector::createHit
void createHit(const G4Step *)
Definition: TkAccumulatingSensitiveDetector.cc:206
PSimHit::timeOfFlight
float timeOfFlight() const
Definition: PSimHit.h:73
mps_fire.i
i
Definition: mps_fire.py:355
TkAccumulatingSensitiveDetector::px
float px
Definition: TkAccumulatingSensitiveDetector.h:85
ESTransientHandle.h
MessageLogger.h
funct::false
false
Definition: Factorize.h:34
TkSimHitPrinter::startNewSimHit
void startNewSimHit(const std::string &, const std::string &, int, int, int, int)
Definition: TkSimHitPrinter.cc:19
TkAccumulatingSensitiveDetector::zTracker
double zTracker
Definition: TkAccumulatingSensitiveDetector.h:71
ESHandle.h
step
step
Definition: StallMonitor.cc:94
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
TkAccumulatingSensitiveDetector::theTofLimit
float theTofLimit
Definition: TkAccumulatingSensitiveDetector.h:72
FakeFrameRotation
Definition: FakeFrameRotation.h:12
TkAccumulatingSensitiveDetector::theNumberingScheme
TrackerG4SimHitNumberingScheme * theNumberingScheme
Definition: TkAccumulatingSensitiveDetector.h:65
TkAccumulatingSensitiveDetector::slaveHighTof
std::unique_ptr< TrackingSlaveSD > slaveHighTof
Definition: TkAccumulatingSensitiveDetector.h:62
SensitiveTkDetector
Definition: SensitiveTkDetector.h:8
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
UpdatablePSimHit::setExitPoint
void setExitPoint(const Local3DPoint &exit)
Definition: UpdatablePSimHit.h:29
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
PV3DBase::theta
Geom::Theta< T > theta() const
Definition: PV3DBase.h:72
TkAccumulatingSensitiveDetector::pname
std::string pname
Definition: TkAccumulatingSensitiveDetector.h:87
pos
Definition: PixelAliasList.h:18
TkAccumulatingSensitiveDetector::slaveLowTof
std::unique_ptr< TrackingSlaveSD > slaveLowTof
Definition: TkAccumulatingSensitiveDetector.h:61
TkAccumulatingSensitiveDetector::energyHistoryCut
float energyHistoryCut
Definition: TkAccumulatingSensitiveDetector.h:74
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
TrackerFrameRotation
Definition: TrackerFrameRotation.h:12
TkAccumulatingSensitiveDetector::lastTrack
int lastTrack
Definition: TkAccumulatingSensitiveDetector.h:79
TrackingSlaveSD.h
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
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
TkAccumulatingSensitiveDetector::newHit
bool newHit(const G4Step *)
Definition: TkAccumulatingSensitiveDetector.cc:316
TrackerFrameRotation.h
TkAccumulatingSensitiveDetector.h
PSimHit::detUnitId
unsigned int detUnitId() const
Definition: PSimHit.h:97
TkAccumulatingSensitiveDetector::theRotation
std::unique_ptr< FrameRotation > theRotation
Definition: TkAccumulatingSensitiveDetector.h:63
PSimHit::pabs
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition: PSimHit.h:67
TkAccumulatingSensitiveDetector::closeHit
bool closeHit(const G4Step *)
Definition: TkAccumulatingSensitiveDetector.cc:333
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
PSimHit::exitPoint
Local3DPoint exitPoint() const
Exit point in the local Det frame.
Definition: PSimHit.h:46
TkAccumulatingSensitiveDetector::py
float py
Definition: TkAccumulatingSensitiveDetector.h:85
TkAccumulatingSensitiveDetector::globalEntryPoint
Local3DPoint globalEntryPoint
Definition: TkAccumulatingSensitiveDetector.h:82
TkAccumulatingSensitiveDetector::~TkAccumulatingSensitiveDetector
~TkAccumulatingSensitiveDetector() override
Definition: TkAccumulatingSensitiveDetector.cc:104
G4ProcessTypeEnumerator.h
TkAccumulatingSensitiveDetector::setDetUnitId
uint32_t setDetUnitId(const G4Step *) override
Definition: TkAccumulatingSensitiveDetector.cc:124
TkAccumulatingSensitiveDetector::globalExitPoint
Local3DPoint globalExitPoint
Definition: TkAccumulatingSensitiveDetector.h:83
edm::ESHandle< GeometricDet >
GeometricDet
Definition: GeometricDet.h:30
TkAccumulatingSensitiveDetector::ProcessHits
bool ProcessHits(G4Step *, G4TouchableHistory *) override
Definition: TkAccumulatingSensitiveDetector.cc:106
BeginOfTrack
Definition: BeginOfTrack.h:6
SensitiveDetectorCatalog
Definition: SensitiveDetectorCatalog.h:10
BeginOfJob
Definition: BeginOfJob.h:8
Point3DBase< float, LocalTag >
unpackData-CaloStage2.pname
pname
Definition: unpackData-CaloStage2.py:76
FrameRotation.h
SensitiveDetector::LocalPreStepPosition
Local3DPoint LocalPreStepPosition(const G4Step *step) const
Definition: SensitiveDetector.cc:82
TkSimHitPrinter::printGlobal
void printGlobal(const Local3DPoint &, const Local3DPoint &) const
Definition: TkSimHitPrinter.cc:28
CLHEP
Definition: CocoaGlobals.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogWarning
Definition: MessageLogger.h:141
TrackerG4SimHitNumberingScheme
Definition: TrackerG4SimHitNumberingScheme.h:12
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
edm::ParameterSet
Definition: ParameterSet.h:36
numberingScheme
static TrackerG4SimHitNumberingScheme & numberingScheme(const GeometricDet &det)
Definition: TkAccumulatingSensitiveDetector.cc:39
TkAccumulatingSensitiveDetector::fillHits
void fillHits(edm::PSimHitContainer &, const std::string &) override
Definition: TkAccumulatingSensitiveDetector.cc:367
UpdatablePSimHit
Definition: UpdatablePSimHit.h:12
GeV
const double GeV
Definition: MathUtil.h:16
TkAccumulatingSensitiveDetector::clearHits
void clearHits() override
Definition: TkAccumulatingSensitiveDetector.cc:362
UpdatablePSimHit::addEnergyLoss
void addEnergyLoss(float eloss)
Definition: UpdatablePSimHit.h:34
TrackerG4SimHitNumberingScheme::g4ToNumberingScheme
unsigned int g4ToNumberingScheme(const G4VTouchable *)
Definition: TrackerG4SimHitNumberingScheme.cc:81
SensitiveDetector::ConvertToLocal3DPoint
Local3DPoint ConvertToLocal3DPoint(const G4ThreeVector &point) const
Definition: SensitiveDetector.h:56
TrackInformation
Definition: TrackInformation.h:8
mag2
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
Definition: Basic3DVectorLD.h:124
edm::LogVerbatim
Definition: MessageLogger.h:297
UpdatablePSimHit.h
TrackerG4SimHitNumberingScheme.h
TkAccumulatingSensitiveDetector::neverAccumulate
bool neverAccumulate
Definition: TkAccumulatingSensitiveDetector.h:68
TrackingSlaveSD
Definition: TrackingSlaveSD.h:11
BeginOfEvent
Definition: BeginOfEvent.h:6
IdealGeometryRecord.h
TkAccumulatingSensitiveDetector::update
void update(const BeginOfEvent *) override
This routine will be called when the appropriate signal arrives.
Definition: TkAccumulatingSensitiveDetector.cc:347
edm::EventSetup
Definition: EventSetup.h:57
TrackInformation.h
TkSimHitPrinter::printLocal
void printLocal(const Local3DPoint &, const Local3DPoint &) const
Definition: TkSimHitPrinter.cc:23
TkAccumulatingSensitiveDetector::eventno
int eventno
Definition: TkAccumulatingSensitiveDetector.h:86
GeometricDet.h
get
#define get
TkSimHitPrinter::printHitData
void printHitData(const std::string &, float, float, float) const
Definition: TkSimHitPrinter.cc:33
cc
FakeFrameRotation.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
SensitiveDetector::setNames
void setNames(const std::vector< std::string > &)
Definition: SensitiveDetector.cc:105
mag
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Definition: Basic3DVectorLD.h:127
SensitiveDetector::cmsTrackInformation
TrackInformation * cmsTrackInformation(const G4Track *aTrack)
Definition: SensitiveDetector.cc:96
G4TrackToParticleID.h
TkSimHitPrinter.h
TkAccumulatingSensitiveDetector::theG4ProcTypeEnumerator
std::unique_ptr< const G4ProcessTypeEnumerator > theG4ProcTypeEnumerator
Definition: TkAccumulatingSensitiveDetector.h:64
TkAccumulatingSensitiveDetector::allowZeroEnergyLoss
bool allowZeroEnergyLoss
Definition: TkAccumulatingSensitiveDetector.h:66
TkAccumulatingSensitiveDetector::mySimHit
UpdatablePSimHit * mySimHit
Definition: TkAccumulatingSensitiveDetector.h:77
LocalPoint.h
TkAccumulatingSensitiveDetector::updateHit
void updateHit(const G4Step *)
Definition: TkAccumulatingSensitiveDetector.cc:298
Exception
Definition: hltDiff.cc:246
SensitiveDetector::LocalPostStepPosition
Local3DPoint LocalPostStepPosition(const G4Step *step) const
Definition: SensitiveDetector.cc:89
PSimHit::energyLoss
float energyLoss() const
The energy deposit in the PSimHit, in ???.
Definition: PSimHit.h:79
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
EventSetup.h
TkSimHitPrinter::printGlobalMomentum
void printGlobalMomentum(float, float, float) const
Definition: TkSimHitPrinter.cc:36
PSimHit::trackId
unsigned int trackId() const
Definition: PSimHit.h:106
TkAccumulatingSensitiveDetector::rTracker2
double rTracker2
Definition: TkAccumulatingSensitiveDetector.h:69
TkSimHitPrinter
Definition: TkSimHitPrinter.h:12
TkAccumulatingSensitiveDetector::pz
float pz
Definition: TkAccumulatingSensitiveDetector.h:85
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
edm::PSimHitContainer
std::vector< PSimHit > PSimHitContainer
Definition: PSimHitContainer.h:11
TkAccumulatingSensitiveDetector::TkAccumulatingSensitiveDetector
TkAccumulatingSensitiveDetector(const std::string &, const edm::EventSetup &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
Definition: TkAccumulatingSensitiveDetector.cc:44
TkAccumulatingSensitiveDetector::oldVolume
const G4VPhysicalVolume * oldVolume
Definition: TkAccumulatingSensitiveDetector.h:84
PV3DBase::phi
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
IdealGeometryRecord
Definition: IdealGeometryRecord.h:27
TkAccumulatingSensitiveDetector::rTracker
double rTracker
Definition: TkAccumulatingSensitiveDetector.h:70