CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes
FastTimerSD Class Reference

#include <FastTimerSD.h>

Inheritance diagram for FastTimerSD:
SensitiveTkDetector Observer< const BeginOfJob * > Observer< const BeginOfRun * > Observer< const BeginOfEvent * > Observer< const EndOfEvent * > SensitiveDetector

Public Member Functions

virtual void clear ()
 
virtual void DrawAll ()
 
virtual void EndOfEvent (G4HCofThisEvent *eventHC)
 
 FastTimerSD (std::string, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *)
 
void fillHits (edm::PSimHitContainer &, std::string use)
 
virtual double getEnergyDeposit (G4Step *step)
 
std::vector< std::string > getNames ()
 
virtual void Initialize (G4HCofThisEvent *HCE)
 
virtual void PrintAll ()
 
virtual bool ProcessHits (G4Step *, G4TouchableHistory *)
 
virtual uint32_t setDetUnitId (G4Step *)
 
virtual ~FastTimerSD ()
 
- Public Member Functions inherited from SensitiveTkDetector
 SensitiveTkDetector (std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p)
 
- Public Member Functions inherited from SensitiveDetector
virtual void AssignSD (const std::string &vname)
 
Local3DPoint ConvertToLocal3DPoint (const G4ThreeVector &point)
 
Local3DPoint FinalStepPosition (G4Step *s, coordinates)
 
Local3DPoint InitialStepPosition (G4Step *s, coordinates)
 
std::string nameOfSD ()
 
void NaNTrap (G4Step *step)
 
void Register ()
 
 SensitiveDetector (std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &, edm::ParameterSet const &p)
 
virtual ~SensitiveDetector ()
 
- Public Member Functions inherited from Observer< const BeginOfJob * >
 Observer ()
 
void slotForUpdate (const BeginOfJob * iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const BeginOfRun * >
 Observer ()
 
void slotForUpdate (const BeginOfRun * iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const BeginOfEvent * >
 Observer ()
 
void slotForUpdate (const BeginOfEvent * iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const EndOfEvent * >
 Observer ()
 
void slotForUpdate (const EndOfEvent * iT)
 
virtual ~Observer ()
 

Protected Attributes

float edepositEM
 
float edepositHAD
 
G4int emPDG
 
G4int epPDG
 
G4int gammaPDG
 

Private Member Functions

virtual void clearHits ()
 
void CreateNewHit ()
 
std::vector< double > getDDDArray (const std::string &, const DDsvalues_type &)
 
void GetStepInfo (G4Step *aStep)
 
G4bool HitExists ()
 
void ResetForNewPrimary ()
 
G4ThreeVector SetToLocal (const G4ThreeVector &global)
 
G4ThreeVector SetToLocalExit (const G4ThreeVector &globalPoint)
 
void StoreHit (BscG4Hit *)
 
void Summarize ()
 
virtual void update (const BeginOfJob *)
 This routine will be called when the appropriate signal arrives. More...
 
virtual void update (const BeginOfRun *)
 This routine will be called when the appropriate signal arrives. More...
 
virtual void update (const BeginOfEvent *)
 This routine will be called when the appropriate signal arrives. More...
 
virtual void update (const ::EndOfEvent *)
 
void UpdateHit ()
 

Private Attributes

BscG4HitcurrentHit
 
G4VPhysicalVolume * currentPV
 
float edeposit
 
float Eloss
 
G4ThreeVector entrancePoint
 
int eventno
 
G4ThreeVector exitPoint
 
const FastTimeDDDConstantsftcons
 
G4int hcID
 
G4ThreeVector hitPoint
 
G4ThreeVector hitPointExit
 
G4ThreeVector hitPointLocal
 
G4ThreeVector hitPointLocalExit
 
float incidentEnergy
 
std::string name
 
float Pabs
 
int ParentId
 
short ParticleType
 
float PhiAtEntry
 
G4StepPoint * postStepPoint
 
G4StepPoint * preStepPoint
 
uint32_t previousUnitID
 
G4int primaryID
 
G4int primID
 
TrackingSlaveSDslave
 
G4ThreeVector theEntryPoint
 
G4ThreeVector theExitPoint
 
BscG4HitCollectiontheHC
 
const SimTrackManagertheManager
 
float ThetaAtEntry
 
G4Track * theTrack
 
float Tof
 
G4int tsID
 
G4double tSlice
 
G4int tSliceID
 
int type_
 
uint32_t unitID
 
float Vx
 
float Vy
 
float Vz
 
float X
 
float Y
 
float Z
 

Additional Inherited Members

- Public Types inherited from SensitiveDetector
enum  coordinates { WorldCoordinates, LocalCoordinates }
 
- Protected Member Functions inherited from Observer< const EndOfEvent * >
virtual void update (const EndOfEvent *)=0
 This routine will be called when the appropriate signal arrives. More...
 

Detailed Description

Definition at line 34 of file FastTimerSD.h.

Constructor & Destructor Documentation

FastTimerSD::FastTimerSD ( std::string  name,
const DDCompactView cpv,
const SensitiveDetectorCatalog clg,
edm::ParameterSet const &  p,
const SimTrackManager manager 
)

Definition at line 40 of file FastTimerSD.cc.

References SensitiveDetector::AssignSD(), ecaldqm::collectionName, gather_cfg::cout, dbl_to_int(), ALCARECOTkAlBeamHalo_cff::filter, DDFilteredView::firstChild(), getDDDArray(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), SensitiveDetectorCatalog::logicalNames(), DDFilteredView::mergedSpecifics(), SensitiveDetector::Register(), slave, AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::temp, and type_.

43  :
44  SensitiveTkDetector(name, cpv, clg, p), ftcons(0), name(name),
45  hcID(-1), theHC(0), theManager(manager), currentHit(0), theTrack(0),
47  postStepPoint(0), eventno(0) {
48 
49  //Add FastTimer Sentitive Detector Name
50  collectionName.insert(name);
51 
52 
53  //Parameters
54  edm::ParameterSet m_p = p.getParameter<edm::ParameterSet>("FastTimerSD");
55  int verbn = m_p.getUntrackedParameter<int>("Verbosity");
56 
57  SetVerboseLevel(verbn);
58 #ifdef EDM_ML_DEBUG
59  std::cout << "*******************************************************\n"
60  << "* *\n"
61  << "* Constructing a FastTimerSD with name " << name << "\n"
62  << "* *\n"
63  << "*******************************************************\n";
64 #endif
65 
66  slave = new TrackingSlaveSD(name);
67 
68  //
69  // attach detectors (LogicalVolumes)
70  //
71  std::vector<std::string> lvNames = clg.logicalNames(name);
72 
73  this->Register();
74 
75  for (std::vector<std::string>::iterator it=lvNames.begin();
76  it !=lvNames.end(); it++) {
77  this->AssignSD(*it);
78  edm::LogInfo("FastTimerSim") << "FastTimerSD : Assigns SD to LV " << (*it);
79  }
80 
81  std::string attribute = "ReadOutName";
82  DDSpecificsMatchesValueFilter filter{DDValue(attribute,name,0)};
83  DDFilteredView fv(cpv,filter);
84  fv.firstChild();
85  DDsvalues_type sv(fv.mergedSpecifics());
86  std::vector<int> temp = dbl_to_int(getDDDArray("Type",sv));
87  type_ = temp[0];
88 
89  edm::LogInfo("FastTimerSim") << "FastTimerSD: Instantiation completed for "
90  << name << " of type " << type_;
91 }
std::string name
Definition: FastTimerSD.h:94
T getUntrackedParameter(std::string const &, T const &) const
BscG4Hit * currentHit
Definition: FastTimerSD.h:100
uint32_t unitID
Definition: FastTimerSD.h:103
const std::vector< std::string > & logicalNames(const std::string &readoutName) const
virtual void AssignSD(const std::string &vname)
const FastTimeDDDConstants * ftcons
Definition: FastTimerSD.h:85
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
Definition: DDutils.h:7
TrackingSlaveSD * slave
Definition: FastTimerSD.h:84
std::string const collectionName[nCollections]
Definition: Collections.h:47
G4StepPoint * postStepPoint
Definition: FastTimerSD.h:108
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
Definition: DDsvalues.h:20
const SimTrackManager * theManager
Definition: FastTimerSD.h:97
G4VPhysicalVolume * currentPV
Definition: FastTimerSD.h:102
G4Track * theTrack
Definition: FastTimerSD.h:101
BscG4HitCollection * theHC
Definition: FastTimerSD.h:96
G4StepPoint * preStepPoint
Definition: FastTimerSD.h:107
SensitiveTkDetector(std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p)
std::vector< double > getDDDArray(const std::string &, const DDsvalues_type &)
Definition: FastTimerSD.cc:447
uint32_t previousUnitID
Definition: FastTimerSD.h:103
G4int hcID
Definition: FastTimerSD.h:95
FastTimerSD::~FastTimerSD ( )
virtual

Definition at line 94 of file FastTimerSD.cc.

References slave.

94  {
95  if (slave) delete slave;
96 }
TrackingSlaveSD * slave
Definition: FastTimerSD.h:84

Member Function Documentation

void FastTimerSD::clear ( void  )
virtual

Definition at line 386 of file FastTimerSD.cc.

386 {}
void FastTimerSD::clearHits ( )
privatevirtual

Implements SensitiveDetector.

Definition at line 437 of file FastTimerSD.cc.

References TrackingSlaveSD::Initialize(), and slave.

Referenced by update().

437  {
438  slave->Initialize();
439 }
TrackingSlaveSD * slave
Definition: FastTimerSD.h:84
virtual void Initialize()
void FastTimerSD::CreateNewHit ( )
private

Definition at line 263 of file FastTimerSD.cc.

References gather_cfg::cout, currentHit, currentPV, Eloss, hitPoint, hitPointLocal, hitPointLocalExit, incidentEnergy, NULL, Pabs, ParentId, ParticleType, PhiAtEntry, primaryID, BscG4Hit::setEnergyLoss(), BscG4Hit::setEntry(), BscG4Hit::setEntryLocalP(), BscG4Hit::setExitLocalP(), BscG4Hit::setIncidentEnergy(), BscG4Hit::setPabs(), BscG4Hit::setParentId(), BscG4Hit::setParticleType(), BscG4Hit::setPhiAtEntry(), BscG4Hit::setThetaAtEntry(), BscG4Hit::setTimeSlice(), BscG4Hit::setTof(), BscG4Hit::setTrackID(), BscG4Hit::setUnitID(), BscG4Hit::setVx(), BscG4Hit::setVy(), BscG4Hit::setVz(), BscG4Hit::setX(), BscG4Hit::setY(), BscG4Hit::setZ(), StoreHit(), ThetaAtEntry, theTrack, Tof, tSlice, tSliceID, unitID, UpdateHit(), Vx, Vy, Vz, X, Y, and Z.

Referenced by ProcessHits().

263  {
264 
265 #ifdef EDM_ML_DEBUG
266  std::cout << "FastTimerSD CreateNewHit for" << " PV "
267  << currentPV->GetName() << " PVid = " << currentPV->GetCopyNo()
268  << " Unit " << unitID << std::endl;
269  std::cout << " primary " << primaryID << " time slice " << tSliceID
270  << " For Track " << theTrack->GetTrackID() << " which is a "
271  << theTrack->GetDefinition()->GetParticleName();
272 
273  if (theTrack->GetTrackID()==1) {
274  std::cout << " of energy " << theTrack->GetTotalEnergy();
275  } else {
276  std::cout << " daughter of part. " << theTrack->GetParentID();
277  }
278 
279  std::cout << " and created by " ;
280  if (theTrack->GetCreatorProcess()!=NULL)
281  std::cout << theTrack->GetCreatorProcess()->GetProcessName() ;
282  else
283  std::cout << "NO process";
284  std::cout << std::endl;
285 #endif
286 
287  currentHit = new BscG4Hit;
292 
299 
301 
304 
306  currentHit->setVx(Vx);
307  currentHit->setVy(Vy);
308  currentHit->setVz(Vz);
309 
310  currentHit->setX(X);
311  currentHit->setY(Y);
312  currentHit->setZ(Z);
313 
314  UpdateHit();
315 
317 }
G4ThreeVector hitPoint
Definition: FastTimerSD.h:111
void setTof(float e)
Definition: BSCG4Hit.cc:154
void setEntry(const G4ThreeVector &xyz)
Definition: BSCG4Hit.cc:116
void setVx(float p)
Definition: BSCG4Hit.cc:177
G4int tSliceID
Definition: FastTimerSD.h:104
void setTrackID(int i)
Definition: BSCG4Hit.cc:134
void setEnergyLoss(float e)
Definition: BSCG4Hit.cc:155
void setParentId(int p)
Definition: BSCG4Hit.cc:174
void UpdateHit()
Definition: FastTimerSD.cc:320
#define NULL
Definition: scimark2.h:8
BscG4Hit * currentHit
Definition: FastTimerSD.h:100
void setUnitID(unsigned int i)
Definition: BSCG4Hit.cc:137
uint32_t unitID
Definition: FastTimerSD.h:103
void setVy(float p)
Definition: BSCG4Hit.cc:180
void setY(float t)
Definition: BSCG4Hit.cc:168
short ParticleType
Definition: FastTimerSD.h:117
void setThetaAtEntry(float t)
Definition: BSCG4Hit.cc:161
void setX(float t)
Definition: BSCG4Hit.cc:165
void setPabs(float e)
Definition: BSCG4Hit.cc:153
void setEntryLocalP(const G4ThreeVector &xyz1)
Definition: BSCG4Hit.cc:119
void setPhiAtEntry(float f)
Definition: BSCG4Hit.cc:162
G4ThreeVector hitPointLocalExit
Definition: FastTimerSD.h:114
G4VPhysicalVolume * currentPV
Definition: FastTimerSD.h:102
void StoreHit(BscG4Hit *)
Definition: FastTimerSD.cc:252
G4ThreeVector hitPointLocal
Definition: FastTimerSD.h:113
G4Track * theTrack
Definition: FastTimerSD.h:101
float incidentEnergy
Definition: FastTimerSD.h:91
void setTimeSlice(double d)
Definition: BSCG4Hit.cc:140
void setParticleType(short i)
Definition: BSCG4Hit.cc:156
void setVz(float p)
Definition: BSCG4Hit.cc:183
float PhiAtEntry
Definition: FastTimerSD.h:118
G4double tSlice
Definition: FastTimerSD.h:105
void setZ(float t)
Definition: BSCG4Hit.cc:171
void setExitLocalP(const G4ThreeVector &xyz1)
Definition: BSCG4Hit.cc:122
void setIncidentEnergy(double e)
Definition: BSCG4Hit.cc:131
float ThetaAtEntry
Definition: FastTimerSD.h:118
G4int primaryID
Definition: FastTimerSD.h:104
void FastTimerSD::DrawAll ( )
virtual

Definition at line 388 of file FastTimerSD.cc.

388 {}
void FastTimerSD::EndOfEvent ( G4HCofThisEvent *  eventHC)
virtual

Reimplemented from SensitiveDetector.

Definition at line 356 of file FastTimerSD.cc.

References gather_cfg::cout, TauDecayModes::dec, BscG4Hit::getEnergyLoss(), BscG4Hit::getEntry(), BscG4Hit::getPabs(), BscG4Hit::getParticleType(), BscG4Hit::getPhiAtEntry(), BscG4Hit::getThetaAtEntry(), BscG4Hit::getTof(), BscG4Hit::getTrackID(), BscG4Hit::getUnitID(), TrackingSlaveSD::processHits(), slave, Summarize(), and theHC.

356  {
357 
358  // here we loop over transient hits and make them persistent
359  for (int j=0; j<theHC->entries(); j++) {
360  BscG4Hit* aHit = (*theHC)[j];
361 #ifdef EDM_ML_DEBUG
362  std::cout << "hit number " << j << " unit ID = " << std::hex
363  << aHit->getUnitID() << std::dec << " entry z "
364  << aHit->getEntry().z() << " entry theta "
365  << aHit->getThetaAtEntry() << std::endl;
366 #endif
367  Local3DPoint locExitPoint(0,0,0);
368  Local3DPoint locEntryPoint(aHit->getEntry().x(),
369  aHit->getEntry().y(),
370  aHit->getEntry().z());
371  slave->processHits(PSimHit(locEntryPoint,locExitPoint,
372  aHit->getPabs(),
373  aHit->getTof(),
374  aHit->getEnergyLoss(),
375  aHit->getParticleType(),
376  aHit->getUnitID(),
377  aHit->getTrackID(),
378  aHit->getThetaAtEntry(),
379  aHit->getPhiAtEntry()));
380  }
381  Summarize();
382 }
float getPhiAtEntry() const
Definition: BSCG4Hit.cc:159
int getParticleType() const
Definition: BSCG4Hit.cc:151
G4int getTrackID() const
Definition: BSCG4Hit.cc:133
float getTof() const
Definition: BSCG4Hit.cc:149
float getPabs() const
Definition: BSCG4Hit.cc:148
unsigned int getUnitID() const
Definition: BSCG4Hit.cc:136
TrackingSlaveSD * slave
Definition: FastTimerSD.h:84
float getThetaAtEntry() const
Definition: BSCG4Hit.cc:158
BscG4HitCollection * theHC
Definition: FastTimerSD.h:96
G4ThreeVector getEntry() const
Definition: BSCG4Hit.cc:115
virtual bool processHits(const PSimHit &)
void Summarize()
Definition: FastTimerSD.cc:384
float getEnergyLoss() const
Definition: BSCG4Hit.cc:150
void FastTimerSD::fillHits ( edm::PSimHitContainer c,
std::string  use 
)
virtual

Implements SensitiveTkDetector.

Definition at line 397 of file FastTimerSD.cc.

References TrackingSlaveSD::hits(), gen::n, TrackingSlaveSD::name(), and slave.

397  {
398  if (slave->name() == n) c=slave->hits();
399 }
std::string name() const
std::vector< PSimHit > & hits()
TrackingSlaveSD * slave
Definition: FastTimerSD.h:84
std::vector< double > FastTimerSD::getDDDArray ( const std::string &  str,
const DDsvalues_type sv 
)
private

Definition at line 447 of file FastTimerSD.cc.

References DDfetch(), DDValue::doubles(), Exception, harvestTrackValidationPlots::str, and relativeConstraints::value.

Referenced by FastTimerSD().

448  {
449 
450  DDValue value(str);
451  if (DDfetch(&sv,value)) {
452  const std::vector<double> & fvec = value.doubles();
453  int nval = fvec.size();
454  if (nval < 1) {
455  edm::LogError("FastTimerSim") << "FastTimerSD : # of " << str
456  << " bins " << nval << " < 1 ==> illegal";
457  throw cms::Exception("DDException") << "FastTimerSD: cannot get array " << str;
458  }
459  return fvec;
460  } else {
461  edm::LogError("FastTimerSim") << "FastTimerSD: cannot get array " << str;
462  throw cms::Exception("DDException") << "FastTimerSD: cannot get array " << str;
463  }
464 }
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
Definition: DDsvalues.cc:80
Definition: value.py:1
double FastTimerSD::getEnergyDeposit ( G4Step *  step)
virtual

Definition at line 98 of file FastTimerSD.cc.

Referenced by GetStepInfo().

98  {
99  return aStep->GetTotalEnergyDeposit();
100 }
std::vector< std::string > FastTimerSD::getNames ( )
virtual

Reimplemented from SensitiveDetector.

Definition at line 441 of file FastTimerSD.cc.

References TrackingSlaveSD::name(), slave, and groupFilesInBlocks::temp.

441  {
442  std::vector<std::string> temp;
443  temp.push_back(slave->name());
444  return temp;
445 }
std::string name() const
TrackingSlaveSD * slave
Definition: FastTimerSD.h:84
void FastTimerSD::GetStepInfo ( G4Step *  aStep)
private

Definition at line 134 of file FastTimerSD.cc.

References gather_cfg::cout, currentPV, TauDecayModes::dec, edeposit, edepositEM, edepositHAD, Eloss, emPDG, epPDG, gammaPDG, getEnergyDeposit(), GeV, hitPoint, hitPointExit, hitPointLocal, hitPointLocalExit, createfilelist::int, Pabs, ParentId, ParticleType, PhiAtEntry, postStepPoint, preStepPoint, primaryID, setDetUnitId(), ThetaAtEntry, theTrack, Tof, tSlice, tSliceID, unitID, Vx, Vy, Vz, X, Y, and Z.

Referenced by ProcessHits().

134  {
135 
136  preStepPoint = aStep->GetPreStepPoint();
137  postStepPoint= aStep->GetPostStepPoint();
138  theTrack = aStep->GetTrack();
139  hitPoint = preStepPoint->GetPosition();
140  currentPV = preStepPoint->GetPhysicalVolume();
141  hitPointExit = postStepPoint->GetPosition();
142 
143  hitPointLocal = preStepPoint->GetTouchable()->GetHistory()->GetTopTransform().TransformPoint(hitPoint);
144  hitPointLocalExit = preStepPoint->GetTouchable()->GetHistory()->GetTopTransform().TransformPoint(hitPointExit);
145 
146 
147  G4int particleCode = theTrack->GetDefinition()->GetPDGEncoding();
148 #ifdef EDM_ML_DEBUG
149  std::cout << "FastTimerSD :particleType = "
150  << theTrack->GetDefinition()->GetParticleName() << std::endl;
151 #endif
152  if (particleCode == emPDG ||
153  particleCode == epPDG ||
154  particleCode == gammaPDG ) {
155  edepositEM = getEnergyDeposit(aStep); edepositHAD = 0.;
156  } else {
157  edepositEM = 0.; edepositHAD = getEnergyDeposit(aStep);
158  }
159  edeposit = aStep->GetTotalEnergyDeposit();
160  tSlice = (100*postStepPoint->GetGlobalTime() )/CLHEP::nanosecond;
161  tSliceID = (int) tSlice;
162  unitID = setDetUnitId(aStep);
163 #ifdef EDM_ML_DEBUG
164  std::cout << "FastTimerSD:unitID = " << std::hex << unitID << std::dec<<"\n";
165 #endif
166  primaryID = theTrack->GetTrackID();
167  // Position = hitPoint;
168  Pabs = aStep->GetPreStepPoint()->GetMomentum().mag()/CLHEP::GeV;
169  Tof = aStep->GetPostStepPoint()->GetGlobalTime()/CLHEP::nanosecond;
170  Eloss = aStep->GetTotalEnergyDeposit()/CLHEP::GeV;
171  ParticleType = theTrack->GetDefinition()->GetPDGEncoding();
172  ThetaAtEntry = aStep->GetPreStepPoint()->GetPosition().theta()/CLHEP::deg;
173  PhiAtEntry = aStep->GetPreStepPoint()->GetPosition().phi()/CLHEP::deg;
174 
175  ParentId = theTrack->GetParentID();
176  Vx = theTrack->GetVertexPosition().x();
177  Vy = theTrack->GetVertexPosition().y();
178  Vz = theTrack->GetVertexPosition().z();
179  X = hitPoint.x();
180  Y = hitPoint.y();
181  Z = hitPoint.z();
182 }
G4ThreeVector hitPoint
Definition: FastTimerSD.h:111
G4ThreeVector hitPointExit
Definition: FastTimerSD.h:112
const double GeV
Definition: MathUtil.h:16
float edepositHAD
Definition: FastTimerSD.h:128
G4int tSliceID
Definition: FastTimerSD.h:104
virtual double getEnergyDeposit(G4Step *step)
Definition: FastTimerSD.cc:98
uint32_t unitID
Definition: FastTimerSD.h:103
float edeposit
Definition: FastTimerSD.h:109
short ParticleType
Definition: FastTimerSD.h:117
G4int gammaPDG
Definition: FastTimerSD.h:131
G4StepPoint * postStepPoint
Definition: FastTimerSD.h:108
G4ThreeVector hitPointLocalExit
Definition: FastTimerSD.h:114
G4VPhysicalVolume * currentPV
Definition: FastTimerSD.h:102
G4ThreeVector hitPointLocal
Definition: FastTimerSD.h:113
G4Track * theTrack
Definition: FastTimerSD.h:101
G4StepPoint * preStepPoint
Definition: FastTimerSD.h:107
float PhiAtEntry
Definition: FastTimerSD.h:118
float edepositEM
Definition: FastTimerSD.h:128
G4double tSlice
Definition: FastTimerSD.h:105
virtual uint32_t setDetUnitId(G4Step *)
Definition: FastTimerSD.cc:184
float ThetaAtEntry
Definition: FastTimerSD.h:118
G4int primaryID
Definition: FastTimerSD.h:104
G4bool FastTimerSD::HitExists ( )
private

Definition at line 205 of file FastTimerSD.cc.

References currentHit, runEdmFileComparison::found, BscG4Hit::getTimeSliceID(), BscG4Hit::getTrackID(), BscG4Hit::getUnitID(), previousUnitID, primaryID, primID, ResetForNewPrimary(), theHC, tsID, tSliceID, unitID, and UpdateHit().

Referenced by ProcessHits().

205  {
206  if (primaryID<1) {
207  edm::LogWarning("FastTimerSim") << "***** FastTimerSD error: primaryID = "
208  << primaryID
209  << " maybe detector name changed";
210  }
211 
212  // Update if in the same detector, time-slice and for same track
213  if (tSliceID == tsID && unitID==previousUnitID) {
214  UpdateHit();
215  return true;
216  }
217  // Reset entry point for new primary
218  if (primaryID != primID)
220 
221  //look in the HitContainer whether a hit with the same primID, unitID,
222  //tSliceID already exists:
223 
224  G4bool found = false;
225 
226  for (int j=0; j<theHC->entries()&&!found; j++) {
227  BscG4Hit* aPreviousHit = (*theHC)[j];
228  if (aPreviousHit->getTrackID() == primaryID &&
229  aPreviousHit->getTimeSliceID() == tSliceID &&
230  aPreviousHit->getUnitID() == unitID ) {
231  currentHit = aPreviousHit;
232  found = true;
233  }
234  }
235 
236  if (found) {
237  UpdateHit();
238  return true;
239  } else {
240  return false;
241  }
242 }
G4int getTrackID() const
Definition: BSCG4Hit.cc:133
G4int tSliceID
Definition: FastTimerSD.h:104
void UpdateHit()
Definition: FastTimerSD.cc:320
BscG4Hit * currentHit
Definition: FastTimerSD.h:100
uint32_t unitID
Definition: FastTimerSD.h:103
unsigned int getUnitID() const
Definition: BSCG4Hit.cc:136
int getTimeSliceID() const
Definition: BSCG4Hit.cc:141
G4int tsID
Definition: FastTimerSD.h:99
G4int primID
Definition: FastTimerSD.h:92
void ResetForNewPrimary()
Definition: FastTimerSD.cc:245
BscG4HitCollection * theHC
Definition: FastTimerSD.h:96
uint32_t previousUnitID
Definition: FastTimerSD.h:103
G4int primaryID
Definition: FastTimerSD.h:104
void FastTimerSD::Initialize ( G4HCofThisEvent *  HCE)
virtual

Reimplemented from SensitiveDetector.

Definition at line 102 of file FastTimerSD.cc.

References ecaldqm::collectionName, gather_cfg::cout, hcID, name, primID, theHC, and tsID.

102  {
103 #ifdef EDM_ML_DEBUG
104  std::cout << "FastTimerSD : Initialize called for " << name << std::endl;
105 #endif
106 
108  if (hcID<0)
109  hcID = G4SDManager::GetSDMpointer()->GetCollectionID(collectionName[0]);
110  HCE->AddHitsCollection(hcID, theHC);
111 
112  tsID = -2;
113  primID = -2;
114 }
std::string name
Definition: FastTimerSD.h:94
G4int tsID
Definition: FastTimerSD.h:99
std::string const collectionName[nCollections]
Definition: Collections.h:47
G4int primID
Definition: FastTimerSD.h:92
BscG4HitCollection * theHC
Definition: FastTimerSD.h:96
G4THitsCollection< BscG4Hit > BscG4HitCollection
G4int hcID
Definition: FastTimerSD.h:95
void FastTimerSD::PrintAll ( )
virtual

Definition at line 390 of file FastTimerSD.cc.

References gather_cfg::cout, and theHC.

390  {
391 #ifdef EDM_ML_DEBUG
392  std::cout << "FastTimerSD: Collection " << theHC->GetName() << std::endl;
393 #endif
394  theHC->PrintAllHits();
395 }
BscG4HitCollection * theHC
Definition: FastTimerSD.h:96
bool FastTimerSD::ProcessHits ( G4Step *  aStep,
G4TouchableHistory *   
)
virtual

Implements SensitiveDetector.

Definition at line 117 of file FastTimerSD.cc.

References gather_cfg::cout, CreateNewHit(), edeposit, GetStepInfo(), HitExists(), NULL, and theHC.

117  {
118 
119  if (aStep == NULL) {
120  return true;
121  } else {
122  GetStepInfo(aStep);
123 #ifdef EDM_ML_DEBUG
124  std::cout << "FastTimerSD : number of hits = " << theHC->entries() <<"\n";
125 #endif
126  if (HitExists() == false && edeposit>0. ){
127  CreateNewHit();
128  return true;
129  }
130  }
131  return true;
132 }
#define NULL
Definition: scimark2.h:8
float edeposit
Definition: FastTimerSD.h:109
G4bool HitExists()
Definition: FastTimerSD.cc:205
BscG4HitCollection * theHC
Definition: FastTimerSD.h:96
void CreateNewHit()
Definition: FastTimerSD.cc:263
void GetStepInfo(G4Step *aStep)
Definition: FastTimerSD.cc:134
void FastTimerSD::ResetForNewPrimary ( )
private

Definition at line 245 of file FastTimerSD.cc.

References entrancePoint, exitPoint, hitPoint, hitPointExit, incidentEnergy, preStepPoint, SetToLocal(), and SetToLocalExit().

Referenced by HitExists().

245  {
248  incidentEnergy = preStepPoint->GetKineticEnergy();
249 }
G4ThreeVector hitPoint
Definition: FastTimerSD.h:111
G4ThreeVector hitPointExit
Definition: FastTimerSD.h:112
G4ThreeVector SetToLocalExit(const G4ThreeVector &globalPoint)
Definition: FastTimerSD.cc:348
G4ThreeVector SetToLocal(const G4ThreeVector &global)
Definition: FastTimerSD.cc:340
float incidentEnergy
Definition: FastTimerSD.h:91
G4StepPoint * preStepPoint
Definition: FastTimerSD.h:107
G4ThreeVector entrancePoint
Definition: FastTimerSD.h:88
G4ThreeVector exitPoint
Definition: FastTimerSD.h:88
uint32_t FastTimerSD::setDetUnitId ( G4Step *  aStep)
virtual

Implements SensitiveDetector.

Definition at line 184 of file FastTimerSD.cc.

References funct::abs(), gather_cfg::cout, TauDecayModes::dec, ftcons, FastTimeDDDConstants::getEtaPhi(), FastTimeDDDConstants::getZPhi(), hcalTTPDigis_cfi::id, DTRecHitQuality_cfi::local, DetId::rawId(), and type_.

Referenced by GetStepInfo().

184  {
185 
186  //Find the depth segment
187  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
188  G4ThreeVector global = aStep->GetPreStepPoint()->GetPosition();
189  G4ThreeVector local = touch->GetHistory()->GetTopTransform().TransformPoint(global);
190  int iz = (global.z() > 0) ? 1 : -1;
191  std::pair<int,int> izphi = ((ftcons) ? ((type_ == 1) ?
192  (ftcons->getZPhi(std::abs(local.z()),local.phi())) :
193  (ftcons->getEtaPhi(local.perp(),local.phi()))) :
194  (std::pair<int,int>(0,0)));
195  uint32_t id = FastTimeDetId(type_,izphi.first,izphi.second,iz).rawId();
196 #ifdef EDM_ML_DEBUG
197  std::cout << "Volume " << touch->GetVolume(0)->GetName() << ":" << global.z()
198  << " Iz(eta)phi " << izphi.first << ":" << izphi.second << ":"
199  << iz << " id " << std::hex << id << std::dec << std::endl;
200 #endif
201  return id;
202 }
std::pair< int, int > getEtaPhi(double r, double phi) const
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
const FastTimeDDDConstants * ftcons
Definition: FastTimerSD.h:85
std::pair< int, int > getZPhi(double z, double phi) const
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
G4ThreeVector FastTimerSD::SetToLocal ( const G4ThreeVector &  global)
private

Definition at line 340 of file FastTimerSD.cc.

References preStepPoint, and theEntryPoint.

Referenced by ResetForNewPrimary().

340  {
341 
342  const G4VTouchable* touch= preStepPoint->GetTouchable();
343  theEntryPoint = touch->GetHistory()->GetTopTransform().TransformPoint(global);
344  return theEntryPoint;
345 }
G4ThreeVector theEntryPoint
Definition: FastTimerSD.h:89
G4StepPoint * preStepPoint
Definition: FastTimerSD.h:107
G4ThreeVector FastTimerSD::SetToLocalExit ( const G4ThreeVector &  globalPoint)
private

Definition at line 348 of file FastTimerSD.cc.

References postStepPoint, and theExitPoint.

Referenced by ResetForNewPrimary().

348  {
349 
350  const G4VTouchable* touch= postStepPoint->GetTouchable();
351  theExitPoint = touch->GetHistory()->GetTopTransform().TransformPoint(globalPoint);
352  return theExitPoint;
353 }
G4StepPoint * postStepPoint
Definition: FastTimerSD.h:108
G4ThreeVector theExitPoint
Definition: FastTimerSD.h:89
void FastTimerSD::StoreHit ( BscG4Hit hit)
private

Definition at line 252 of file FastTimerSD.cc.

References primID, and theHC.

Referenced by CreateNewHit().

252  {
253 
254  if (primID<0) return;
255  if (hit == 0) {
256  edm::LogWarning("FastTimerSim") << "FastTimerSD: hit to be stored is NULL !!";
257  } else {
258  theHC->insert( hit );
259  }
260 }
G4int primID
Definition: FastTimerSD.h:92
BscG4HitCollection * theHC
Definition: FastTimerSD.h:96
void FastTimerSD::Summarize ( )
private

Definition at line 384 of file FastTimerSD.cc.

Referenced by EndOfEvent().

384 {}
void FastTimerSD::update ( const BeginOfJob )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfJob * >.

Definition at line 401 of file FastTimerSD.cc.

References gather_cfg::cout, Exception, ftcons, and edm::EventSetup::get().

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

401  {
402 
403  const edm::EventSetup* es = (*job)();
405  es->get<IdealGeometryRecord>().get(fdc);
406  if (fdc.isValid()) {
407  ftcons = &(*fdc);
408  } else {
409  edm::LogError("FastTimerSim") << "FastTimerSD : Cannot find FastTimeDDDConstants";
410  throw cms::Exception("Unknown", "FastTimerSD") << "Cannot find FastTimeDDDConstants\n";
411  }
412 #ifdef EDM_ML_DEBUG
413  std::cout << "FastTimerSD::Initialized with FastTimeDDDConstants\n";
414 #endif
415 }
const FastTimeDDDConstants * ftcons
Definition: FastTimerSD.h:85
const T & get() const
Definition: EventSetup.h:56
void FastTimerSD::update ( const BeginOfRun )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfRun * >.

Definition at line 425 of file FastTimerSD.cc.

References emPDG, epPDG, gammaPDG, and HiggsValidation_cfi::particleName.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

425  {
426 
427  G4ParticleTable * theParticleTable = G4ParticleTable::GetParticleTable();
428  G4String particleName;
429  emPDG = theParticleTable->FindParticle(particleName="e-")->GetPDGEncoding();
430  epPDG = theParticleTable->FindParticle(particleName="e+")->GetPDGEncoding();
431  gammaPDG = theParticleTable->FindParticle(particleName="gamma")->GetPDGEncoding();
432 
433 }
G4int gammaPDG
Definition: FastTimerSD.h:131
void FastTimerSD::update ( const BeginOfEvent )
privatevirtual

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfEvent * >.

Definition at line 417 of file FastTimerSD.cc.

References clearHits(), gather_cfg::cout, and eventno.

Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

417  {
418 #ifdef EDM_ML_DEBUG
419  std::cout << "Dispatched BeginOfEvent for " << GetName() << " !\n" ;
420 #endif
421  clearHits();
422  eventno = (*i)()->GetEventID();
423 }
virtual void clearHits()
Definition: FastTimerSD.cc:437
void FastTimerSD::update ( const ::EndOfEvent )
privatevirtual
void FastTimerSD::UpdateHit ( )
private

Definition at line 320 of file FastTimerSD.cc.

References BscG4Hit::addEnergyDeposit(), gather_cfg::cout, currentHit, edepositEM, edepositHAD, Eloss, postStepPoint, previousUnitID, primaryID, primID, BscG4Hit::setEnergyLoss(), tsID, tSliceID, and unitID.

Referenced by CreateNewHit(), and HitExists().

320  {
321 
322  if (Eloss > 0.) {
324 
325 #ifdef EDM_ML_DEBUG
326  std::cout << "updateHit: add eloss " << Eloss <<std::endl;
327  std::cout << "CurrentHit="<< currentHit<< ", PostStepPoint = "
328  << postStepPoint->GetPosition() << std::endl;
329 #endif
331  }
332 
333  // buffer for next steps:
334  tsID = tSliceID;
335  primID = primaryID;
337 }
float edepositHAD
Definition: FastTimerSD.h:128
G4int tSliceID
Definition: FastTimerSD.h:104
void setEnergyLoss(float e)
Definition: BSCG4Hit.cc:155
BscG4Hit * currentHit
Definition: FastTimerSD.h:100
uint32_t unitID
Definition: FastTimerSD.h:103
G4int tsID
Definition: FastTimerSD.h:99
G4int primID
Definition: FastTimerSD.h:92
G4StepPoint * postStepPoint
Definition: FastTimerSD.h:108
void addEnergyDeposit(double em, double hd)
Definition: BSCG4Hit.cc:143
uint32_t previousUnitID
Definition: FastTimerSD.h:103
float edepositEM
Definition: FastTimerSD.h:128
G4int primaryID
Definition: FastTimerSD.h:104

Member Data Documentation

BscG4Hit* FastTimerSD::currentHit
private

Definition at line 100 of file FastTimerSD.h.

Referenced by CreateNewHit(), HitExists(), and UpdateHit().

G4VPhysicalVolume* FastTimerSD::currentPV
private

Definition at line 102 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

float FastTimerSD::edeposit
private

Definition at line 109 of file FastTimerSD.h.

Referenced by GetStepInfo(), and ProcessHits().

float FastTimerSD::edepositEM
protected

Definition at line 128 of file FastTimerSD.h.

Referenced by GetStepInfo(), and UpdateHit().

float FastTimerSD::edepositHAD
protected

Definition at line 128 of file FastTimerSD.h.

Referenced by GetStepInfo(), and UpdateHit().

float FastTimerSD::Eloss
private

Definition at line 116 of file FastTimerSD.h.

Referenced by CreateNewHit(), GetStepInfo(), and UpdateHit().

G4int FastTimerSD::emPDG
protected

Definition at line 129 of file FastTimerSD.h.

Referenced by GetStepInfo(), and update().

G4ThreeVector FastTimerSD::entrancePoint
private

Definition at line 88 of file FastTimerSD.h.

Referenced by ResetForNewPrimary().

G4int FastTimerSD::epPDG
protected

Definition at line 130 of file FastTimerSD.h.

Referenced by GetStepInfo(), and update().

int FastTimerSD::eventno
private

Definition at line 124 of file FastTimerSD.h.

Referenced by update().

G4ThreeVector FastTimerSD::exitPoint
private

Definition at line 88 of file FastTimerSD.h.

Referenced by ResetForNewPrimary().

const FastTimeDDDConstants* FastTimerSD::ftcons
private

Definition at line 85 of file FastTimerSD.h.

Referenced by setDetUnitId(), and update().

G4int FastTimerSD::gammaPDG
protected

Definition at line 131 of file FastTimerSD.h.

Referenced by GetStepInfo(), and update().

G4int FastTimerSD::hcID
private

Definition at line 95 of file FastTimerSD.h.

Referenced by Initialize().

G4ThreeVector FastTimerSD::hitPoint
private

Definition at line 111 of file FastTimerSD.h.

Referenced by CreateNewHit(), GetStepInfo(), and ResetForNewPrimary().

G4ThreeVector FastTimerSD::hitPointExit
private

Definition at line 112 of file FastTimerSD.h.

Referenced by GetStepInfo(), and ResetForNewPrimary().

G4ThreeVector FastTimerSD::hitPointLocal
private

Definition at line 113 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

G4ThreeVector FastTimerSD::hitPointLocalExit
private

Definition at line 114 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

float FastTimerSD::incidentEnergy
private

Definition at line 91 of file FastTimerSD.h.

Referenced by CreateNewHit(), and ResetForNewPrimary().

std::string FastTimerSD::name
private
float FastTimerSD::Pabs
private

Definition at line 116 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

int FastTimerSD::ParentId
private

Definition at line 120 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

short FastTimerSD::ParticleType
private

Definition at line 117 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

float FastTimerSD::PhiAtEntry
private

Definition at line 118 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

G4StepPoint* FastTimerSD::postStepPoint
private

Definition at line 108 of file FastTimerSD.h.

Referenced by GetStepInfo(), SetToLocalExit(), and UpdateHit().

G4StepPoint* FastTimerSD::preStepPoint
private

Definition at line 107 of file FastTimerSD.h.

Referenced by GetStepInfo(), ResetForNewPrimary(), and SetToLocal().

uint32_t FastTimerSD::previousUnitID
private

Definition at line 103 of file FastTimerSD.h.

Referenced by HitExists(), and UpdateHit().

G4int FastTimerSD::primaryID
private

Definition at line 104 of file FastTimerSD.h.

Referenced by CreateNewHit(), GetStepInfo(), HitExists(), and UpdateHit().

G4int FastTimerSD::primID
private

Definition at line 92 of file FastTimerSD.h.

Referenced by HitExists(), Initialize(), StoreHit(), and UpdateHit().

TrackingSlaveSD* FastTimerSD::slave
private

Definition at line 84 of file FastTimerSD.h.

Referenced by clearHits(), EndOfEvent(), FastTimerSD(), fillHits(), getNames(), and ~FastTimerSD().

G4ThreeVector FastTimerSD::theEntryPoint
private

Definition at line 89 of file FastTimerSD.h.

Referenced by SetToLocal().

G4ThreeVector FastTimerSD::theExitPoint
private

Definition at line 89 of file FastTimerSD.h.

Referenced by SetToLocalExit().

BscG4HitCollection* FastTimerSD::theHC
private

Definition at line 96 of file FastTimerSD.h.

Referenced by EndOfEvent(), HitExists(), Initialize(), PrintAll(), ProcessHits(), and StoreHit().

const SimTrackManager* FastTimerSD::theManager
private

Definition at line 97 of file FastTimerSD.h.

float FastTimerSD::ThetaAtEntry
private

Definition at line 118 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

G4Track* FastTimerSD::theTrack
private

Definition at line 101 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

float FastTimerSD::Tof
private

Definition at line 116 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

G4int FastTimerSD::tsID
private

Definition at line 99 of file FastTimerSD.h.

Referenced by HitExists(), Initialize(), and UpdateHit().

G4double FastTimerSD::tSlice
private

Definition at line 105 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

G4int FastTimerSD::tSliceID
private

Definition at line 104 of file FastTimerSD.h.

Referenced by CreateNewHit(), GetStepInfo(), HitExists(), and UpdateHit().

int FastTimerSD::type_
private
uint32_t FastTimerSD::unitID
private

Definition at line 103 of file FastTimerSD.h.

Referenced by CreateNewHit(), GetStepInfo(), HitExists(), and UpdateHit().

float FastTimerSD::Vx
private

Definition at line 121 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

float FastTimerSD::Vy
private

Definition at line 121 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

float FastTimerSD::Vz
private

Definition at line 121 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

float FastTimerSD::X
private

Definition at line 122 of file FastTimerSD.h.

Referenced by svgfig.Curve.Sample::__repr__(), CreateNewHit(), and GetStepInfo().

float FastTimerSD::Y
private

Definition at line 122 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().

float FastTimerSD::Z
private

Definition at line 122 of file FastTimerSD.h.

Referenced by CreateNewHit(), and GetStepInfo().