#include <ECalSD.h>
Public Member Functions | |
ECalSD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &p, const SimTrackManager *) | |
double | getEnergyDeposit (G4Step *) override |
virtual uint16_t | getLayerIDForTimeSim (const G4Step *) |
virtual uint16_t | getRadiationLength (const G4Step *) |
uint32_t | setDetUnitId (const G4Step *) override |
void | setNumberingScheme (EcalNumberingScheme *) |
~ECalSD () override | |
Public Member Functions inherited from CaloSD | |
CaloSD (const std::string &aSDname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *, float timeSlice=1., bool ignoreTkID=false) | |
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 |
void | PrintAll () override |
bool | ProcessHits (G4Step *step, G4TouchableHistory *tHistory) override |
bool | ProcessHits (G4GFlashSpot *aSpot, G4TouchableHistory *) override |
~CaloSD () override | |
Public Member Functions inherited from SensitiveCaloDetector | |
SensitiveCaloDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p) | |
Public Member Functions inherited from SensitiveDetector | |
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
const std::vector< std::string > & | getNames () const |
void | Initialize (G4HCofThisEvent *eventHC) override |
SensitiveDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &, edm::ParameterSet const &p) | |
~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 | |
uint16_t | getDepth (const G4Step *) override |
int | getTrackID (const G4Track *) override |
Protected Member Functions inherited from CaloSD | |
G4bool | checkHit () |
CaloG4Hit * | createNewHit () |
virtual bool | filterHit (CaloG4Hit *, double) |
double | getAttenuation (const G4Step *aStep, double birk1, double birk2, double birk3) |
int | getNumberOfHits () |
double | getResponseWt (const G4Track *) |
virtual G4bool | getStepInfo (G4Step *aStep) |
G4bool | hitExists () |
virtual void | initRun () |
void | resetForNewPrimary (const G4ThreeVector &, double) |
G4ThreeVector | setToGlobal (const G4ThreeVector &, const G4VTouchable *) |
G4ThreeVector | setToLocal (const G4ThreeVector &, const G4VTouchable *) |
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 *) |
Protected Member Functions inherited from SensitiveDetector | |
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 | crystalDepth (const G4LogicalVolume *, const G4ThreeVector &) |
double | crystalLength (const G4LogicalVolume *) |
double | curve_LY (const G4Step *) |
void | getBaseNumber (const G4Step *) |
double | getBirkL3 (const G4Step *) |
std::vector< double > | getDDDArray (const std::string &, const DDsvalues_type &) |
std::vector< std::string > | getStringArray (const std::string &, const DDsvalues_type &) |
void | initMap (const G4String &, const DDCompactView &) |
Private Attributes | |
EnergyResolutionVsLumi | ageing |
bool | ageingWithSlopeLY |
double | birk1 |
double | birk2 |
double | birk3 |
double | birkCut |
double | birkSlope |
std::string | crystalMat |
std::string | depth1Name |
std::string | depth2Name |
bool | isEB |
bool | isEE |
std::vector< const G4LogicalVolume * > | noWeight |
EcalNumberingScheme * | numberingScheme |
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 } |
Protected Attributes inherited from CaloSD | |
int | checkHits |
double | correctT |
bool | corrTOFBeam |
CaloG4Hit * | currentHit |
CaloHitID | currentID |
float | edepositEM |
float | edepositHAD |
double | eminHit |
double | eminHitD |
G4int | emPDG |
double | energyCut |
G4ThreeVector | entranceLocal |
G4ThreeVector | entrancePoint |
G4int | epPDG |
bool | forceSave |
G4int | gammaPDG |
float | incidentEnergy |
double | kmaxIon |
double | kmaxNeutron |
double | kmaxProton |
const SimTrackManager * | m_trackManager |
G4ThreeVector | posGlobal |
G4StepPoint * | preStepPoint |
CaloHitID | previousID |
int | primIDSaved |
bool | runInit |
bool | suppressHeavy |
G4Track * | theTrack |
double | tmaxHit |
bool | useMap |
ECalSD::ECalSD | ( | const std::string & | name, |
const DDCompactView & | cpv, | ||
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, depth2Name, ALCARECOTkAlBeamHalo_cff::filter, DDFilteredView::firstChild(), g, getDDDArray(), edm::ParameterSet::getParameter(), getStringArray(), edm::ParameterSet::getUntrackedParameter(), initMap(), edm::Service< T >::isAvailable(), isEB, isEE, gen::k, CaloSD::kmaxIon, CaloSD::kmaxNeutron, CaloSD::kmaxProton, TFileDirectory::make(), DDFilteredView::mergedSpecifics(), MeV, TFileService::mkdir(), scaleRL, EnergyResolutionVsLumi::setLumies(), setNumberingScheme(), slopeLY, storeLayerTimeSim, storeRL, storeTrack, AlCaHLTBitMon_QueryRunRegistry::string, CaloSD::suppressHeavy, compare::tfile, fftjetcommon_cfi::title, useBirk, useBirkL3, useWeight, and TrackerOfflineValidation_Dqm_cff::xmin.
|
override |
|
private |
Definition at line 523 of file ECalSD.cc.
References funct::abs(), particleFlowClusterECALTimeSelected_cfi::depth, and xtalLMap.
Referenced by curve_LY(), getLayerIDForTimeSim(), and getRadiationLength().
|
private |
Definition at line 516 of file ECalSD.cc.
References funct::abs(), and xtalLMap.
Referenced by curve_LY(), and getRadiationLength().
|
private |
Definition at line 485 of file ECalSD.cc.
References ageing, ageingWithSlopeLY, EnergyResolutionVsLumi::calcLightCollectionEfficiencyWeighted(), crystalDepth(), crystalLength(), CaloSD::currentID, particleFlowClusterECALTimeSelected_cfi::depth, CaloSD::preStepPoint, CaloSD::setToLocal(), slopeLY, CaloHitID::unitID(), and mps_merge::weight.
Referenced by getEnergyDeposit().
|
private |
Definition at line 533 of file ECalSD.cc.
References EcalBaseNumber::addLevel(), EcalBaseNumber::getCapacity(), cuy::ii, CaloSD::preStepPoint, EcalBaseNumber::reset(), EcalBaseNumber::setSize(), and theBaseNumber.
Referenced by setDetUnitId().
|
private |
Definition at line 552 of file ECalSD.cc.
References birk1, birkCut, birkSlope, ALCARECOTkAlJpsiMuMu_cff::charge, cmsBatch::log, CaloSD::preStepPoint, and mps_merge::weight.
Referenced by getEnergyDeposit().
|
private |
Definition at line 578 of file ECalSD.cc.
References DDfetch(), DDValue::doubles(), harvestTrackValidationPlots::str, and relativeConstraints::value.
Referenced by ECalSD().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 267 of file ECalSD.cc.
References any(), TauDecayModes::dec, particleFlowClusterECALTimeSelected_cfi::depth, getLayerIDForTimeSim(), getRadiationLength(), PCaloHit::kEcalDepthMask, PCaloHit::kEcalDepthOffset, PCaloHit::kEcalDepthRefz, storeLayerTimeSim, storeRL, useDepth1, useDepth2, and xtalLMap.
|
overridevirtual |
Reimplemented from CaloSD.
Definition at line 173 of file ECalSD.cc.
References any(), birk1, birk2, birk3, curve_LY(), CaloSD::getAttenuation(), getBirkL3(), CaloSD::getResponseWt(), TrackInformation::isPrimary(), ke, CaloSD::kmaxIon, CaloSD::kmaxNeutron, CaloSD::kmaxProton, MeV, noWeight, CaloSD::preStepPoint, CaloSD::suppressHeavy, CaloSD::theTrack, useBirk, useBirkL3, and useWeight.
|
virtual |
Definition at line 331 of file ECalSD.cc.
References crystalDepth(), isEB, isEE, and CaloSD::setToLocal().
Referenced by getDepth(), and getRadiationLength().
|
virtual |
Definition at line 289 of file ECalSD.cc.
References funct::abs(), crystalDepth(), crystalLength(), particleFlowClusterECALTimeSelected_cfi::depth, getLayerIDForTimeSim(), GetRecoTauVFromDQM_MC_cff::kk, CaloSD::preStepPoint, rho, scaleRL, CaloSD::setToLocal(), AlCaHLTBitMon_QueryRunRegistry::string, useWeight, and z.
Referenced by getDepth().
|
private |
Definition at line 597 of file ECalSD.cc.
References DDfetch(), harvestTrackValidationPlots::str, DDValue::strings(), and relativeConstraints::value.
Referenced by ECalSD().
|
overrideprotectedvirtual |
Reimplemented from CaloSD.
Definition at line 246 of file ECalSD.cc.
References any(), RemoveAddSevLevel::flag, CaloSD::forceSave, CaloSD::getTrackID(), CaloSD::preStepPoint, storeTrack, useDepth1, and useDepth2.
|
private |
Definition at line 366 of file ECalSD.cc.
References any(), crystalMat, ddtrap, depth1Name, depth2Name, PVValHelper::dz, ALCARECOTkAlBeamHalo_cff::filter, DDFilteredView::firstChild(), mps_fire::i, DDFilteredView::logicalPart(), DDLogicalPart::material(), DDName::name(), dataset::name, DDBase< N, C >::name(), DDFilteredView::next(), noWeight, DDSolid::parameters(), DDSolid::shape(), DDLogicalPart::solid(), AlCaHLTBitMon_QueryRunRegistry::string, useDepth1, useDepth2, and xtalLMap.
Referenced by ECalSD().
|
overridevirtual |
Implements CaloSD.
Definition at line 348 of file ECalSD.cc.
References getBaseNumber(), EcalNumberingScheme::getUnitID(), numberingScheme, and theBaseNumber.
void ECalSD::setNumberingScheme | ( | EcalNumberingScheme * | scheme | ) |
Definition at line 357 of file ECalSD.cc.
References numberingScheme.
Referenced by ECalSD(), and HcalTB04Analysis::update().
|
private |
Definition at line 72 of file ECalSD.h.
Referenced by curve_LY(), and ECalSD().
|
private |
Definition at line 73 of file ECalSD.h.
Referenced by curve_LY(), and ECalSD().
|
private |
Definition at line 66 of file ECalSD.h.
Referenced by ECalSD(), getBirkL3(), and getEnergyDeposit().
|
private |
Definition at line 66 of file ECalSD.h.
Referenced by ECalSD(), and getEnergyDeposit().
|
private |
Definition at line 66 of file ECalSD.h.
Referenced by ECalSD(), and getEnergyDeposit().
|
private |
Definition at line 66 of file ECalSD.h.
Referenced by ECalSD(), and getBirkL3().
|
private |
Definition at line 66 of file ECalSD.h.
Referenced by ECalSD(), and getBirkL3().
|
private |
|
private |
|
private |
|
private |
Definition at line 61 of file ECalSD.h.
Referenced by Electron.Electron::absIsoWithFSR(), ECalSD(), and getLayerIDForTimeSim().
|
private |
Definition at line 62 of file ECalSD.h.
Referenced by ECalSD(), and getLayerIDForTimeSim().
|
private |
Definition at line 70 of file ECalSD.h.
Referenced by getEnergyDeposit(), and initMap().
|
private |
Definition at line 63 of file ECalSD.h.
Referenced by setDetUnitId(), setNumberingScheme(), and ~ECalSD().
|
private |
Definition at line 67 of file ECalSD.h.
Referenced by ECalSD(), and getRadiationLength().
|
private |
Definition at line 67 of file ECalSD.h.
Referenced by curve_LY(), and ECalSD().
|
private |
Definition at line 64 of file ECalSD.h.
Referenced by ECalSD(), and getDepth().
|
private |
Definition at line 64 of file ECalSD.h.
Referenced by ECalSD(), and getDepth().
|
private |
Definition at line 64 of file ECalSD.h.
Referenced by ECalSD(), and getTrackID().
|
private |
Definition at line 71 of file ECalSD.h.
Referenced by getBaseNumber(), and setDetUnitId().
|
private |
Definition at line 65 of file ECalSD.h.
Referenced by ECalSD(), and getEnergyDeposit().
|
private |
Definition at line 65 of file ECalSD.h.
Referenced by ECalSD(), and getEnergyDeposit().
|
private |
Definition at line 70 of file ECalSD.h.
Referenced by getDepth(), getTrackID(), and initMap().
|
private |
Definition at line 70 of file ECalSD.h.
Referenced by getDepth(), getTrackID(), and initMap().
|
private |
Definition at line 64 of file ECalSD.h.
Referenced by ECalSD(), getEnergyDeposit(), and getRadiationLength().
|
private |
Definition at line 69 of file ECalSD.h.
Referenced by crystalDepth(), crystalLength(), getDepth(), and initMap().