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(), 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, PGParticleIDs, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, AlCaHLTBitMon_QueryRunRegistry::string, and verbosity.
|
override |
Definition at line 287 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, and Finish().
|
private |
Definition at line 1033 of file CastorShowerLibraryMaker.cc.
References dataset::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(), CastorNumberingScheme::unpackIndex(), verbosity, and ecaldqm::zside().
Referenced by update().
|
private |
Definition at line 794 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 818 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 840 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 779 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, theFile, and theTree.
Referenced by ~CastorShowerLibraryMaker().
|
private |
Definition at line 910 of file CastorShowerLibraryMaker.cc.
References GeV, log, SiStripPI::max, min(), funct::tan(), and theta().
Referenced by update().
|
private |
Definition at line 892 of file CastorShowerLibraryMaker.cc.
References GeV, log, SiStripPI::max, min(), PrimaryMomentum, funct::tan(), and theta().
|
private |
Definition at line 1175 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, dataset::end, spr::find(), mps_fire::i, MapOfSecondaries, nhits, HLT_FULL_cff::particleType, and thePrims.
Referenced by update().
|
private |
Definition at line 929 of file CastorShowerLibraryMaker.cc.
References mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, npart, NPGParticle, PGParticleIDs, and thePrims.
Referenced by update().
|
private |
Definition at line 243 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryInfo::Energy, CastorShowerLibraryInfo::Eta, mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, 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 864 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 1165 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, and mps_fire::i.
Referenced by update().
|
private |
Definition at line 966 of file CastorShowerLibraryMaker.cc.
References gather_cfg::cout, emSLHolder, hadSLHolder, mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, dqmiodumpmetadata::n, CastorShowerLibraryMaker::ShowerLib::SLEnergyBins, CastorShowerLibraryMaker::ShowerLib::SLEtaBins, SLisPhiBinFilled(), SLnEvtInBinE(), CastorShowerLibraryMaker::ShowerLib::SLPhiBins, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 1012 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 1138 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinE, and SLShowerptr.
Referenced by IsSLReady(), and SLacceptEvent().
|
private |
Definition at line 1147 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinEta, and SLShowerptr.
Referenced by SLacceptEvent().
|
private |
Definition at line 1156 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinPhi, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, and SLShowerptr.
Referenced by printSLstatus(), and SLacceptEvent().
|
private |
Definition at line 1115 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinE, and SLShowerptr.
Referenced by printSLstatus(), and update().
|
private |
Definition at line 1123 of file CastorShowerLibraryMaker.cc.
References CastorShowerLibraryMaker::ShowerLib::nEvtInBinEta, and SLShowerptr.
Referenced by update().
|
private |
Definition at line 1131 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 294 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 299 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 EndOfRun * >.
Definition at line 709 of file CastorShowerLibraryMaker.cc.
References CastorShowerEvent::Clear(), emInfo, emShower, emSLHolder, hadInfo, hadShower, hadSLHolder, IsSLReady(), SiStripPI::max, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinE, CastorShowerLibraryMaker::ShowerLib::nEvtPerBinPhi, 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 371 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, HLT_FULL_cff::particleType, phi, PrimaryMomentum, PrimaryPosition, printSLstatus(), 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(), gather_cfg::cout, emSLHolder, PVValHelper::eta, eventIndex, FillShowerEvent(), FindEnergyBin(), FindEtaBin(), FindPhiBin(), GetKinematics(), GetMissingEnergy(), CastorShowerEvent::getNhit(), hadSLHolder, mps_fire::i, CastorShowerLibraryMaker::ShowerLib::nEvtInBinPhi, HLT_FULL_cff::particleType, phi, PrimaryPosition, printSLstatus(), 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(), gather_cfg::cout, DeActivatePhysicsProcess, mps_fire::i, InsideCastor, 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().