Classes | |
struct | ShowerLib |
Public Member Functions | |
CastorShowerLibraryMaker (const edm::ParameterSet &p) | |
~CastorShowerLibraryMaker () override | |
Public Member Functions inherited from SimWatcher | |
virtual void | beginRun (edm::EventSetup const &) |
bool | isMT () const |
const SimWatcher & | operator= (const SimWatcher &)=delete |
virtual void | registerConsumes (edm::ConsumesCollector) |
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 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 EndOfRun *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 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 | |
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 | |
Protected Member Functions inherited from SimWatcher | |
void | setMT (bool val) |
Definition at line 85 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 97 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 98 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 99 of file CastorShowerLibraryMaker.cc.
CastorShowerLibraryMaker::CastorShowerLibraryMaker | ( | const edm::ParameterSet & | p | ) |
Definition at line 184 of file CastorShowerLibraryMaker.cc.
References funct::abs(), 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 |
|
private |
Definition at line 1035 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, nano_mu_digi_cff::sector, CastorShowerEvent::setDetID(), CastorShowerEvent::setHitPosition(), CastorShowerEvent::setNhit(), CastorShowerEvent::setNphotons(), CastorShowerEvent::setTime(), hcalRecHitTable_cff::time, CastorNumberingScheme::unpackIndex(), verbosity, and ecaldqm::zside().
Referenced by update().
|
private |
Definition at line 792 of file CastorShowerLibraryMaker.cc.
References hcalRecHitTable_cff::energy, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 816 of file CastorShowerLibraryMaker.cc.
References PVValHelper::eta, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 838 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, phi, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 777 of file CastorShowerLibraryMaker.cc.
References theFile, and theTree.
Referenced by ~CastorShowerLibraryMaker().
|
private |
Definition at line 908 of file CastorShowerLibraryMaker.cc.
References PVValHelper::eta, dqm-mbProfile::log, SiStripPI::max, SiStripPI::min, phi, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, funct::tan(), and theta().
Referenced by update().
|
private |
Definition at line 890 of file CastorShowerLibraryMaker.cc.
References PVValHelper::eta, dqm-mbProfile::log, SiStripPI::max, SiStripPI::min, phi, PrimaryMomentum, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, funct::tan(), and theta().
|
private |
Definition at line 1177 of file CastorShowerLibraryMaker.cc.
References mps_fire::end, spr::find(), mps_fire::i, MapOfSecondaries, nhits, PbPb_ZMuSkimMuonDPG_cff::particleType, and thePrims.
Referenced by update().
|
private |
Definition at line 927 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, npart, NPGParticle, PGParticleIDs, and thePrims.
Referenced by update().
|
private |
Definition at line 242 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryInfo::Energy, CastorShowerLibraryInfo::Eta, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, l1tHGCalTowerMapProducer_cfi::nBinsEta, l1tSlwPFPuppiJets_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 862 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 1166 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, and createfilelist::int.
Referenced by update().
|
private |
Definition at line 964 of file CastorShowerLibraryMaker.cc.
References emSLHolder, hadSLHolder, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, dqmiodumpmetadata::n, l1tHGCalTowerMapProducer_cfi::nBinsEta, l1tSlwPFPuppiJets_cfi::nBinsPhi, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, SLisPhiBinFilled(), SLnEvtInBinE(), CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 1014 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 1139 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinE, and SLShowerptr.
Referenced by IsSLReady(), and SLacceptEvent().
|
private |
Definition at line 1148 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinEta, and SLShowerptr.
Referenced by SLacceptEvent().
|
private |
Definition at line 1157 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinPhi, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, and SLShowerptr.
Referenced by printSLstatus(), and SLacceptEvent().
|
private |
Definition at line 1116 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, and SLShowerptr.
Referenced by printSLstatus(), and update().
|
private |
Definition at line 1124 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 1132 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 BeginOfJob *>.
Definition at line 293 of file CastorShowerLibraryMaker.cc.
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 298 of file CastorShowerLibraryMaker.cc.
References 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 EndOfRun *>.
Definition at line 707 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 BeginOfEvent *>.
Definition at line 370 of file CastorShowerLibraryMaker.cc.
References accept(), 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 EndOfEvent *>.
Definition at line 559 of file CastorShowerLibraryMaker.cc.
References CastorShowerEvent::Clear(), 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 G4Step *>.
Definition at line 456 of file CastorShowerLibraryMaker.cc.
References funct::abs(), funct::cos(), 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 135 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 133 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and IsSLReady().
|
private |
Definition at line 132 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and IsSLReady().
|
private |
Definition at line 139 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 141 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 143 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), IsSLReady(), printSLstatus(), and update().
|
private |
Definition at line 180 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 128 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 140 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 142 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 144 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), IsSLReady(), printSLstatus(), and update().
|
private |
Definition at line 134 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 146 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), FillShowerEvent(), GetMissingEnergy(), and update().
|
private |
Definition at line 151 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 152 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 130 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and GetPrimary().
|
private |
Definition at line 131 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and GetPrimary().
|
private |
Definition at line 149 of file CastorShowerLibraryMaker.cc.
Referenced by GetKinematics(), and update().
|
private |
Definition at line 150 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 145 of file CastorShowerLibraryMaker.cc.
Referenced by FindEnergyBin(), FindEtaBin(), FindPhiBin(), IsSLReady(), printSLstatus(), SLacceptEvent(), SLisEBinFilled(), SLisEtaBinFilled(), SLisPhiBinFilled(), SLnEvtInBinE(), SLnEvtInBinEta(), SLnEvtInBinPhi(), and update().
|
private |
Definition at line 181 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 177 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 136 of file CastorShowerLibraryMaker.cc.
Referenced by GetMissingEnergy(), GetPrimary(), and update().
|
private |
Definition at line 178 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 127 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), FillShowerEvent(), and update().