Public Member Functions | |
void | beginRun (edm::EventSetup const &) override |
CaloSteppingAction (const edm::ParameterSet &p) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
void | registerConsumes (edm::ConsumesCollector) override |
~CaloSteppingAction () override | |
Public Member Functions inherited from SimProducer | |
const SimProducer & | operator= (const SimProducer &)=delete |
void | registerProducts (edm::ProducesCollector producesCollector) |
SimProducer () | |
SimProducer (const SimProducer &)=delete | |
Public Member Functions inherited from SimWatcher | |
bool | isMT () const |
const SimWatcher & | operator= (const SimWatcher &)=delete |
SimWatcher () | |
SimWatcher (const SimWatcher &)=delete | |
virtual | ~SimWatcher () |
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 BeginOfRun *run) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const BeginOfEvent *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... | |
void | update (const EndOfEvent *evt) override |
This routine will be called when the appropriate signal arrives. More... | |
Private Attributes | |
const int | allSteps_ |
const double | birkC1EC_ |
const double | birkC1HC_ |
const double | birkC2HC_ |
const double | birkC3HC_ |
const double | birkCutEC_ |
const 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_] |
const edm::ParameterSet | iC_ |
std::map< const G4LogicalVolume *, std::string > | mapLV_ |
const std::vector< std::string > | nameEBSD_ |
const std::vector< std::string > | nameEESD_ |
const std::vector< std::string > | nameHCSD_ |
const std::vector< std::string > | nameHitC_ |
std::unique_ptr< CaloSlaveSD > | slave_ [nSD_] |
const double | slopeLY_ |
std::vector< PassiveData > | store_ |
const 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) |
Protected Member Functions inherited from SimWatcher | |
void | setMT (bool val) |
Definition at line 67 of file CaloSteppingAction.cc.
|
private |
Definition at line 122 of file CaloSteppingAction.cc.
CaloSteppingAction::CaloSteppingAction | ( | const edm::ParameterSet & | p | ) |
Definition at line 126 of file CaloSteppingAction.cc.
References allSteps_, birkC1EC_, birkC1HC_, birkC2HC_, birkC3HC_, birkCutEC_, birkSlopeEC_, ebNumberingScheme_, eeNumberingScheme_, hcNumberingPS_, hcNumberingScheme_, dqmdumpme::k, nameEBSD_, nameEESD_, nameHCSD_, nameHitC_, nSD_, AlCaHLTBitMon_ParallelJobs::p, slave_, slopeLY_, and timeSliceUnit_.
|
override |
|
overridevirtual |
Reimplemented from SimWatcher.
Definition at line 233 of file CaloSteppingAction.cc.
References edm::EventSetup::getData().
|
private |
Definition at line 487 of file CaloSteppingAction.cc.
References slopeLY_, and mps_merge::weight.
Referenced by update().
|
private |
Definition at line 460 of file CaloSteppingAction.cc.
References CaloGVHit::addEnergyDeposit(), LEDCalibrationChannels::depth, mps_fire::end, eventID_, RemoveAddSevLevel::flag, hitMap_, CaloGVHit::setEventID(), CaloGVHit::setID(), protons_cff::time, and timeSliceUnit_.
Referenced by update().
|
private |
Definition at line 204 of file CaloSteppingAction.cc.
References slave_.
Referenced by produce().
|
private |
Definition at line 211 of file CaloSteppingAction.cc.
References mapLV_, and store_.
Referenced by produce().
|
private |
Definition at line 525 of file CaloSteppingAction.cc.
References funct::abs(), birkC1HC_, birkC2HC_, birkC3HC_, c, ALCARECOTkAlJpsiMuMu_cff::charge, fastSimProducer_cff::density, and mps_merge::weight.
Referenced by update().
|
private |
Definition at line 505 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 477 of file CaloSteppingAction.cc.
References LEDCalibrationChannels::depth, RemoveAddSevLevel::flag, PCaloHit::kEcalDepthMask, PCaloHit::kEcalDepthOffset, and PCaloHit::kEcalDepthRefz.
Referenced by update().
|
private |
Definition at line 448 of file CaloSteppingAction.cc.
References LEDCalibrationChannels::depth, relativeConstraints::error, hcNumberingPS_, hcNumberingScheme_, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
Referenced by update().
|
private |
Definition at line 434 of file CaloSteppingAction.cc.
References Exception, and edm::isNotFinite().
Referenced by update().
|
overridevirtual |
Implements SimProducer.
Definition at line 190 of file CaloSteppingAction.cc.
References allSteps_, MillePedeFileConverter_cfg::e, fillHits(), fillPassiveHits(), dqmdumpme::k, eostools::move(), nameHitC_, nSD_, and saveHits().
|
overridevirtual |
Reimplemented from SimWatcher.
Definition at line 183 of file CaloSteppingAction.cc.
References edm::BeginRun, and edm::ConsumesCollector::esConsumes().
|
private |
Definition at line 542 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 BeginOfRun *>.
Definition at line 246 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 BeginOfEvent *>.
Definition at line 320 of file CaloSteppingAction.cc.
References allSteps_, mps_fire::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 G4Step *>.
Definition at line 332 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_, NaNTrap(), EcalBaseNumber::setSize(), findQualityFiles::size, store_, protons_cff::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().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const EndOfEvent *>.
Definition at line 428 of file CaloSteppingAction.cc.
References count_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
Definition at line 115 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), produce(), and update().
|
private |
Definition at line 116 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 117 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 117 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 118 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 117 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 116 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 119 of file CaloSteppingAction.cc.
Referenced by update(), and ~CaloSteppingAction().
|
private |
Definition at line 99 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 100 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 119 of file CaloSteppingAction.cc.
|
private |
Definition at line 101 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and getDetIDHC().
|
private |
Definition at line 106 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and getDetIDHC().
Definition at line 120 of file CaloSteppingAction.cc.
Referenced by fillHit(), saveHits(), and update().
|
private |
Definition at line 109 of file CaloSteppingAction.cc.
|
private |
Definition at line 114 of file CaloSteppingAction.cc.
Referenced by fillPassiveHits(), and update().
|
private |
Definition at line 110 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 110 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 110 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 111 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and produce().
|
staticprivate |
Definition at line 98 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), produce(), and update().
|
private |
Definition at line 107 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), fillHits(), saveHits(), and update().
|
private |
Definition at line 116 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and curve_LY().
|
private |
Definition at line 123 of file CaloSteppingAction.cc.
Referenced by fillPassiveHits(), and update().
|
private |
Definition at line 118 of file CaloSteppingAction.cc.
Referenced by CaloSteppingAction(), and fillHit().
|
private |
Definition at line 112 of file CaloSteppingAction.cc.
Referenced by update().
|
private |
Definition at line 112 of file CaloSteppingAction.cc.
Referenced by update().
|
private |
Definition at line 112 of file CaloSteppingAction.cc.
Referenced by update().
|
private |
Definition at line 113 of file CaloSteppingAction.cc.
Referenced by update().