#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::ProducerBase &iProd) |
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 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) |
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 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 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 | |
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::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< 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 50 of file CaloSteppingAction.h.
CaloSteppingAction::CaloSteppingAction | ( | const edm::ParameterSet & | p | ) |
Definition at line 33 of file CaloSteppingAction.cc.
References birkC1EC_, birkC1HC_, birkC2HC_, birkC3HC_, birkCutEC_, birkSlopeEC_, ebNumberingScheme_, eeNumberingScheme_, g, edm::ParameterSet::getParameter(), hcNumberingPS_, hcNumberingScheme_, gen::k, MeV, nameEBSD_, nameEESD_, nameHCSD_, nameHitC_, nSD_, slave_, and slopeLY_.
|
override |
Definition at line 77 of file CaloSteppingAction.cc.
References count_.
|
private |
Definition at line 298 of file CaloSteppingAction.cc.
References slopeLY_, and mps_merge::weight.
Referenced by update().
|
private |
Definition at line 271 of file CaloSteppingAction.cc.
References CaloGVHit::addEnergyDeposit(), end, eventID_, RemoveAddSevLevel::flag, hitMap_, CaloGVHit::setEventID(), and CaloGVHit::setID().
Referenced by update().
|
private |
Definition at line 91 of file CaloSteppingAction.cc.
References slave_.
Referenced by produce().
|
private |
Definition at line 336 of file CaloSteppingAction.cc.
References funct::abs(), birkC1HC_, birkC2HC_, birkC3HC_, EnergyCorrector::c, and mps_merge::weight.
Referenced by update().
|
private |
Definition at line 316 of file CaloSteppingAction.cc.
References birkC1EC_, birkCutEC_, birkSlopeEC_, cmsBatch::log, and mps_merge::weight.
Referenced by update().
|
private |
Definition at line 288 of file CaloSteppingAction.cc.
References egammaForCoreTracking_cff::depth, PCaloHit::kEcalDepthMask, PCaloHit::kEcalDepthOffset, and PCaloHit::kEcalDepthRefz.
Referenced by update().
|
private |
Definition at line 259 of file CaloSteppingAction.cc.
References relativeConstraints::error, hcNumberingPS_, hcNumberingScheme_, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.
Referenced by update().
|
private |
Definition at line 245 of file CaloSteppingAction.cc.
References Exception, and edm::isNotFinite().
Referenced by update().
|
overridevirtual |
Implements SimProducer.
Definition at line 82 of file CaloSteppingAction.cc.
References fillHits(), gen::k, eostools::move(), nameHitC_, nSD_, edm::Event::put(), and saveHits().
|
private |
Definition at line 353 of file CaloSteppingAction.cc.
References GeV, hitMap_, findQualityFiles::size, and slave_.
Referenced by produce().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfJob * >.
Definition at line 98 of file CaloSteppingAction.cc.
References edm::ESHandle< T >::product().
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().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfRun * >.
Definition at line 113 of file CaloSteppingAction.cc.
References PVValHelper::dz, gen::k, dataset::name, nameEBSD_, nameEESD_, nameHCSD_, AlCaHLTBitMon_QueryRunRegistry::string, volEBSD_, volEESD_, volHCSD_, and xtalMap_.
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().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfEvent * >.
Definition at line 169 of file CaloSteppingAction.cc.
References begin, end, eventID_, hitMap_, gen::k, nSD_, and slave_.
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().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const G4Step * >.
Definition at line 179 of file CaloSteppingAction.cc.
References funct::abs(), EcalBaseNumber::addLevel(), curve_LY(), egammaForCoreTracking_cff::depth, ebNumberingScheme_, eeNumberingScheme_, fillHit(), spr::find(), RemoveAddSevLevel::flag, getBirkHC(), getBirkL3(), EcalBaseNumber::getCapacity(), getDepth(), getDetIDHC(), AnalysisDataFormats_SUSYBSMObjects::hc, cuy::ii, G4TrackToParticleID::isGammaElectronPositron(), DTRecHitClients_cfi::local, NaNTrap(), EcalBaseNumber::setSize(), findQualityFiles::size, ntuplemaker::time, volEBSD_, volEESD_, volHCSD_, and xtalMap_.
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().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const EndOfEvent * >.
Definition at line 239 of file CaloSteppingAction.cc.
References count_.
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().
|
private |
Definition at line 95 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 96 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 96 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 97 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkHC().
|
private |
Definition at line 96 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 95 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getBirkL3().
|
private |
Definition at line 94 of file CaloSteppingAction.h.
Referenced by update(), and ~CaloSteppingAction().
|
private |
Definition at line 81 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 82 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 94 of file CaloSteppingAction.h.
|
private |
Definition at line 83 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getDetIDHC().
|
private |
Definition at line 87 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and getDetIDHC().
Definition at line 98 of file CaloSteppingAction.h.
Referenced by fillHit(), saveHits(), and update().
|
private |
Definition at line 90 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 90 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 90 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and update().
|
private |
Definition at line 91 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and produce().
|
staticprivate |
Definition at line 80 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), produce(), and update().
|
private |
Definition at line 88 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), fillHits(), saveHits(), and update().
|
private |
Definition at line 95 of file CaloSteppingAction.h.
Referenced by CaloSteppingAction(), and curve_LY().
|
private |
Definition at line 92 of file CaloSteppingAction.h.
Referenced by update().
|
private |
Definition at line 92 of file CaloSteppingAction.h.
Referenced by update().
|
private |
Definition at line 92 of file CaloSteppingAction.h.
Referenced by update().
|
private |
Definition at line 93 of file CaloSteppingAction.h.
Referenced by update().