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 83 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 95 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 96 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 97 of file CastorShowerLibraryMaker.cc.
CastorShowerLibraryMaker::CastorShowerLibraryMaker | ( | const edm::ParameterSet & | p | ) |
Definition at line 182 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 1014 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 771 of file CastorShowerLibraryMaker.cc.
References HBHEDarkening_cff::energy, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 795 of file CastorShowerLibraryMaker.cc.
References PVValHelper::eta, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 817 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, phi, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 756 of file CastorShowerLibraryMaker.cc.
References theFile, and theTree.
Referenced by ~CastorShowerLibraryMaker().
|
private |
Definition at line 887 of file CastorShowerLibraryMaker.cc.
References Matriplex::atan2(), PVValHelper::eta, CrabHelper::log, WZElectronSkims53X_cff::max, SiStripPI::min, phi, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, funct::tan(), and tauSpinnerTable_cfi::theta.
Referenced by update().
|
private |
Definition at line 869 of file CastorShowerLibraryMaker.cc.
References Matriplex::atan2(), PVValHelper::eta, CrabHelper::log, WZElectronSkims53X_cff::max, SiStripPI::min, phi, PrimaryMomentum, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, funct::tan(), and tauSpinnerTable_cfi::theta.
|
private |
Definition at line 1156 of file CastorShowerLibraryMaker.cc.
References mps_fire::end, spr::find(), mps_fire::i, MapOfSecondaries, TrackingDataMCValidation_Standalone_cff::nhits, WZElectronSkims53X_cff::particleType, and thePrims.
Referenced by update().
|
private |
Definition at line 906 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, npart, NPGParticle, PGParticleIDs, and thePrims.
Referenced by update().
|
private |
Definition at line 240 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryInfo::Energy, CastorShowerLibraryInfo::Eta, mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, l1tHGCalTowerMapProducer_cfi::nBinsEta, l1tPhase1JetProducer_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 841 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 1145 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, and createfilelist::int.
Referenced by update().
|
private |
Definition at line 943 of file CastorShowerLibraryMaker.cc.
References emSLHolder, hadSLHolder, mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, create_idmaps::n, l1tHGCalTowerMapProducer_cfi::nBinsEta, l1tPhase1JetProducer_cfi::nBinsPhi, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, SLisPhiBinFilled(), SLnEvtInBinE(), CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 993 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 1118 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinE, and SLShowerptr.
Referenced by IsSLReady(), and SLacceptEvent().
|
private |
Definition at line 1127 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinEta, and SLShowerptr.
Referenced by SLacceptEvent().
|
private |
Definition at line 1136 of file CastorShowerLibraryMaker.cc.
References createfilelist::int, CastorShowerLibraryMaker::ShowerLib::nEvtInBinPhi, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, and SLShowerptr.
Referenced by printSLstatus(), and SLacceptEvent().
|
private |
Definition at line 1095 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, and SLShowerptr.
Referenced by printSLstatus(), and update().
|
private |
Definition at line 1103 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 1111 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 291 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 296 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 686 of file CastorShowerLibraryMaker.cc.
References CastorShowerEvent::Clear(), emInfo, emShower, emSLHolder, hadInfo, hadShower, hadSLHolder, IsSLReady(), WZElectronSkims53X_cff::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 368 of file CastorShowerLibraryMaker.cc.
References accept(), emSLHolder, PVValHelper::eta, eventIndex, FindEnergyBin(), FindEtaBin(), FindPhiBin(), GetKinematics(), GetPrimary(), hadSLHolder, mps_fire::i, InsideCastor, IsSLReady(), MapOfSecondaries, WZElectronSkims53X_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 557 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, WZElectronSkims53X_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 454 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, trk, and verbosity.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
Definition at line 133 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 131 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and IsSLReady().
|
private |
Definition at line 130 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and IsSLReady().
|
private |
Definition at line 137 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 139 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 141 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), IsSLReady(), printSLstatus(), and update().
|
private |
Definition at line 178 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 126 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 138 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 140 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 142 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), IsSLReady(), printSLstatus(), and update().
|
private |
Definition at line 132 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 144 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), FillShowerEvent(), GetMissingEnergy(), and update().
|
private |
Definition at line 149 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 150 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and update().
|
private |
Definition at line 128 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and GetPrimary().
|
private |
Definition at line 129 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), and GetPrimary().
|
private |
Definition at line 147 of file CastorShowerLibraryMaker.cc.
Referenced by GetKinematics(), and update().
|
private |
Definition at line 148 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 143 of file CastorShowerLibraryMaker.cc.
Referenced by FindEnergyBin(), FindEtaBin(), FindPhiBin(), IsSLReady(), printSLstatus(), SLacceptEvent(), SLisEBinFilled(), SLisEtaBinFilled(), SLisPhiBinFilled(), SLnEvtInBinE(), SLnEvtInBinEta(), SLnEvtInBinPhi(), and update().
|
private |
Definition at line 179 of file CastorShowerLibraryMaker.cc.
Referenced by update().
|
private |
Definition at line 175 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 134 of file CastorShowerLibraryMaker.cc.
Referenced by GetMissingEnergy(), GetPrimary(), and update().
|
private |
Definition at line 176 of file CastorShowerLibraryMaker.cc.
|
private |
Definition at line 125 of file CastorShowerLibraryMaker.cc.
Referenced by CastorShowerLibraryMaker(), FillShowerEvent(), and update().