#include <CastorShowerLibraryMaker.h>
Classes | |
struct | ShowerLib |
Public Member Functions | |
CastorShowerLibraryMaker (const edm::ParameterSet &p) | |
~CastorShowerLibraryMaker () override | |
Public Member Functions inherited from SimWatcher | |
const SimWatcher & | operator= (const SimWatcher &)=delete |
SimWatcher () | |
SimWatcher (const SimWatcher &)=delete | |
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 EndOfRun * > | |
Observer () | |
void | slotForUpdate (const EndOfRun * 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 int | ebin |
typedef int | etabin |
typedef int | phibin |
Private Member Functions | |
bool | FillShowerEvent (CaloG4HitCollection *, CastorShowerEvent *, int) |
int | FindEnergyBin (double e) |
int | FindEtaBin (double eta) |
int | FindPhiBin (double phi) |
void | Finish () |
void | GetKinematics (G4PrimaryParticle *, double &px, double &py, double &pz, double &pInit, double &eta, double &phi) |
void | GetKinematics (int, double &px, double &py, double &pz, double &pInit, double &eta, double &phi) |
void | GetMissingEnergy (CaloG4HitCollection *, double &, double &) |
std::vector< G4PrimaryParticle * > | GetPrimary (const G4Event *) |
void | InitSLHolder (ShowerLib &) |
bool | IsSLReady () |
void | KillSecondaries (const G4Step *step) |
void | printSLstatus (int, int, int) |
bool | SLacceptEvent (int, int, int) |
bool | SLisEBinFilled (int ebin) |
bool | SLisEtaBinFilled (int ebin, int etabin) |
bool | SLisPhiBinFilled (int ebin, int etabin, int phibin) |
int & | SLnEvtInBinE (int ebin) |
int & | SLnEvtInBinEta (int ebin, int etabin) |
int & | SLnEvtInBinPhi (int ebin, int etabin, int phibin) |
void | update (const BeginOfEvent *evt) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const BeginOfJob *run) 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 EndOfRun *run) 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 | |
bool | DeActivatePhysicsProcess |
bool | DoEmSL |
bool | DoHadSL |
CastorShowerLibraryInfo * | emInfo |
CastorShowerEvent * | emShower |
ShowerLib | emSLHolder |
int | eventIndex |
std::string | eventNtFileName |
CastorShowerLibraryInfo * | hadInfo |
CastorShowerEvent * | hadShower |
ShowerLib | hadSLHolder |
bool | InsideCastor |
std::map< int, std::set< int > > | MapOfSecondaries |
double | MaxEta |
double | MaxPhi |
unsigned int | NPGParticle |
std::vector< int > | PGParticleIDs |
std::map< int, G4ThreeVector > | PrimaryMomentum |
std::map< int, G4ThreeVector > | PrimaryPosition |
ShowerLib * | SLShowerptr |
int | stepIndex |
TFile * | theFile |
std::vector< G4PrimaryParticle * > | thePrims |
TTree * | theTree |
int | verbosity |
Additional Inherited Members |
Definition at line 82 of file CastorShowerLibraryMaker.h.
|
private |
Definition at line 94 of file CastorShowerLibraryMaker.h.
|
private |
Definition at line 95 of file CastorShowerLibraryMaker.h.
|
private |
Definition at line 96 of file CastorShowerLibraryMaker.h.
CastorShowerLibraryMaker::CastorShowerLibraryMaker | ( | const edm::ParameterSet & | p | ) |
Definition at line 38 of file CastorShowerLibraryMaker.cc.
References funct::abs(), gather_cfg::cout, DeActivatePhysicsProcess, DoEmSL, DoHadSL, emInfo, emSLHolder, eventNtFileName, edm::ParameterSet::getParameter(), hadInfo, hadSLHolder, mps_fire::i, InitSLHolder(), MapOfSecondaries, MaxEta, MaxPhi, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinE, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinEta, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, NPGParticle, AlCaHLTBitMon_ParallelJobs::p, PGParticleIDs, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, AlCaHLTBitMon_QueryRunRegistry::string, and verbosity.
|
override |
Definition at line 141 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, and Finish().
|
private |
Definition at line 886 of file CastorShowerLibraryMaker.cc.
References mps_fire::end, mps_splice::entry, spr::find(), CaloG4Hit::getEnergyDeposit(), CaloG4Hit::getEntry(), CaloG4Hit::getIncidentEnergy(), CaloG4Hit::getPosition(), CaloG4Hit::getTimeSlice(), CaloG4Hit::getTrackID(), CaloG4Hit::getUnitID(), MapOfSecondaries, nHits, CastorNumberingScheme::packIndex(), position, CastorShowerEvent::setDetID(), CastorShowerEvent::setHitPosition(), CastorShowerEvent::setNhit(), CastorShowerEvent::setNphotons(), CastorShowerEvent::setTime(), protons_cff::time, CastorNumberingScheme::unpackIndex(), verbosity, and ecaldqm::zside().
Referenced by update().
|
private |
Definition at line 648 of file CastorShowerLibraryMaker.cc.
References HCALHighEnergyHPDFilter_cfi::energy, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 672 of file CastorShowerLibraryMaker.cc.
References PVValHelper::eta, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 694 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, phi, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 633 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, theFile, and theTree.
Referenced by ~CastorShowerLibraryMaker().
|
private |
Definition at line 764 of file CastorShowerLibraryMaker.cc.
References PVValHelper::eta, GeV, dqm-mbProfile::log, SiStripPI::max, min(), phi, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, funct::tan(), and theta().
Referenced by update().
|
private |
Definition at line 746 of file CastorShowerLibraryMaker.cc.
References PVValHelper::eta, GeV, dqm-mbProfile::log, SiStripPI::max, min(), phi, PrimaryMomentum, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, funct::tan(), and theta().
|
private |
Definition at line 1027 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, mps_fire::end, spr::find(), mps_fire::i, MapOfSecondaries, nhits, PbPb_ZMuSkimMuonDPG_cff::particleType, and thePrims.
Referenced by update().
|
private |
Definition at line 783 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, npart, NPGParticle, PGParticleIDs, and thePrims.
Referenced by update().
|
private |
Definition at line 97 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryInfo::Energy, CastorShowerLibraryInfo::Eta, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, hgcalTowerMapProducer_cfi::nBinsEta, Phase1L1TJetProducer_cfi::nBinsPhi, CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, CastorShowerLibraryMaker::ShowerLib::nEvtInBinPhi, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, CastorShowerLibraryInfo::Phi, SLBin::setBin(), SLBin::setNBins(), SLBin::setNEvtPerBin(), SLBin::setNEvts(), CastorShowerLibraryMaker::ShowerLib::SLCollection, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, CastorShowerLibraryMaker::ShowerLib::SLInfo, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and trackerHitRTTI::vector.
Referenced by CastorShowerLibraryMaker().
|
private |
Definition at line 718 of file CastorShowerLibraryMaker.cc.
References DoEmSL, DoHadSL, emSLHolder, hadSLHolder, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, SLisEBinFilled(), and SLShowerptr.
Referenced by update().
|
private |
Definition at line 1017 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, mps_fire::i, and createfilelist::int.
Referenced by update().
|
private |
Definition at line 819 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, emSLHolder, hadSLHolder, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, dqmiodumpmetadata::n, hgcalTowerMapProducer_cfi::nBinsEta, Phase1L1TJetProducer_cfi::nBinsPhi, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, SLisPhiBinFilled(), SLnEvtInBinE(), CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 865 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, SLisEBinFilled(), SLisEtaBinFilled(), SLisPhiBinFilled(), CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 990 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinE, and SLShowerptr.
Referenced by IsSLReady(), and SLacceptEvent().
|
private |
Definition at line 999 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinEta, and SLShowerptr.
Referenced by SLacceptEvent().
|
private |
Definition at line 1008 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinPhi, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, and SLShowerptr.
Referenced by printSLstatus(), and SLacceptEvent().
|
private |
Definition at line 967 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, and SLShowerptr.
Referenced by printSLstatus(), and update().
|
private |
Definition at line 975 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 983 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinPhi, and SLShowerptr.
Referenced by update().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfEvent * >.
Definition at line 225 of file CastorShowerLibraryMaker.cc.
References accept(), gather_cfg::cout, emSLHolder, PVValHelper::eta, eventIndex, FindEnergyBin(), FindEtaBin(), FindPhiBin(), GetKinematics(), GetPrimary(), hadSLHolder, mps_fire::i, InsideCastor, IsSLReady(), MapOfSecondaries, PbPb_ZMuSkimMuonDPG_cff::particleType, phi, PrimaryMomentum, PrimaryPosition, printSLstatus(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, SLacceptEvent(), SLShowerptr, stepIndex, AlCaHLTBitMon_QueryRunRegistry::string, thePrims, update(), and verbosity.
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 148 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), MatrixUtil.Steps::overwrite(), and update().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfRun * >.
Definition at line 153 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, emInfo, emShower, emSLHolder, CastorShowerLibraryInfo::Energy, CastorShowerLibraryInfo::Eta, eventIndex, eventNtFileName, hadInfo, hadShower, hadSLHolder, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinE, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinEta, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, CastorShowerLibraryInfo::Phi, SLBin::setBin(), SLBin::setNBins(), SLBin::setNEvtPerBin(), SLBin::setNEvts(), CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, submitPVValidationJobs::split(), theFile, and theTree.
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 413 of file CastorShowerLibraryMaker.cc.
References CastorShowerEvent::Clear(), gather_cfg::cout, emSLHolder, PVValHelper::eta, eventIndex, FillShowerEvent(), FindEnergyBin(), FindEtaBin(), FindPhiBin(), GetKinematics(), GetMissingEnergy(), CastorShowerEvent::getNhit(), hadSLHolder, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::nEvtInBinPhi, PbPb_ZMuSkimMuonDPG_cff::particleType, phi, PrimaryPosition, printSLstatus(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, CastorShowerEvent::setPrimE(), CastorShowerEvent::setPrimEta(), CastorShowerEvent::setPrimPhi(), CastorShowerEvent::setPrimX(), CastorShowerEvent::setPrimY(), CastorShowerEvent::setPrimZ(), SLacceptEvent(), CastorShowerLibraryMaker::ShowerLib::SLCollection, SLnEvtInBinE(), SLnEvtInBinEta(), SLnEvtInBinPhi(), SLShowerptr, AlCaHLTBitMon_QueryRunRegistry::string, thePrims, verbosity, x, y, and z.
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 EndOfRun * >.
Definition at line 563 of file CastorShowerLibraryMaker.cc.
References CastorShowerEvent::Clear(), emInfo, emShower, emSLHolder, hadInfo, hadShower, hadSLHolder, IsSLReady(), SiStripPI::max, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinE, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, writedatasetfile::run, CastorShowerLibraryMaker::ShowerLib::SLCollection, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, CastorShowerLibraryMaker::ShowerLib::SLInfo, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and theTree.
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 310 of file CastorShowerLibraryMaker.cc.
References funct::abs(), funct::cos(), gather_cfg::cout, DeActivatePhysicsProcess, mps_fire::i, InsideCastor, createfilelist::int, KillSecondaries(), MapOfSecondaries, MaxEta, MaxPhi, PrimaryMomentum, PrimaryPosition, ValidateTausOnZEEFastSim_cff::proc, alignCSCRings::r, funct::sin(), AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, and verbosity.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
Definition at line 132 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 130 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and IsSLReady().
|
private |
Definition at line 129 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and IsSLReady().
|
private |
Definition at line 136 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 138 of file CastorShowerLibraryMaker.h.
Referenced by update().
|
private |
Definition at line 140 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), IsSLReady(), printSLstatus(), and update().
|
private |
Definition at line 177 of file CastorShowerLibraryMaker.h.
Referenced by update().
|
private |
Definition at line 125 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 137 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 139 of file CastorShowerLibraryMaker.h.
Referenced by update().
|
private |
Definition at line 141 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), IsSLReady(), printSLstatus(), and update().
|
private |
Definition at line 131 of file CastorShowerLibraryMaker.h.
Referenced by update().
|
private |
Definition at line 143 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), FillShowerEvent(), GetMissingEnergy(), and update().
|
private |
Definition at line 148 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 149 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 127 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and GetPrimary().
|
private |
Definition at line 128 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), and GetPrimary().
|
private |
Definition at line 146 of file CastorShowerLibraryMaker.h.
Referenced by GetKinematics(), and update().
|
private |
Definition at line 147 of file CastorShowerLibraryMaker.h.
Referenced by update().
|
private |
Definition at line 142 of file CastorShowerLibraryMaker.h.
Referenced by FindEnergyBin(), FindEtaBin(), FindPhiBin(), IsSLReady(), printSLstatus(), SLacceptEvent(), SLisEBinFilled(), SLisEtaBinFilled(), SLisPhiBinFilled(), SLnEvtInBinE(), SLnEvtInBinEta(), SLnEvtInBinPhi(), and update().
|
private |
Definition at line 178 of file CastorShowerLibraryMaker.h.
Referenced by update().
|
private |
Definition at line 174 of file CastorShowerLibraryMaker.h.
|
private |
Definition at line 133 of file CastorShowerLibraryMaker.h.
Referenced by GetMissingEnergy(), GetPrimary(), and update().
|
private |
Definition at line 175 of file CastorShowerLibraryMaker.h.
|
private |
Definition at line 124 of file CastorShowerLibraryMaker.h.
Referenced by CastorShowerLibraryMaker(), FillShowerEvent(), and update().