CMS 3D CMS Logo

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

#include <ECalSD.h>

Inheritance diagram for ECalSD:
CaloSD SensitiveCaloDetector Observer< const BeginOfRun *> Observer< const BeginOfEvent *> Observer< const BeginOfTrack *> Observer< const EndOfTrack *> Observer< const EndOfEvent *> SensitiveDetector

Public Member Functions

 ECalSD (const std::string &, const EcalSimulationParameters *, const SensitiveDetectorCatalog &, edm::ParameterSet const &p, const SimTrackManager *)
 
uint32_t setDetUnitId (const G4Step *) override
 
void setNumberingScheme (EcalNumberingScheme *)
 
 ~ECalSD () override
 
- Public Member Functions inherited from CaloSD
 CaloSD (const std::string &aSDname, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false, const std::string &newcolname="")
 
void clear () override
 
void clearHits () override
 
void DrawAll () override
 
void EndOfEvent (G4HCofThisEvent *eventHC) override
 
void fillHits (edm::PCaloHitContainer &, const std::string &) override
 
void Initialize (G4HCofThisEvent *HCE) override
 
bool isItFineCalo (const G4VTouchable *touch)
 
void newCollection (const std::string &name, edm::ParameterSet const &p)
 
void PrintAll () override
 
G4bool ProcessHits (G4Step *step, G4TouchableHistory *) override
 
bool ProcessHits (G4GFlashSpot *aSpot, G4TouchableHistory *) override
 
void reset () override
 
 ~CaloSD () override
 
- Public Member Functions inherited from SensitiveCaloDetector
 SensitiveCaloDetector (const std::string &iname, const SensitiveDetectorCatalog &clg, const std::string &newcollname="")
 
- Public Member Functions inherited from SensitiveDetector
void EndOfEvent (G4HCofThisEvent *eventHC) override
 
const std::vector< std::string > & getNames () const
 
void Initialize (G4HCofThisEvent *eventHC) override
 
bool isCaloSD () const
 
 SensitiveDetector (const std::string &iname, const SensitiveDetectorCatalog &, bool calo, const std::string &newcollname="")
 
 ~SensitiveDetector () override
 
- 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 BeginOfTrack *>
 Observer ()
 
void slotForUpdate (const BeginOfTrack * iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const EndOfTrack *>
 Observer ()
 
void slotForUpdate (const EndOfTrack * iT)
 
virtual ~Observer ()
 
- Public Member Functions inherited from Observer< const EndOfEvent *>
 Observer ()
 
void slotForUpdate (const EndOfEvent * iT)
 
virtual ~Observer ()
 

Protected Member Functions

double EnergyCorrected (const G4Step &, const G4Track *) override
 
uint16_t getDepth (const G4Step *) override
 
double getEnergyDeposit (const G4Step *) override
 
int getTrackID (const G4Track *) override
 
- Protected Member Functions inherited from CaloSD
bool checkHit (int k=0)
 
CaloG4HitcreateNewHit (const G4Step *, const G4Track *, int k)
 
virtual void endEvent ()
 
virtual bool filterHit (CaloG4Hit *, double)
 
unsigned int findBoundaryCrossingParent (const G4Track *track, bool markParentAsSaveable=true)
 
double getAttenuation (const G4Step *aStep, double birk1, double birk2, double birk3) const
 
virtual bool getFromLibrary (const G4Step *step)
 
int getNumberOfHits (int k=0)
 
double getResponseWt (const G4Track *, int k=0)
 
bool hitExists (const G4Step *, int k)
 
void ignoreRejection ()
 
virtual void initEvent (const BeginOfEvent *)
 
virtual void initRun ()
 
void printDetectorLevels (const G4VTouchable *) const
 
void processHit (const G4Step *step)
 
virtual void processSecondHit (const G4Step *, const G4Track *)
 
void resetForNewPrimary (const G4Step *)
 
void setNumberCheckedHits (int val, int k=0)
 
void setParameterized (bool val)
 
G4ThreeVector setToGlobal (const G4ThreeVector &, const G4VTouchable *) const
 
G4ThreeVector setToLocal (const G4ThreeVector &, const G4VTouchable *) const
 
virtual int setTrackID (const G4Step *)
 
void setUseMap (bool val)
 
std::string shortreprID (const CaloHitID &ID)
 
std::string shortreprID (const CaloG4Hit *hit)
 
void update (const BeginOfRun *) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const BeginOfEvent *) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const BeginOfTrack *trk) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const EndOfTrack *trk) override
 This routine will be called when the appropriate signal arrives. More...
 
void update (const ::EndOfEvent *) override
 
void updateHit (CaloG4Hit *, int k)
 
- Protected Member Functions inherited from SensitiveDetector
TrackInformationcmsTrackInformation (const G4Track *aTrack)
 
Local3DPoint ConvertToLocal3DPoint (const G4ThreeVector &point) const
 
Local3DPoint FinalStepPosition (const G4Step *step, coordinates) const
 
Local3DPoint InitialStepPosition (const G4Step *step, coordinates) const
 
Local3DPoint LocalPostStepPosition (const G4Step *step) const
 
Local3DPoint LocalPreStepPosition (const G4Step *step) const
 
void NaNTrap (const G4Step *step) const
 
void setNames (const std::vector< std::string > &)
 
- 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...
 

Private Member Functions

double curve_LY (const G4LogicalVolume *)
 
void getBaseNumber (const G4Step *)
 
double getBirkL3 (const G4Step *)
 
uint16_t getLayerIDForTimeSim ()
 
uint16_t getRadiationLength (const G4StepPoint *hitPoint, const G4LogicalVolume *lv)
 
void initMap ()
 
bool isXtal (const G4LogicalVolume *)
 

Private Attributes

EnergyResolutionVsLumi ageing
 
bool ageingWithSlopeLY
 
double birk1
 
double birk2
 
double birk3
 
double birkCut
 
double birkSlope
 
double crystalDepth
 
double crystalLength
 
std::string crystalMat
 
G4ThreeVector currentLocalPoint
 
uint16_t depth
 
std::string depth1Name
 
std::string depth2Name
 
const EcalSimulationParametersecalSimParameters_
 
std::vector< const G4LogicalVolume * > noWeight
 
std::unique_ptr< EcalNumberingSchemenumberingScheme_
 
double scaleRL
 
double slopeLY
 
bool storeLayerTimeSim
 
bool storeRL
 
bool storeTrack
 
EcalBaseNumber theBaseNumber
 
bool useBirk
 
bool useBirkL3
 
std::vector< const G4LogicalVolume * > useDepth1
 
std::vector< const G4LogicalVolume * > useDepth2
 
bool useWeight
 
std::map< const G4LogicalVolume *, double > xtalLMap
 

Additional Inherited Members

- Protected Types inherited from SensitiveDetector
enum  coordinates { WorldCoordinates, LocalCoordinates }
 
- Static Protected Member Functions inherited from CaloSD
static std::string printableDecayChain (const std::vector< unsigned int > &decayChain)
 
- Protected Attributes inherited from CaloSD
std::string collName_ [2]
 
CaloG4HitcurrentHit [2]
 
CaloHitID currentID [2]
 
std::string detName_
 
float edepositEM
 
float edepositHAD
 
double eminHit
 
double energyCut
 
G4ThreeVector entranceLocal
 
G4ThreeVector entrancePoint
 
bool forceSave
 
std::vector< std::string > hcn_
 
float incidentEnergy
 
double kmaxIon
 
double kmaxNeutron
 
double kmaxProton
 
int nHC_
 
G4ThreeVector posGlobal
 
CaloHitID previousID [2]
 
bool suppressHeavy
 
double tmaxHit
 
std::vector< int > useResMap_
 

Detailed Description

Definition at line 31 of file ECalSD.h.

Constructor & Destructor Documentation

◆ ECalSD()

ECalSD::ECalSD ( const std::string &  name,
const EcalSimulationParameters ecpar,
const SensitiveDetectorCatalog clg,
edm::ParameterSet const &  p,
const SimTrackManager manager 
)

Definition at line 41 of file ECalSD.cc.

References ageing, ageingWithSlopeLY, birk1, birk2, birk3, birkCut, birkSlope, crystalMat, depth1Name, EcalSimulationParameters::depth1Name_, depth2Name, EcalSimulationParameters::depth2Name_, GCP_Ntuples_cfg::dump, ecalSimParameters_, Exception, g, relativeConstraints::geom, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), initMap(), isotrackApplyRegressor::k, CaloSD::kmaxIon, CaloSD::kmaxNeutron, CaloSD::kmaxProton, SensitiveDetectorCatalog::logicalNames(), materialBudgetVolume_cfi::lvNames, TFileDirectory::make(), mergeVDriftHistosByStation::name, numberingScheme_, AlCaHLTBitMon_ParallelJobs::p, scaleRL, generator_cfi::scheme, EnergyResolutionVsLumi::setLumies(), setNumberingScheme(), slopeLY, storeLayerTimeSim, storeRL, storeTrack, AlCaHLTBitMon_QueryRunRegistry::string, CaloSD::suppressHeavy, compare::tfile, runGCPTkAlMap::title, useBirk, useBirkL3, useWeight, EcalSimulationParameters::useWeight_, and TrackerOfflineValidation_Dqm_cff::xmin.

46  : CaloSD(name,
47  clg,
48  p,
49  manager,
50  (float)(p.getParameter<edm::ParameterSet>("ECalSD").getParameter<double>("TimeSliceUnit")),
51  p.getParameter<edm::ParameterSet>("ECalSD").getParameter<bool>("IgnoreTrackID")),
52  ecalSimParameters_(ecpar) {
53  numberingScheme_.reset(nullptr);
54  // static SimpleConfigurable<bool> on1(false, "ECalSD:UseBirkLaw");
55  // static SimpleConfigurable<double> bk1(0.00463,"ECalSD:BirkC1");
56  // static SimpleConfigurable<double> bk2(-0.03, "ECalSD:BirkC2");
57  // static SimpleConfigurable<double> bk3(1.0, "ECalSD:BirkC3");
58  // Values from NIM A484 (2002) 239-244: as implemented in Geant3
59  // useBirk = on1.value();
60  // birk1 = bk1.value()*(g/(MeV*cm2));
61  // birk2 = bk2.value()*(g/(MeV*cm2))*(g/(MeV*cm2));
62  edm::ParameterSet m_EC = p.getParameter<edm::ParameterSet>("ECalSD");
63  useBirk = m_EC.getParameter<bool>("UseBirkLaw");
64  useBirkL3 = m_EC.getParameter<bool>("BirkL3Parametrization");
65  double bunit = (CLHEP::g / (CLHEP::MeV * CLHEP::cm2));
66  birk1 = m_EC.getParameter<double>("BirkC1") * bunit;
67  birk2 = m_EC.getParameter<double>("BirkC2");
68  birk3 = m_EC.getParameter<double>("BirkC3");
69  birkSlope = m_EC.getParameter<double>("BirkSlope");
70  birkCut = m_EC.getParameter<double>("BirkCut");
71  slopeLY = m_EC.getParameter<double>("SlopeLightYield");
72  storeTrack = m_EC.getParameter<bool>("StoreSecondary");
73  crystalMat = m_EC.getUntrackedParameter<std::string>("XtalMat", "E_PbWO4");
74  bool isItTB = m_EC.getUntrackedParameter<bool>("TestBeam", false);
75  bool nullNS = m_EC.getUntrackedParameter<bool>("NullNumbering", false);
76  storeRL = m_EC.getUntrackedParameter<bool>("StoreRadLength", false);
77  scaleRL = m_EC.getUntrackedParameter<double>("ScaleRadLength", 1.0);
78  int dumpGeom = m_EC.getUntrackedParameter<int>("DumpGeometry", 0);
79 
80  //Changes for improved timing simulation
81  storeLayerTimeSim = m_EC.getUntrackedParameter<bool>("StoreLayerTimeSim", false);
82 
83  ageingWithSlopeLY = m_EC.getUntrackedParameter<bool>("AgeingWithSlopeLY", false);
85  ageing.setLumies(p.getParameter<edm::ParameterSet>("ECalSD").getParameter<double>("DelivLuminosity"),
86  p.getParameter<edm::ParameterSet>("ECalSD").getParameter<double>("InstLuminosity"));
87 
88  if (ecalSimParameters_ == nullptr) {
89  edm::LogError("EcalSim") << "ECalSD : Cannot find EcalSimulationParameters for " << name;
90  throw cms::Exception("Unknown", "ECalSD") << "Cannot find EcalSimulationParameters for " << name << "\n";
91  }
92 
93  // Use of Weight
95 #ifdef EDM_ML_DEBUG
96  edm::LogVerbatim("EcalSim") << "ECalSD:: useWeight " << useWeight;
97 #endif
100 #ifdef EDM_ML_DEBUG
101  edm::LogVerbatim("EcalSim") << "Names (Depth 1):" << depth1Name << " (Depth 2):" << depth2Name << std::endl;
102 #endif
103  int type(-1);
104  bool dump(false);
105  EcalNumberingScheme* scheme = nullptr;
106  if (nullNS) {
107  scheme = nullptr;
108  } else if (name == "EcalHitsEB") {
109  scheme = dynamic_cast<EcalNumberingScheme*>(new EcalBarrelNumberingScheme());
110  type = 0;
111  dump = ((dumpGeom % 10) > 0);
112  } else if (name == "EcalHitsEE") {
113  scheme = dynamic_cast<EcalNumberingScheme*>(new EcalEndcapNumberingScheme());
114  type = 1;
115  dump = (((dumpGeom / 10) % 10) > 0);
116  } else if (name == "EcalHitsES") {
117  if (isItTB)
118  scheme = dynamic_cast<EcalNumberingScheme*>(new ESTBNumberingScheme());
119  else
121  useWeight = false;
122  type = 2;
123  dump = (((dumpGeom / 100) % 10) > 0);
124  } else {
125  edm::LogWarning("EcalSim") << "ECalSD: ReadoutName not supported";
126  }
127  int type0 = dumpGeom / 1000;
128  type += (10 * type0);
129 
130  if (nullptr != scheme) {
132  }
133 #ifdef EDM_ML_DEBUG
134  edm::LogVerbatim("EcalSim") << "Constructing a ECalSD with name " << GetName();
135 #endif
136  if (useWeight) {
137  edm::LogVerbatim("EcalSim") << "ECalSD:: Use of Birks law is set to " << useBirk
138  << " with three constants kB = " << birk1 / bunit << ", C1 = " << birk2
139  << ", C2 = " << birk3 << "\n Use of L3 parametrization " << useBirkL3
140  << " with slope " << birkSlope << " and cut off " << birkCut << "\n"
141  << " Slope for Light yield is set to " << slopeLY;
142  } else {
143  edm::LogVerbatim("EcalSim") << "ECalSD:: energy deposit is not corrected "
144  << " by Birk or light yield curve";
145  }
146 
147  edm::LogVerbatim("EcalSim") << "ECalSD:: Suppression Flag " << suppressHeavy << "\tprotons below "
148  << kmaxProton / CLHEP::MeV << " MeV,\tneutrons below " << kmaxNeutron / CLHEP::MeV
149  << " MeV,\tions below " << kmaxIon / CLHEP::MeV << " MeV \n\tDepth1 Name = " << depth1Name
150  << "\tDepth2 Name = " << depth2Name << "\n\tstoreRL " << storeRL << ":" << scaleRL
151  << "\tstoreLayerTimeSim " << storeLayerTimeSim << "\n\ttime Granularity "
152  << p.getParameter<edm::ParameterSet>("ECalSD").getParameter<double>("TimeSliceUnit")
153  << " ns";
154  if (useWeight)
155  initMap();
156 #ifdef plotDebug
158  if (tfile.isAvailable()) {
159  TFileDirectory ecDir = tfile->mkdir("ProfileFromECalSD");
160  static const std::string ctype[4] = {"EB", "EBref", "EE", "EERef"};
161  for (int k = 0; k < 4; ++k) {
162  std::string name = "ECLL_" + ctype[k];
163  std::string title = "Local vs Global for " + ctype[k];
164  double xmin = (k > 1) ? 3000.0 : 1000.0;
165  g2L_[k] = ecDir.make<TH2F>(name.c_str(), title.c_str(), 100, xmin, xmin + 1000., 100, 0.0, 3000.);
166  }
167  } else {
168  for (int k = 0; k < 4; ++k)
169  g2L_[k] = 0;
170  }
171 #endif
172  if (dump) {
173  const auto& lvNames = clg.logicalNames(name);
175  geom.update();
176  }
177 }
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
bool useBirkL3
Definition: ECalSD.h:62
double kmaxNeutron
Definition: CaloSD.h:155
double birkSlope
Definition: ECalSD.h:63
double slopeLY
Definition: ECalSD.h:64
void setLumies(double x, double y)
double birk1
Definition: ECalSD.h:63
bool useWeight
Definition: ECalSD.h:61
std::unique_ptr< EcalNumberingScheme > numberingScheme_
Definition: ECalSD.h:60
Log< level::Error, false > LogError
double kmaxProton
Definition: CaloSD.h:155
const std::vector< std::string_view > logicalNames(const std::string &readoutName) const
bool storeLayerTimeSim
Definition: ECalSD.h:61
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
bool storeRL
Definition: ECalSD.h:61
void initMap()
Definition: ECalSD.cc:339
T getUntrackedParameter(std::string const &, T const &) const
T * make(const Args &...args) const
make new ROOT object
std::string depth1Name
Definition: ECalSD.h:65
bool storeTrack
Definition: ECalSD.h:61
double kmaxIon
Definition: CaloSD.h:155
bool suppressHeavy
Definition: CaloSD.h:154
Definition: tfile.py:1
double scaleRL
Definition: ECalSD.h:64
const EcalSimulationParameters * ecalSimParameters_
Definition: ECalSD.h:59
std::string depth2Name
Definition: ECalSD.h:65
CaloSD(const std::string &aSDname, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false, const std::string &newcolname="")
Definition: CaloSD.cc:34
bool ageingWithSlopeLY
Definition: ECalSD.h:70
bool useBirk
Definition: ECalSD.h:62
double birk2
Definition: ECalSD.h:63
EnergyResolutionVsLumi ageing
Definition: ECalSD.h:69
Log< level::Warning, false > LogWarning
void setNumberingScheme(EcalNumberingScheme *)
Definition: ECalSD.cc:332
double birkCut
Definition: ECalSD.h:63
std::string crystalMat
Definition: ECalSD.h:65
double birk3
Definition: ECalSD.h:63

◆ ~ECalSD()

ECalSD::~ECalSD ( )
override

Definition at line 179 of file ECalSD.cc.

179 {}

Member Function Documentation

◆ curve_LY()

double ECalSD::curve_LY ( const G4LogicalVolume *  lv)
private

Definition at line 432 of file ECalSD.cc.

References ageing, ageingWithSlopeLY, EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), crystalDepth, crystalLength, CaloSD::currentID, currentLocalPoint, DD4hep2DDDName::noNameSpace(), slopeLY, and mps_merge::weight.

Referenced by EnergyCorrected(), and getEnergyDeposit().

432  {
433  double weight = 1.;
434  if (ageingWithSlopeLY) {
435  //position along the crystal in mm from 0 to 230 (in EB)
436  if (crystalDepth >= -0.1 || crystalDepth <= crystalLength + 0.1)
438  } else {
439  double dapd = crystalLength - crystalDepth;
440  if (dapd >= -0.1 || dapd <= crystalLength + 0.1) {
441  if (dapd <= 100.)
442  weight = 1.0 + slopeLY - dapd * 0.01 * slopeLY;
443  } else {
444  edm::LogWarning("EcalSim") << "ECalSD: light coll curve : wrong distance "
445  << "to APD " << dapd << " crlength = " << crystalLength << ":" << crystalDepth
446  << " crystal name = " << lv->GetName() << " "
447  << DD4hep2DDDName::noNameSpace(static_cast<std::string>(lv->GetName()))
448  << " z of localPoint = " << currentLocalPoint.z() << " take weight = " << weight;
449  }
450  }
451 #ifdef EDM_ML_DEBUG
452  edm::LogVerbatim("EcalSim") << "ECalSD: light coll curve : crlength = " << crystalLength << " Depth " << crystalDepth
453  << " crystal name = " << lv->GetName() << " "
454  << DD4hep2DDDName::noNameSpace(static_cast<std::string>(lv->GetName()))
455  << " z of localPoint = " << currentLocalPoint.z() << " take weight = " << weight;
456 #endif
457  return weight;
458 }
Log< level::Info, true > LogVerbatim
double crystalLength
Definition: ECalSD.h:74
double slopeLY
Definition: ECalSD.h:64
Definition: weight.py:1
double crystalDepth
Definition: ECalSD.h:75
G4ThreeVector currentLocalPoint
Definition: ECalSD.h:73
bool ageingWithSlopeLY
Definition: ECalSD.h:70
double calcLightCollectionEfficiencyWeighted(DetId id, double z)
CaloHitID currentID[2]
Definition: CaloSD.h:146
std::string noNameSpace(const std::string &name)
EnergyResolutionVsLumi ageing
Definition: ECalSD.h:69
Log< level::Warning, false > LogWarning

◆ EnergyCorrected()

double ECalSD::EnergyCorrected ( const G4Step &  step,
const G4Track *  track 
)
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 231 of file ECalSD.cc.

References funct::abs(), any(), crystalDepth, crystalLength, currentLocalPoint, curve_LY(), CaloSD::getResponseWt(), noWeight, CaloSD::setToLocal(), HLT_2024v14_cff::track, useWeight, and xtalLMap.

231  {
232  const G4StepPoint* hitPoint = step.GetPreStepPoint();
233  const G4LogicalVolume* lv = hitPoint->GetTouchable()->GetVolume(0)->GetLogicalVolume();
234  if (lv->GetSensitiveDetector() != this)
235  return 0.0;
236 
237  double edep = step.GetTotalEnergyDeposit();
238  if (useWeight && !any(noWeight, lv)) {
239  currentLocalPoint = setToLocal(hitPoint->GetPosition(), hitPoint->GetTouchable());
240  auto ite = xtalLMap.find(lv);
241  crystalLength = (ite == xtalLMap.end()) ? 230._mm : std::abs(ite->second);
242  crystalDepth = (ite == xtalLMap.end()) ? 0.0 : (std::abs(0.5 * (ite->second) + currentLocalPoint.z()));
243  edep *= curve_LY(lv) * getResponseWt(track);
244  }
245  return edep;
246 }
double crystalLength
Definition: ECalSD.h:74
std::vector< const G4LogicalVolume * > noWeight
Definition: ECalSD.h:67
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:37
bool useWeight
Definition: ECalSD.h:61
G4ThreeVector setToLocal(const G4ThreeVector &, const G4VTouchable *) const
Definition: CaloSD.cc:455
double crystalDepth
Definition: ECalSD.h:75
std::map< const G4LogicalVolume *, double > xtalLMap
Definition: ECalSD.h:66
double getResponseWt(const G4Track *, int k=0)
Definition: CaloSD.cc:929
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
G4ThreeVector currentLocalPoint
Definition: ECalSD.h:73
double curve_LY(const G4LogicalVolume *)
Definition: ECalSD.cc:432
step
Definition: StallMonitor.cc:83

◆ getBaseNumber()

void ECalSD::getBaseNumber ( const G4Step *  aStep)
private

Definition at line 460 of file ECalSD.cc.

References EcalBaseNumber::addLevel(), EcalBaseNumber::getCapacity(), cuy::ii, mergeVDriftHistosByStation::name, DD4hep2DDDName::noNameSpace(), EcalBaseNumber::reset(), EcalBaseNumber::setSize(), AlCaHLTBitMon_QueryRunRegistry::string, and theBaseNumber.

Referenced by setDetUnitId().

460  {
462  const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
463  int theSize = touch->GetHistoryDepth() + 1;
464  if (theBaseNumber.getCapacity() < theSize)
465  theBaseNumber.setSize(theSize);
466  //Get name and copy numbers
467  if (theSize > 1) {
468  for (int ii = 0; ii < theSize; ii++) {
469  std::string name = DD4hep2DDDName::noNameSpace(static_cast<std::string>(touch->GetVolume(ii)->GetName()));
470  theBaseNumber.addLevel(name, touch->GetReplicaNumber(ii));
471 #ifdef EDM_ML_DEBUG
472  edm::LogVerbatim("EcalSim") << "ECalSD::getBaseNumber(): Adding level " << ii << ": " << name << "["
473  << touch->GetReplicaNumber(ii) << "]";
474 #endif
475  }
476  }
477 }
Log< level::Info, true > LogVerbatim
void addLevel(const std::string &name, const int &copyNumber)
EcalBaseNumber theBaseNumber
Definition: ECalSD.h:68
ii
Definition: cuy.py:589
std::string noNameSpace(const std::string &name)
void setSize(const int &size)

◆ getBirkL3()

double ECalSD::getBirkL3 ( const G4Step *  aStep)
private

Definition at line 479 of file ECalSD.cc.

References birk1, birkCut, birkSlope, ALCARECOTkAlJpsiMuMu_cff::charge, fastSimProducer_cff::density, CrabHelper::log, DD4hep2DDDName::noNameSpace(), and mps_merge::weight.

Referenced by getEnergyDeposit().

479  {
480  double weight = 1.;
481  const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
482  double charge = preStepPoint->GetCharge();
483 
484  if (charge != 0. && aStep->GetStepLength() > 0.) {
485  const G4Material* mat = preStepPoint->GetMaterial();
486  double density = mat->GetDensity();
487  double dedx = aStep->GetTotalEnergyDeposit() / aStep->GetStepLength();
488  double rkb = birk1 / density;
489  if (dedx > 0) {
490  weight = 1. - birkSlope * log(rkb * dedx);
491  if (weight < birkCut)
492  weight = birkCut;
493  else if (weight > 1.)
494  weight = 1.;
495  }
496 #ifdef EDM_ML_DEBUG
497  edm::LogVerbatim("EcalSim") << "ECalSD::getBirkL3 in "
498  << DD4hep2DDDName::noNameSpace(static_cast<std::string>(mat->GetName())) << " Charge "
499  << charge << " dE/dx " << dedx << " Birk Const " << rkb << " Weight = " << weight
500  << " dE " << aStep->GetTotalEnergyDeposit();
501 #endif
502  }
503  return weight;
504 }
Log< level::Info, true > LogVerbatim
double birkSlope
Definition: ECalSD.h:63
double birk1
Definition: ECalSD.h:63
Definition: weight.py:1
std::string noNameSpace(const std::string &name)
double birkCut
Definition: ECalSD.h:63

◆ getDepth()

uint16_t ECalSD::getDepth ( const G4Step *  aStep)
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 259 of file ECalSD.cc.

References funct::abs(), any(), crystalDepth, crystalLength, currentLocalPoint, TauDecayModes::dec, depth, getLayerIDForTimeSim(), getRadiationLength(), isXtal(), PCaloHit::kEcalDepthMask, PCaloHit::kEcalDepthOffset, PCaloHit::kEcalDepthRefz, rho, setDetUnitId(), CaloSD::setToLocal(), storeLayerTimeSim, storeRL, useDepth1, useDepth2, xtalLMap, and z.

259  {
260  // this method should be called first at a step
261  const G4StepPoint* hitPoint = aStep->GetPreStepPoint();
262  currentLocalPoint = setToLocal(hitPoint->GetPosition(), hitPoint->GetTouchable());
263  const G4LogicalVolume* lv = hitPoint->GetTouchable()->GetVolume(0)->GetLogicalVolume();
264 
265  auto ite = xtalLMap.find(lv);
266  crystalLength = (ite == xtalLMap.end()) ? 230._mm : std::abs(ite->second);
267  crystalDepth = (ite == xtalLMap.end()) ? 0.0 : (std::abs(0.5 * (ite->second) + currentLocalPoint.z()));
268  depth = any(useDepth1, lv) ? 1 : (any(useDepth2, lv) ? 2 : 0);
269  uint16_t depth1(0), depth2(0);
270  if (storeRL) {
271  depth1 = (ite == xtalLMap.end()) ? 0 : (((ite->second) >= 0) ? 0 : PCaloHit::kEcalDepthRefz);
272  depth2 = getRadiationLength(hitPoint, lv);
273  depth |= (((depth2 & PCaloHit::kEcalDepthMask) << PCaloHit::kEcalDepthOffset) | depth1);
274  } else if (storeLayerTimeSim) {
275  depth2 = getLayerIDForTimeSim();
277  }
278 #ifdef EDM_ML_DEBUG
279  if (isXtal(lv))
280  edm::LogVerbatim("EcalSimX") << "ECalSD::Volume " << lv->GetName() << " DetId " << std::hex << setDetUnitId(aStep)
281  << std::dec << " Global " << (hitPoint->GetPosition()).rho() << ":"
282  << (hitPoint->GetPosition()).z() << " Local Z " << currentLocalPoint.z() << " Depth "
283  << crystalDepth;
284  edm::LogVerbatim("EcalSim") << "ECalSD::Depth " << std::hex << depth1 << ":" << depth2 << ":" << depth << std::dec
285  << " L " << (ite == xtalLMap.end()) << ":" << ite->second << " local "
286  << currentLocalPoint << " Crystal length " << crystalLength << ":" << crystalDepth;
287 #endif
288  return depth;
289 }
Log< level::Info, true > LogVerbatim
double crystalLength
Definition: ECalSD.h:74
bool isXtal(const G4LogicalVolume *)
Definition: ECalSD.cc:506
std::vector< const G4LogicalVolume * > useDepth2
Definition: ECalSD.h:67
static const int kEcalDepthRefz
Definition: PCaloHit.h:63
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:37
G4ThreeVector setToLocal(const G4ThreeVector &, const G4VTouchable *) const
Definition: CaloSD.cc:455
double crystalDepth
Definition: ECalSD.h:75
bool storeLayerTimeSim
Definition: ECalSD.h:61
bool storeRL
Definition: ECalSD.h:61
std::map< const G4LogicalVolume *, double > xtalLMap
Definition: ECalSD.h:66
static const int kEcalDepthMask
Definition: PCaloHit.h:61
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
uint16_t getLayerIDForTimeSim()
Definition: ECalSD.cc:318
static const int kEcalDepthOffset
Definition: PCaloHit.h:62
G4ThreeVector currentLocalPoint
Definition: ECalSD.h:73
uint16_t getRadiationLength(const G4StepPoint *hitPoint, const G4LogicalVolume *lv)
Definition: ECalSD.cc:291
std::vector< const G4LogicalVolume * > useDepth1
Definition: ECalSD.h:67
uint16_t depth
Definition: ECalSD.h:76
uint32_t setDetUnitId(const G4Step *) override
Definition: ECalSD.cc:323

◆ getEnergyDeposit()

double ECalSD::getEnergyDeposit ( const G4Step *  aStep)
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 181 of file ECalSD.cc.

References any(), birk1, birk2, birk3, curve_LY(), CaloSD::getAttenuation(), getBirkL3(), CaloSD::getResponseWt(), TrackInformation::isPrimary(), CaloSD::kmaxIon, CaloSD::kmaxNeutron, CaloSD::kmaxProton, DD4hep2DDDName::noNameSpace(), noWeight, CaloSD::suppressHeavy, useBirk, useBirkL3, and useWeight.

181  {
182  const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
183  const G4Track* theTrack = aStep->GetTrack();
184  double edep = aStep->GetTotalEnergyDeposit();
185 
186  // take into account light collection curve for crystals
187  double weight = 1.;
188  if (suppressHeavy) {
189  TrackInformation* trkInfo = (TrackInformation*)(theTrack->GetUserInformation());
190  if (trkInfo) {
191  int pdg = theTrack->GetDefinition()->GetPDGEncoding();
192  if (!(trkInfo->isPrimary())) { // Only secondary particles
193  double ke = theTrack->GetKineticEnergy();
194  if (((pdg / 1000000000 == 1 && ((pdg / 10000) % 100) > 0 && ((pdg / 10) % 100) > 0)) && (ke < kmaxIon))
195  weight = 0;
196  if ((pdg == 2212) && (ke < kmaxProton))
197  weight = 0;
198  if ((pdg == 2112) && (ke < kmaxNeutron))
199  weight = 0;
200  }
201  }
202  }
203  const G4LogicalVolume* lv = preStepPoint->GetTouchable()->GetVolume(0)->GetLogicalVolume();
204  double wt1 = 1.0;
205  if (useWeight && !any(noWeight, lv)) {
206  weight *= curve_LY(lv);
207  if (useBirk) {
208  if (useBirkL3)
209  weight *= getBirkL3(aStep);
210  else
211  weight *= getAttenuation(aStep, birk1, birk2, birk3);
212  }
213  wt1 = getResponseWt(theTrack);
214  }
215  edep *= weight * wt1;
216  // Russian Roulette
217  double wt2 = theTrack->GetWeight();
218  if (wt2 > 0.0) {
219  edep *= wt2;
220  }
221 #ifdef EDM_ML_DEBUG
222  edm::LogVerbatim("EcalSim") << lv->GetName() << " "
223  << DD4hep2DDDName::noNameSpace(static_cast<std::string>(lv->GetName()))
224  << " Light Collection Efficiency " << weight << ":" << wt1 << " wt2= " << wt2
225  << " Weighted Energy Deposit " << edep / CLHEP::MeV << " MeV at "
226  << preStepPoint->GetPosition();
227 #endif
228  return edep;
229 }
Log< level::Info, true > LogVerbatim
bool isPrimary() const
bool useBirkL3
Definition: ECalSD.h:62
double kmaxNeutron
Definition: CaloSD.h:155
std::vector< const G4LogicalVolume * > noWeight
Definition: ECalSD.h:67
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:37
double birk1
Definition: ECalSD.h:63
bool useWeight
Definition: ECalSD.h:61
Definition: weight.py:1
double kmaxProton
Definition: CaloSD.h:155
double getBirkL3(const G4Step *)
Definition: ECalSD.cc:479
double getResponseWt(const G4Track *, int k=0)
Definition: CaloSD.cc:929
double kmaxIon
Definition: CaloSD.h:155
bool suppressHeavy
Definition: CaloSD.h:154
bool useBirk
Definition: ECalSD.h:62
double getAttenuation(const G4Step *aStep, double birk1, double birk2, double birk3) const
Definition: CaloSD.cc:728
double birk2
Definition: ECalSD.h:63
std::string noNameSpace(const std::string &name)
double curve_LY(const G4LogicalVolume *)
Definition: ECalSD.cc:432
double birk3
Definition: ECalSD.h:63

◆ getLayerIDForTimeSim()

uint16_t ECalSD::getLayerIDForTimeSim ( )
private

Definition at line 318 of file ECalSD.cc.

References crystalDepth.

Referenced by getDepth(), and getRadiationLength().

318  {
319  const double invLayerSize = 0.1; //layer size in 1/mm
320  return (int)crystalDepth * invLayerSize;
321 }
double crystalDepth
Definition: ECalSD.h:75

◆ getRadiationLength()

uint16_t ECalSD::getRadiationLength ( const G4StepPoint *  hitPoint,
const G4LogicalVolume *  lv 
)
private

Definition at line 291 of file ECalSD.cc.

References funct::abs(), crystalDepth, crystalLength, getLayerIDForTimeSim(), relval_steps::k2, GetRecoTauVFromDQM_MC_cff::kk, DD4hep2DDDName::noNameSpace(), rho, scaleRL, CaloSD::setToLocal(), AlCaHLTBitMon_QueryRunRegistry::string, useWeight, and z.

Referenced by getDepth().

291  {
292  uint16_t thisX0 = 0;
293  if (useWeight) {
294  double radl = hitPoint->GetMaterial()->GetRadlen();
295  thisX0 = (uint16_t)floor(scaleRL * crystalDepth / radl);
296 #ifdef plotDebug
297  const std::string lvname = DD4hep2DDDName::noNameSpace(static_cast<std::string>(lv->GetName()));
298  int k1 = (lvname.find("EFRY") != std::string::npos) ? 2 : 0;
299  int k2 = (lvname.find("refl") != std::string::npos) ? 1 : 0;
300  int kk = k1 + k2;
301  double rz = (k1 == 0) ? (hitPoint->GetPosition()).rho() : std::abs((hitPoint->GetPosition()).z());
302  edm::LogVerbatim("EcalSim") << lvname << " # " << k1 << ":" << k2 << ":" << kk << " rz " << rz << " D " << thisX0;
303  g2L_[kk]->Fill(rz, thisX0);
304 #endif
305 #ifdef EDM_ML_DEBUG
306  G4ThreeVector localPoint = setToLocal(hitPoint->GetPosition(), hitPoint->GetTouchable());
307  edm::LogVerbatim("EcalSim") << lv->GetName() << " "
308  << DD4hep2DDDName::noNameSpace(static_cast<std::string>(lv->GetName())) << " Global "
309  << hitPoint->GetPosition() << ":" << (hitPoint->GetPosition()).rho() << " Local "
310  << localPoint << " Crystal Length " << crystalLength << " Radl " << radl
311  << " crystalDepth " << crystalDepth << " Index " << thisX0 << " : "
313 #endif
314  }
315  return thisX0;
316 }
Log< level::Info, true > LogVerbatim
double crystalLength
Definition: ECalSD.h:74
bool useWeight
Definition: ECalSD.h:61
G4ThreeVector setToLocal(const G4ThreeVector &, const G4VTouchable *) const
Definition: CaloSD.cc:455
double crystalDepth
Definition: ECalSD.h:75
double scaleRL
Definition: ECalSD.h:64
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
uint16_t getLayerIDForTimeSim()
Definition: ECalSD.cc:318
std::string noNameSpace(const std::string &name)

◆ getTrackID()

int ECalSD::getTrackID ( const G4Track *  aTrack)
overrideprotectedvirtual

Reimplemented from CaloSD.

Definition at line 248 of file ECalSD.cc.

References depth, CaloSD::forceSave, CaloSD::getTrackID(), and storeTrack.

248  {
249  int primaryID(0);
250  if (storeTrack && depth > 0) {
251  forceSave = true;
252  primaryID = aTrack->GetTrackID();
253  } else {
254  primaryID = CaloSD::getTrackID(aTrack);
255  }
256  return primaryID;
257 }
virtual int getTrackID(const G4Track *)
Definition: CaloSD.cc:874
bool forceSave
Definition: CaloSD.h:157
bool storeTrack
Definition: ECalSD.h:61
uint16_t depth
Definition: ECalSD.h:76

◆ initMap()

void ECalSD::initMap ( )
private

Definition at line 339 of file ECalSD.cc.

References any(), crystalMat, depth1Name, depth2Name, PVValHelper::dz, EcalSimulationParameters::dzs_, ecalSimParameters_, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, EcalSimulationParameters::lvNames_, EcalSimulationParameters::matNames_, mergeVDriftHistosByStation::name, DD4hep2DDDName::noNameSpace(), noWeight, AlCaHLTBitMon_QueryRunRegistry::string, useDepth1, useDepth2, and xtalLMap.

Referenced by ECalSD().

339  {
340  std::vector<const G4LogicalVolume*> lvused;
341  const G4LogicalVolumeStore* lvs = G4LogicalVolumeStore::GetInstance();
342  std::map<const std::string, const G4LogicalVolume*> nameMap;
343  for (auto lvi = lvs->begin(), lve = lvs->end(); lvi != lve; ++lvi)
344  nameMap.emplace(DD4hep2DDDName::noNameSpace(static_cast<std::string>((*lvi)->GetName())), *lvi);
345 
346  for (unsigned int it = 0; it < ecalSimParameters_->lvNames_.size(); ++it) {
347  const std::string& matname = ecalSimParameters_->matNames_[it];
348  const std::string& lvname = ecalSimParameters_->lvNames_[it];
349  const G4LogicalVolume* lv = nameMap[lvname];
350  int ibec = (lvname.find("EFRY") == std::string::npos) ? 0 : 1;
351  int iref = (lvname.find("refl") == std::string::npos) ? 0 : 1;
352  int type = (ibec + iref == 1) ? 1 : -1;
353  if (depth1Name != " ") {
354  if (strncmp(lvname.c_str(), depth1Name.c_str(), 4) == 0) {
355  if (!any(useDepth1, lv)) {
356  useDepth1.push_back(lv);
357 #ifdef EDM_ML_DEBUG
358  edm::LogVerbatim("EcalSim") << "ECalSD::initMap Logical Volume " << lvname << " in Depth 1 volume list";
359 #endif
360  }
361  const G4LogicalVolume* lvr = nameMap[lvname + "_refl"];
362  if (lvr != nullptr && !any(useDepth1, lvr)) {
363  useDepth1.push_back(lvr);
364 #ifdef EDM_ML_DEBUG
365  edm::LogVerbatim("EcalSim") << "ECalSD::initMap Logical Volume " << lvname << "_refl"
366  << " in Depth 1 volume list";
367 #endif
368  }
369  }
370  }
371  if (depth2Name != " ") {
372  if (strncmp(lvname.c_str(), depth2Name.c_str(), 4) == 0) {
373  if (!any(useDepth2, lv)) {
374  useDepth2.push_back(lv);
375 #ifdef EDM_ML_DEBUG
376  edm::LogVerbatim("EcalSim") << "ECalSD::initMap Logical Volume " << lvname << " in Depth 2 volume list";
377 #endif
378  }
379  const G4LogicalVolume* lvr = nameMap[lvname + "_refl"];
380  if (lvr != nullptr && !any(useDepth2, lvr)) {
381  useDepth2.push_back(lvr);
382 #ifdef EDM_ML_DEBUG
383  edm::LogVerbatim("EcalSim") << "ECalSD::initMap Logical Volume " << lvname << "_refl"
384  << " in Depth 2 volume list";
385 #endif
386  }
387  }
388  }
389  if (lv != nullptr) {
390  if (crystalMat.size() == matname.size() && !strcmp(crystalMat.c_str(), matname.c_str())) {
391  if (!any(lvused, lv)) {
392  lvused.push_back(lv);
393  double dz = ecalSimParameters_->dzs_[it];
394  xtalLMap.insert(std::pair<const G4LogicalVolume*, double>(lv, dz * type));
395  lv = nameMap[lvname + "_refl"];
396  if (lv != nullptr) {
397  xtalLMap.insert(std::pair<const G4LogicalVolume*, double>(lv, -dz * type));
398  }
399  }
400  } else {
401  if (!any(noWeight, lv)) {
402  noWeight.push_back(lv);
403 #ifdef EDM_ML_DEBUG
404  edm::LogVerbatim("EcalSim") << "ECalSD::initMap Logical Volume " << lvname << " Material " << matname
405  << " in noWeight list";
406 #endif
407  }
408  lv = nameMap[lvname];
409  if (lv != nullptr && !any(noWeight, lv)) {
410  noWeight.push_back(lv);
411 #ifdef EDM_ML_DEBUG
412  edm::LogVerbatim("EcalSim") << "ECalSD::initMap Logical Volume " << lvname << " Material " << matname
413  << " in noWeight list";
414 #endif
415  }
416  }
417  }
418  }
419 #ifdef EDM_ML_DEBUG
420  edm::LogVerbatim("EcalSim") << "ECalSD: Length Table:";
421  int i = 0;
422  for (auto ite : xtalLMap) {
423  std::string name("Unknown");
424  if (ite.first != nullptr)
425  name = DD4hep2DDDName::noNameSpace(static_cast<std::string>((ite.first)->GetName()));
426  edm::LogVerbatim("EcalSim") << " " << i << " " << ite.first << " " << name << " L = " << ite.second;
427  ++i;
428  }
429 #endif
430 }
Log< level::Info, true > LogVerbatim
std::vector< std::string > lvNames_
std::vector< const G4LogicalVolume * > useDepth2
Definition: ECalSD.h:67
std::vector< const G4LogicalVolume * > noWeight
Definition: ECalSD.h:67
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:37
std::vector< std::string > matNames_
std::string depth1Name
Definition: ECalSD.h:65
std::map< const G4LogicalVolume *, double > xtalLMap
Definition: ECalSD.h:66
const EcalSimulationParameters * ecalSimParameters_
Definition: ECalSD.h:59
std::string depth2Name
Definition: ECalSD.h:65
std::vector< const G4LogicalVolume * > useDepth1
Definition: ECalSD.h:67
std::string noNameSpace(const std::string &name)
std::string crystalMat
Definition: ECalSD.h:65

◆ isXtal()

bool ECalSD::isXtal ( const G4LogicalVolume *  lv)
private

Definition at line 506 of file ECalSD.cc.

References xtalLMap.

Referenced by getDepth().

506 { return (xtalLMap.find(lv) != xtalLMap.end()); }
std::map< const G4LogicalVolume *, double > xtalLMap
Definition: ECalSD.h:66

◆ setDetUnitId()

uint32_t ECalSD::setDetUnitId ( const G4Step *  aStep)
overridevirtual

Implements CaloSD.

Definition at line 323 of file ECalSD.cc.

References getBaseNumber(), numberingScheme_, and theBaseNumber.

Referenced by getDepth().

323  {
324  if (numberingScheme_.get() == nullptr) {
325  return EBDetId(1, 1)();
326  } else {
327  getBaseNumber(aStep);
328  return numberingScheme_->getUnitID(theBaseNumber);
329  }
330 }
void getBaseNumber(const G4Step *)
Definition: ECalSD.cc:460
std::unique_ptr< EcalNumberingScheme > numberingScheme_
Definition: ECalSD.h:60
EcalBaseNumber theBaseNumber
Definition: ECalSD.h:68

◆ setNumberingScheme()

void ECalSD::setNumberingScheme ( EcalNumberingScheme scheme)

Definition at line 332 of file ECalSD.cc.

References numberingScheme_, and generator_cfi::scheme.

Referenced by ECalSD(), and HcalTB04Analysis::update().

332  {
333  if (scheme != nullptr) {
334  edm::LogVerbatim("EcalSim") << "EcalSD: updates numbering scheme for " << GetName();
335  numberingScheme_.reset(scheme);
336  }
337 }
Log< level::Info, true > LogVerbatim
std::unique_ptr< EcalNumberingScheme > numberingScheme_
Definition: ECalSD.h:60

Member Data Documentation

◆ ageing

EnergyResolutionVsLumi ECalSD::ageing
private

Definition at line 69 of file ECalSD.h.

Referenced by curve_LY(), and ECalSD().

◆ ageingWithSlopeLY

bool ECalSD::ageingWithSlopeLY
private

Definition at line 70 of file ECalSD.h.

Referenced by curve_LY(), and ECalSD().

◆ birk1

double ECalSD::birk1
private

Definition at line 63 of file ECalSD.h.

Referenced by ECalSD(), getBirkL3(), and getEnergyDeposit().

◆ birk2

double ECalSD::birk2
private

Definition at line 63 of file ECalSD.h.

Referenced by ECalSD(), and getEnergyDeposit().

◆ birk3

double ECalSD::birk3
private

Definition at line 63 of file ECalSD.h.

Referenced by ECalSD(), and getEnergyDeposit().

◆ birkCut

double ECalSD::birkCut
private

Definition at line 63 of file ECalSD.h.

Referenced by ECalSD(), and getBirkL3().

◆ birkSlope

double ECalSD::birkSlope
private

Definition at line 63 of file ECalSD.h.

Referenced by ECalSD(), and getBirkL3().

◆ crystalDepth

double ECalSD::crystalDepth
private

◆ crystalLength

double ECalSD::crystalLength
private

Definition at line 74 of file ECalSD.h.

Referenced by curve_LY(), EnergyCorrected(), getDepth(), and getRadiationLength().

◆ crystalMat

std::string ECalSD::crystalMat
private

Definition at line 65 of file ECalSD.h.

Referenced by ECalSD(), and initMap().

◆ currentLocalPoint

G4ThreeVector ECalSD::currentLocalPoint
private

Definition at line 73 of file ECalSD.h.

Referenced by curve_LY(), EnergyCorrected(), and getDepth().

◆ depth

uint16_t ECalSD::depth
private

◆ depth1Name

std::string ECalSD::depth1Name
private

Definition at line 65 of file ECalSD.h.

Referenced by ECalSD(), and initMap().

◆ depth2Name

std::string ECalSD::depth2Name
private

Definition at line 65 of file ECalSD.h.

Referenced by ECalSD(), and initMap().

◆ ecalSimParameters_

const EcalSimulationParameters* ECalSD::ecalSimParameters_
private

Definition at line 59 of file ECalSD.h.

Referenced by ECalSD(), and initMap().

◆ noWeight

std::vector<const G4LogicalVolume *> ECalSD::noWeight
private

Definition at line 67 of file ECalSD.h.

Referenced by EnergyCorrected(), getEnergyDeposit(), and initMap().

◆ numberingScheme_

std::unique_ptr<EcalNumberingScheme> ECalSD::numberingScheme_
private

Definition at line 60 of file ECalSD.h.

Referenced by ECalSD(), setDetUnitId(), and setNumberingScheme().

◆ scaleRL

double ECalSD::scaleRL
private

Definition at line 64 of file ECalSD.h.

Referenced by ECalSD(), and getRadiationLength().

◆ slopeLY

double ECalSD::slopeLY
private

Definition at line 64 of file ECalSD.h.

Referenced by curve_LY(), and ECalSD().

◆ storeLayerTimeSim

bool ECalSD::storeLayerTimeSim
private

Definition at line 61 of file ECalSD.h.

Referenced by ECalSD(), and getDepth().

◆ storeRL

bool ECalSD::storeRL
private

Definition at line 61 of file ECalSD.h.

Referenced by ECalSD(), and getDepth().

◆ storeTrack

bool ECalSD::storeTrack
private

Definition at line 61 of file ECalSD.h.

Referenced by ECalSD(), and getTrackID().

◆ theBaseNumber

EcalBaseNumber ECalSD::theBaseNumber
private

Definition at line 68 of file ECalSD.h.

Referenced by getBaseNumber(), and setDetUnitId().

◆ useBirk

bool ECalSD::useBirk
private

Definition at line 62 of file ECalSD.h.

Referenced by ECalSD(), and getEnergyDeposit().

◆ useBirkL3

bool ECalSD::useBirkL3
private

Definition at line 62 of file ECalSD.h.

Referenced by ECalSD(), and getEnergyDeposit().

◆ useDepth1

std::vector<const G4LogicalVolume *> ECalSD::useDepth1
private

Definition at line 67 of file ECalSD.h.

Referenced by getDepth(), and initMap().

◆ useDepth2

std::vector<const G4LogicalVolume *> ECalSD::useDepth2
private

Definition at line 67 of file ECalSD.h.

Referenced by getDepth(), and initMap().

◆ useWeight

bool ECalSD::useWeight
private

Definition at line 61 of file ECalSD.h.

Referenced by ECalSD(), EnergyCorrected(), getEnergyDeposit(), and getRadiationLength().

◆ xtalLMap

std::map<const G4LogicalVolume *, double> ECalSD::xtalLMap
private

Definition at line 66 of file ECalSD.h.

Referenced by EnergyCorrected(), getDepth(), initMap(), and isXtal().