#include <CaloSteppingAction.h>
Public Member Functions | |
CaloSteppingAction (const edm::ParameterSet &p) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
~CaloSteppingAction () override | |
Public Member Functions inherited from SimProducer | |
void | registerProducts (edm::ProducesCollector producesCollector) |
SimProducer () | |
Public Member Functions inherited from SimWatcher | |
SimWatcher () | |
virtual | ~SimWatcher () |
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 () |
Public Member Functions inherited from Observer< const G4Step * > | |
Observer () | |
void | slotForUpdate (const G4Step * iT) |
virtual | ~Observer () |
Private Types | |
typedef std::tuple< const G4LogicalVolume *, uint32_t, int, int, double, double, double, double, double, double, double > | PassiveData |
Private Member Functions | |
double | curve_LY (double crystalLength, double crystalDepth) const |
void | fillHit (uint32_t id, double dE, double time, int primID, uint16_t depth, double em, int flag) |
void | fillHits (edm::PCaloHitContainer &cc, int type) |
void | fillPassiveHits (edm::PassiveHitContainer &cc) |
double | getBirkHC (double dE, double step, double chg, double dens) const |
double | getBirkL3 (double dE, double step, double chg, double dens) const |
uint16_t | getDepth (bool flag, double crystalDepth, double radl) const |
uint32_t | getDetIDHC (int det, int lay, int depth, const math::XYZVectorD &pos) const |
void | NaNTrap (const G4Step *) const |
void | saveHits (int flag) |
void | update (const BeginOfEvent *evt) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const BeginOfJob *job) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const BeginOfRun *run) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const EndOfEvent *evt) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const G4Step *step) override |
This routine will be called when the appropriate signal arrives. More... | |
Private Attributes | |
int | allSteps_ |
double | birkC1EC_ |
double | birkC1HC_ |
double | birkC2HC_ |
double | birkC3HC_ |
double | birkCutEC_ |
double | birkSlopeEC_ |
int | count_ |
std::unique_ptr< EcalBarrelNumberingScheme > | ebNumberingScheme_ |
std::unique_ptr< EcalEndcapNumberingScheme > | eeNumberingScheme_ |
int | eventID_ |
std::unique_ptr< HcalNumberingFromPS > | hcNumberingPS_ |
std::unique_ptr< HcalNumberingScheme > | hcNumberingScheme_ |
std::map< std::pair< int, CaloHitID >, CaloGVHit > | hitMap_ [nSD_] |
std::map< const G4LogicalVolume *, std::string > | mapLV_ |
std::vector< std::string > | nameEBSD_ |
std::vector< std::string > | nameEESD_ |
std::vector< std::string > | nameHCSD_ |
std::vector< std::string > | nameHitC_ |
std::unique_ptr< CaloSlaveSD > | slave_ [nSD_] |
double | slopeLY_ |
std::vector< PassiveData > | store_ |
double | timeSliceUnit_ |
std::vector< const G4LogicalVolume * > | volEBSD_ |
std::vector< const G4LogicalVolume * > | volEESD_ |
std::vector< const G4LogicalVolume * > | volHCSD_ |
std::map< const G4LogicalVolume *, double > | xtalMap_ |
Static Private Attributes | |
static const int | nSD_ = 3 |
Additional Inherited Members | |
Protected Member Functions inherited from SimProducer | |
template<class T > | |
void | produces () |
template<class T > | |
void | produces (const std::string &instanceName) |
Definition at line 52 of file CaloSteppingAction.h.
|
private |
Definition at line 104 of file CaloSteppingAction.h.
CaloSteppingAction::CaloSteppingAction | ( | const edm::ParameterSet & | p | ) |
Definition at line 33 of file CaloSteppingAction.cc.
References allSteps_, birkC1EC_, birkC1HC_, birkC2HC_, birkC3HC_, birkCutEC_, birkSlopeEC_, ebNumberingScheme_, eeNumberingScheme_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hcNumberingPS_, hcNumberingScheme_, dqmdumpme::k, nameEBSD_, nameEESD_, nameHCSD_, nameHitC_, nSD_, AlCaHLTBitMon_ParallelJobs::p, slave_, slopeLY_, and timeSliceUnit_.
|
override |
|
private |
Definition at line 387 of file CaloSteppingAction.cc.
References slopeLY_, and mps_merge::weight.
Referenced by update().
|
private |
Definition at line 360 of file CaloSteppingAction.cc.
References CaloGVHit::addEnergyDeposit(), LEDCalibrationChannels::depth, end, eventID_, RemoveAddSevLevel::flag, hitMap_, CaloGVHit::setEventID(), CaloGVHit::setID(), ntuplemaker::time, and timeSliceUnit_.
Referenced by update().
|
private |
|
private |
Definition at line 109 of file CaloSteppingAction.cc.
References mapLV_, and store_.
Referenced by produce().
|
private |
Definition at line 425 of file CaloSteppingAction.cc.
References funct::abs(), birkC1HC_, birkC2HC_, birkC3HC_, HltBtagPostValidation_cff::c, ALCARECOTkAlJpsiMuMu_cff::charge, fastSimProducer_cff::density, and mps_merge::weight.
Referenced by update().
|
private |
Definition at line 405 of file CaloSteppingAction.cc.
References birkC1EC_, birkCutEC_, birkSlopeEC_, ALCARECOTkAlJpsiMuMu_cff::charge, fastSimProducer_cff::density, dqm-mbProfile::log, and mps_merge::weight.
Referenced by update().
|
private |
Definition at line 377 of file CaloSteppingAction.cc.
References LEDCalibrationChannels::depth, RemoveAddSevLevel::flag, PCaloHit::kEcalDepthMask, PCaloHit::kEcalDepthOffset, and PCaloHit::kEcalDepthRefz.
Referenced by update().
|
private |
Definition at line 348 of file CaloSteppingAction.cc.
References LEDCalibrationChannels::depth, relativeConstraints::error, hcNumberingPS_, hcNumberingScheme_, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
Referenced by update().
|
private |
Definition at line 334 of file CaloSteppingAction.cc.
References Exception, and edm::isNotFinite().
Referenced by update().
|
overridevirtual |
Implements SimProducer.
Definition at line 88 of file CaloSteppingAction.cc.
References allSteps_, MillePedeFileConverter_cfg::e, fillHits(), fillPassiveHits(), dqmdumpme::k, eostools::move(), nameHitC_, nSD_, and saveHits().
|
private |
Definition at line 442 of file CaloSteppingAction.cc.
References hitMap_, findQualityFiles::size, and slave_.
Referenced by produce().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfEvent * >.
Definition at line 220 of file CaloSteppingAction.cc.
References allSteps_, begin, end, eventID_, hitMap_, dqmdumpme::k, nSD_, slave_, and store_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfJob * >.
Definition at line 131 of file CaloSteppingAction.cc.
References edm::ESHandle< T >::product().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfRun * >.
Definition at line 146 of file CaloSteppingAction.cc.
References allSteps_, PVValHelper::dz, dqmdumpme::k, mapLV_, Skims_PA_cff::name, nameEBSD_, nameEESD_, nameHCSD_, AlCaHLTBitMon_QueryRunRegistry::string, volEBSD_, volEESD_, volHCSD_, and xtalMap_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const EndOfEvent * >.
Definition at line 328 of file CaloSteppingAction.cc.
References count_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const G4Step * >.
Definition at line 232 of file CaloSteppingAction.cc.
References funct::abs(), EcalBaseNumber::addLevel(), allSteps_, filterCSVwithJSON::copy, curve_LY(), LEDCalibrationChannels::depth, ebNumberingScheme_, eeNumberingScheme_, HCALHighEnergyHPDFilter_cfi::energy, fillHit(), spr::find(), RemoveAddSevLevel::flag, g, getBirkHC(), getBirkL3(), EcalBaseNumber::getCapacity(), getDepth(), getDetIDHC(), cuy::ii, G4TrackToParticleID::isGammaElectronPositron(), crabWrapper::key, DTRecHitClients_cfi::local, mapLV_, MeV, NaNTrap(), EcalBaseNumber::setSize(), findQualityFiles::size, store_, ntuplemaker::time, funct::true, volEBSD_, volEESD_, volHCSD_, and xtalMap_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
Definition at line 98 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), produce(), and update().
|
private |
Definition at line 99 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 100 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 100 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 101 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 100 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 99 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 98 of file CaloSteppingAction.h.
Referenced by update(), and ~CaloSteppingAction().
|
private |
Definition at line 84 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 85 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 98 of file CaloSteppingAction.h.
|
private |
Definition at line 86 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getDetIDHC().
|
private |
Definition at line 90 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getDetIDHC().
Definition at line 102 of file CaloSteppingAction.h.
Referenced by fillHit(), saveHits(), and update().
|
private |
Definition at line 97 of file CaloSteppingAction.h.
Referenced by fillPassiveHits(), and update().
|
private |
Definition at line 93 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 93 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 93 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 94 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and produce().
|
staticprivate |
Definition at line 83 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), produce(), and update().
|
private |
Definition at line 91 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), fillHits(), saveHits(), and update().
|
private |
Definition at line 99 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and curve_LY().
|
private |
Definition at line 105 of file CaloSteppingAction.h.
Referenced by fillPassiveHits(), and update().
|
private |
Definition at line 101 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and fillHit().
|
private |
Definition at line 95 of file CaloSteppingAction.h.
Referenced by update().
|
private |
Definition at line 95 of file CaloSteppingAction.h.
Referenced by update().
|
private |
Definition at line 95 of file CaloSteppingAction.h.
Referenced by update().
|
private |
Definition at line 96 of file CaloSteppingAction.h.
Referenced by update().