test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 DDFilteredView::addFilter(), SensitiveDetector::AssignSD(), ecaldqm::collectionName, gather_cfg::cout, dbl_to_int(), equals, alcazmumu_cfi::filter, DDFilteredView::firstChild(), getDDDArray(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), SensitiveDetectorCatalog::logicalNames(), DDFilteredView::mergedSpecifics(), SensitiveDetector::Register(), DDSpecificsFilter::setCriteria(), 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";
83  DDValue ddv(attribute,name,0);
84  filter.setCriteria(ddv,DDCompOp::equals);
85  DDFilteredView fv(cpv);
86  fv.addFilter(filter);
87  fv.firstChild();
88  DDsvalues_type sv(fv.mergedSpecifics());
89  std::vector<int> temp = dbl_to_int(getDDDArray("Type",sv));
90  type_ = temp[0];
91 
92  edm::LogInfo("FastTimerSim") << "FastTimerSD: Instantiation completed for "
93  << name << " of type " << type_;
94 }
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:45
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:450
uint32_t previousUnitID
Definition: FastTimerSD.h:103
tuple cout
Definition: gather_cfg.py:145
G4int hcID
Definition: FastTimerSD.h:95
void setCriteria(const DDValue &nameVal, DDCompOp, DDLogOp l=DDLogOp::AND, bool asString=true, bool merged=true)
Definition: DDFilter.cc:253
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.
Definition: DDFilter.h:33
FastTimerSD::~FastTimerSD ( )
virtual

Definition at line 97 of file FastTimerSD.cc.

References slave.

97  {
98  if (slave) delete slave;
99 }
TrackingSlaveSD * slave
Definition: FastTimerSD.h:84

Member Function Documentation

void FastTimerSD::clear ( void  )
virtual

Definition at line 389 of file FastTimerSD.cc.

389 {}
void FastTimerSD::clearHits ( )
privatevirtual

Implements SensitiveDetector.

Definition at line 440 of file FastTimerSD.cc.

References TrackingSlaveSD::Initialize(), and slave.

Referenced by update().

440  {
441  slave->Initialize();
442 }
TrackingSlaveSD * slave
Definition: FastTimerSD.h:84
virtual void Initialize()
void FastTimerSD::CreateNewHit ( )
private

Definition at line 266 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().

266  {
267 
268 #ifdef EDM_ML_DEBUG
269  std::cout << "FastTimerSD CreateNewHit for" << " PV "
270  << currentPV->GetName() << " PVid = " << currentPV->GetCopyNo()
271  << " Unit " << unitID << std::endl;
272  std::cout << " primary " << primaryID << " time slice " << tSliceID
273  << " For Track " << theTrack->GetTrackID() << " which is a "
274  << theTrack->GetDefinition()->GetParticleName();
275 
276  if (theTrack->GetTrackID()==1) {
277  std::cout << " of energy " << theTrack->GetTotalEnergy();
278  } else {
279  std::cout << " daughter of part. " << theTrack->GetParentID();
280  }
281 
282  std::cout << " and created by " ;
283  if (theTrack->GetCreatorProcess()!=NULL)
284  std::cout << theTrack->GetCreatorProcess()->GetProcessName() ;
285  else
286  std::cout << "NO process";
287  std::cout << std::endl;
288 #endif
289 
290  currentHit = new BscG4Hit;
295 
302 
304 
307 
309  currentHit->setVx(Vx);
310  currentHit->setVy(Vy);
311  currentHit->setVz(Vz);
312 
313  currentHit->setX(X);
314  currentHit->setY(Y);
315  currentHit->setZ(Z);
316 
317  UpdateHit();
318 
320 }
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:323
#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:255
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
tuple cout
Definition: gather_cfg.py:145
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 391 of file FastTimerSD.cc.

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

Reimplemented from SensitiveDetector.

Definition at line 359 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(), j, TrackingSlaveSD::processHits(), slave, Summarize(), and theHC.

359  {
360 
361  // here we loop over transient hits and make them persistent
362  for (int j=0; j<theHC->entries(); j++) {
363  BscG4Hit* aHit = (*theHC)[j];
364 #ifdef EDM_ML_DEBUG
365  std::cout << "hit number " << j << " unit ID = " << std::hex
366  << aHit->getUnitID() << std::dec << " entry z "
367  << aHit->getEntry().z() << " entry theta "
368  << aHit->getThetaAtEntry() << std::endl;
369 #endif
370  Local3DPoint locExitPoint(0,0,0);
371  Local3DPoint locEntryPoint(aHit->getEntry().x(),
372  aHit->getEntry().y(),
373  aHit->getEntry().z());
374  slave->processHits(PSimHit(locEntryPoint,locExitPoint,
375  aHit->getPabs(),
376  aHit->getTof(),
377  aHit->getEnergyLoss(),
378  aHit->getParticleType(),
379  aHit->getUnitID(),
380  aHit->getTrackID(),
381  aHit->getThetaAtEntry(),
382  aHit->getPhiAtEntry()));
383  }
384  Summarize();
385 }
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
int j
Definition: DBlmapReader.cc:9
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 &)
tuple cout
Definition: gather_cfg.py:145
void Summarize()
Definition: FastTimerSD.cc:387
float getEnergyLoss() const
Definition: BSCG4Hit.cc:150
void FastTimerSD::fillHits ( edm::PSimHitContainer c,
std::string  use 
)
virtual

Implements SensitiveTkDetector.

Definition at line 400 of file FastTimerSD.cc.

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

400  {
401  if (slave->name() == n) c=slave->hits();
402 }
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 450 of file FastTimerSD.cc.

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

Referenced by FastTimerSD().

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

Definition at line 101 of file FastTimerSD.cc.

Referenced by GetStepInfo().

101  {
102  return aStep->GetTotalEnergyDeposit();
103 }
std::vector< std::string > FastTimerSD::getNames ( )
virtual

Reimplemented from SensitiveDetector.

Definition at line 444 of file FastTimerSD.cc.

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

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

Definition at line 137 of file FastTimerSD.cc.

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

Referenced by ProcessHits().

137  {
138 
139  preStepPoint = aStep->GetPreStepPoint();
140  postStepPoint= aStep->GetPostStepPoint();
141  theTrack = aStep->GetTrack();
142  hitPoint = preStepPoint->GetPosition();
143  currentPV = preStepPoint->GetPhysicalVolume();
144  hitPointExit = postStepPoint->GetPosition();
145 
146  hitPointLocal = preStepPoint->GetTouchable()->GetHistory()->GetTopTransform().TransformPoint(hitPoint);
147  hitPointLocalExit = preStepPoint->GetTouchable()->GetHistory()->GetTopTransform().TransformPoint(hitPointExit);
148 
149 
150  G4int particleCode = theTrack->GetDefinition()->GetPDGEncoding();
151 #ifdef EDM_ML_DEBUG
152  std::cout << "FastTimerSD :particleType = "
153  << theTrack->GetDefinition()->GetParticleName() << std::endl;
154 #endif
155  if (particleCode == emPDG ||
156  particleCode == epPDG ||
157  particleCode == gammaPDG ) {
158  edepositEM = getEnergyDeposit(aStep); edepositHAD = 0.;
159  } else {
160  edepositEM = 0.; edepositHAD = getEnergyDeposit(aStep);
161  }
162  edeposit = aStep->GetTotalEnergyDeposit();
163  tSlice = (100*postStepPoint->GetGlobalTime() )/CLHEP::nanosecond;
164  tSliceID = (int) tSlice;
165  unitID = setDetUnitId(aStep);
166 #ifdef EDM_ML_DEBUG
167  std::cout << "FastTimerSD:unitID = " << std::hex << unitID << std::dec<<"\n";
168 #endif
169  primaryID = theTrack->GetTrackID();
170  // Position = hitPoint;
171  Pabs = aStep->GetPreStepPoint()->GetMomentum().mag()/CLHEP::GeV;
172  Tof = aStep->GetPostStepPoint()->GetGlobalTime()/CLHEP::nanosecond;
173  Eloss = aStep->GetTotalEnergyDeposit()/CLHEP::GeV;
174  ParticleType = theTrack->GetDefinition()->GetPDGEncoding();
175  ThetaAtEntry = aStep->GetPreStepPoint()->GetPosition().theta()/CLHEP::deg;
176  PhiAtEntry = aStep->GetPreStepPoint()->GetPosition().phi()/CLHEP::deg;
177 
178  ParentId = theTrack->GetParentID();
179  Vx = theTrack->GetVertexPosition().x();
180  Vy = theTrack->GetVertexPosition().y();
181  Vz = theTrack->GetVertexPosition().z();
182  X = hitPoint.x();
183  Y = hitPoint.y();
184  Z = hitPoint.z();
185 }
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:101
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:187
tuple cout
Definition: gather_cfg.py:145
float ThetaAtEntry
Definition: FastTimerSD.h:118
G4int primaryID
Definition: FastTimerSD.h:104
G4bool FastTimerSD::HitExists ( )
private

Definition at line 208 of file FastTimerSD.cc.

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

Referenced by ProcessHits().

208  {
209  if (primaryID<1) {
210  edm::LogWarning("FastTimerSim") << "***** FastTimerSD error: primaryID = "
211  << primaryID
212  << " maybe detector name changed";
213  }
214 
215  // Update if in the same detector, time-slice and for same track
216  if (tSliceID == tsID && unitID==previousUnitID) {
217  UpdateHit();
218  return true;
219  }
220  // Reset entry point for new primary
221  if (primaryID != primID)
223 
224  //look in the HitContainer whether a hit with the same primID, unitID,
225  //tSliceID already exists:
226 
227  G4bool found = false;
228 
229  for (int j=0; j<theHC->entries()&&!found; j++) {
230  BscG4Hit* aPreviousHit = (*theHC)[j];
231  if (aPreviousHit->getTrackID() == primaryID &&
232  aPreviousHit->getTimeSliceID() == tSliceID &&
233  aPreviousHit->getUnitID() == unitID ) {
234  currentHit = aPreviousHit;
235  found = true;
236  }
237  }
238 
239  if (found) {
240  UpdateHit();
241  return true;
242  } else {
243  return false;
244  }
245 }
G4int getTrackID() const
Definition: BSCG4Hit.cc:133
G4int tSliceID
Definition: FastTimerSD.h:104
void UpdateHit()
Definition: FastTimerSD.cc:323
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
int j
Definition: DBlmapReader.cc:9
void ResetForNewPrimary()
Definition: FastTimerSD.cc:248
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 105 of file FastTimerSD.cc.

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

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

Definition at line 393 of file FastTimerSD.cc.

References gather_cfg::cout, and theHC.

393  {
394 #ifdef EDM_ML_DEBUG
395  std::cout << "FastTimerSD: Collection " << theHC->GetName() << std::endl;
396 #endif
397  theHC->PrintAllHits();
398 }
BscG4HitCollection * theHC
Definition: FastTimerSD.h:96
tuple cout
Definition: gather_cfg.py:145
bool FastTimerSD::ProcessHits ( G4Step *  aStep,
G4TouchableHistory *   
)
virtual

Implements SensitiveDetector.

Definition at line 120 of file FastTimerSD.cc.

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

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

Definition at line 248 of file FastTimerSD.cc.

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

Referenced by HitExists().

248  {
251  incidentEnergy = preStepPoint->GetKineticEnergy();
252 }
G4ThreeVector hitPoint
Definition: FastTimerSD.h:111
G4ThreeVector hitPointExit
Definition: FastTimerSD.h:112
G4ThreeVector SetToLocalExit(const G4ThreeVector &globalPoint)
Definition: FastTimerSD.cc:351
G4ThreeVector SetToLocal(const G4ThreeVector &global)
Definition: FastTimerSD.cc:343
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 187 of file FastTimerSD.cc.

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

Referenced by GetStepInfo().

187  {
188 
189  //Find the depth segment
190  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
191  G4ThreeVector global = aStep->GetPreStepPoint()->GetPosition();
192  G4ThreeVector local = touch->GetHistory()->GetTopTransform().TransformPoint(global);
193  int iz = (global.z() > 0) ? 1 : -1;
194  std::pair<int,int> izphi = ((ftcons) ? ((type_ == 1) ?
195  (ftcons->getZPhi(std::abs(local.z()),local.phi())) :
196  (ftcons->getEtaPhi(local.perp(),local.phi()))) :
197  (std::pair<int,int>(0,0)));
198  uint32_t id = FastTimeDetId(type_,izphi.first,izphi.second,iz).rawId();
199 #ifdef EDM_ML_DEBUG
200  std::cout << "Volume " << touch->GetVolume(0)->GetName() << ":" << global.z()
201  << " Iz(eta)phi " << izphi.first << ":" << izphi.second << ":"
202  << iz << " id " << std::hex << id << std::dec << std::endl;
203 #endif
204  return id;
205 }
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
tuple cout
Definition: gather_cfg.py:145
G4ThreeVector FastTimerSD::SetToLocal ( const G4ThreeVector &  global)
private

Definition at line 343 of file FastTimerSD.cc.

References preStepPoint, and theEntryPoint.

Referenced by ResetForNewPrimary().

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

Definition at line 351 of file FastTimerSD.cc.

References postStepPoint, and theExitPoint.

Referenced by ResetForNewPrimary().

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

Definition at line 255 of file FastTimerSD.cc.

References primID, and theHC.

Referenced by CreateNewHit().

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

Definition at line 387 of file FastTimerSD.cc.

Referenced by EndOfEvent().

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

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfJob * >.

Definition at line 404 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().

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

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfRun * >.

Definition at line 428 of file FastTimerSD.cc.

References emPDG, epPDG, and gammaPDG.

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().

428  {
429 
430  G4ParticleTable * theParticleTable = G4ParticleTable::GetParticleTable();
431  G4String particleName;
432  emPDG = theParticleTable->FindParticle(particleName="e-")->GetPDGEncoding();
433  epPDG = theParticleTable->FindParticle(particleName="e+")->GetPDGEncoding();
434  gammaPDG = theParticleTable->FindParticle(particleName="gamma")->GetPDGEncoding();
435 
436 }
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 420 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().

420  {
421 #ifdef EDM_ML_DEBUG
422  std::cout << "Dispatched BeginOfEvent for " << GetName() << " !\n" ;
423 #endif
424  clearHits();
425  eventno = (*i)()->GetEventID();
426 }
tuple cout
Definition: gather_cfg.py:145
virtual void clearHits()
Definition: FastTimerSD.cc:440
void FastTimerSD::update ( const ::EndOfEvent )
privatevirtual
void FastTimerSD::UpdateHit ( )
private

Definition at line 323 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().

323  {
324 
325  if (Eloss > 0.) {
327 
328 #ifdef EDM_ML_DEBUG
329  std::cout << "updateHit: add eloss " << Eloss <<std::endl;
330  std::cout << "CurrentHit="<< currentHit<< ", PostStepPoint = "
331  << postStepPoint->GetPosition() << std::endl;
332 #endif
334  }
335 
336  // buffer for next steps:
337  tsID = tSliceID;
338  primID = primaryID;
340 }
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
tuple cout
Definition: gather_cfg.py:145
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().