#include <BeamMonitorBx.h>
Public Types | |
typedef std::map< BxNum, reco::BeamSpot > | BeamSpotMapBx |
typedef int | BxNum |
typedef dqm::legacy::DQMStore | DQMStore |
typedef dqm::legacy::MonitorElement | MonitorElement |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) override |
void | beginJob () override |
void | beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) override |
void | endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override |
void | endRun (const edm::Run &r, const edm::EventSetup &c) override |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Private Member Functions | |
void | BookTables (int, std::map< std::string, std::string > &, std::string) |
void | BookTrendHistos (bool, int, std::map< std::string, std::string > &, std::string, const TString &, const TString &) |
void | FillTables (int, int, std::map< std::string, std::string > &, reco::BeamSpot &, std::string) |
void | FillTrendHistos (int, int, std::map< std::string, std::string > &, reco::BeamSpot &, const TString &) |
void | FitAndFill (const edm::LuminosityBlock &lumiSeg, int &, int &, int &) |
void | formatFitTime (char *, const std::time_t &) |
void | weight (BeamSpotMapBx &, const BeamSpotMapBx &) |
void | weight (double &mean, double &meanError, const double &val, const double &valError) |
Private Attributes | |
int | beginLumiOfBSFit_ |
edm::InputTag | bsSrc_ |
unsigned int | countBx_ |
int | countEvt_ |
int | countGoodFit_ |
int | countLumi_ |
DQMStore * | dbe_ |
bool | debug_ |
int | endLumiOfBSFit_ |
BeamSpotMapBx | fbspotMap |
int | firstlumi_ |
int | fitNLumi_ |
edm::TimeValue_t | ftimestamp |
std::map< TString, MonitorElement * > | hs |
std::map< TString, MonitorElement * > | hst |
int | lastlumi_ |
std::string | monitorName_ |
int | nextlumi_ |
edm::ParameterSet | parameters_ |
bool | processed_ |
std::time_t | refBStime [2] |
std::time_t | refTime |
int | resetFitNLumi_ |
bool | resetHistos_ |
std::time_t | startTime |
BeamFitter * | theBeamFitter |
std::time_t | tmpTime |
std::map< std::string, std::string > | varMap |
std::map< std::string, std::string > | varMap1 |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsInputProcessBlocks () |
static bool | wantsProcessBlocks () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Definition at line 25 of file BeamMonitorBx.h.
typedef std::map<BxNum, reco::BeamSpot> BeamMonitorBx::BeamSpotMapBx |
Definition at line 34 of file BeamMonitorBx.h.
typedef int BeamMonitorBx::BxNum |
Definition at line 33 of file BeamMonitorBx.h.
Definition at line 28 of file BeamMonitorBx.h.
Definition at line 27 of file BeamMonitorBx.h.
BeamMonitorBx::BeamMonitorBx | ( | const edm::ParameterSet & | ps | ) |
Definition at line 54 of file BeamMonitorBx.cc.
References AlcaBeamMonitor_cfi::BeamFitter, beginLumiOfBSFit_, bsSrc_, edm::EDConsumerBase::consumesCollector(), countGoodFit_, dbe_, endLumiOfBSFit_, firstlumi_, fitNLumi_, edm::ParameterSet::getUntrackedParameter(), lastlumi_, monitorName_, nextlumi_, Utilities::operator, parameters_, processed_, refBStime, resetFitNLumi_, BeamFitter::resetLSRange(), BeamFitter::resetPVFitter(), BeamFitter::resetRefTime(), BeamFitter::resetTrkVector(), and theBeamFitter.
|
override |
|
overrideprotectedvirtual |
Implements edm::EDAnalyzer.
Definition at line 158 of file BeamMonitorBx.cc.
References countEvt_, iEvent, nextlumi_, processed_, BeamFitter::readEvent(), and theBeamFitter.
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 86 of file BeamMonitorBx.cc.
References BookTables(), dbe_, monitorName_, dqm::implementation::DQMStore::setCurrentFolder(), varMap, and varMap1.
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 127 of file BeamMonitorBx.cc.
References beginLumiOfBSFit_, edm::LuminosityBlockBase::beginTime(), countLumi_, FitAndFill(), lastlumi_, edm::LuminosityBlockBase::luminosityBlock(), nextlumi_, processed_, refBStime, and edm::Timestamp::value().
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 120 of file BeamMonitorBx.cc.
References ftimestamp, alignCSCRings::r, refTime, startTime, and tmpTime.
|
private |
Definition at line 190 of file BeamMonitorBx.cc.
References dqm::implementation::IBooker::book2D(), dqm::implementation::DQMStore::cd(), dbe_, hs, mps_fire::i, and monitorName_.
Referenced by beginJob(), and FitAndFill().
|
private |
Definition at line 214 of file BeamMonitorBx.cc.
References dqm::implementation::IBooker::book1D(), dqm::implementation::DQMStore::cd(), Calorimetry_cff::da, dbe_, debug_, formatFitTime(), dqm::implementation::IGetter::get(), B2GTnPMonitor_cfi::histTitle, hst, mps_fire::i, monitorName_, AlcaSiPixelAliHarvester0T_cff::options, contentValuesCheck::ss, startTime, compareTotals::xtitle, and compareTotals::ytitle.
Referenced by FitAndFill().
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 178 of file BeamMonitorBx.cc.
References edm::LuminosityBlockBase::endTime(), edm::LuminosityBlockBase::id(), edm::LuminosityBlockID::luminosityBlock(), nextlumi_, refBStime, tmpTime, and edm::Timestamp::value().
|
overrideprotectedvirtual |
|
private |
Definition at line 450 of file BeamMonitorBx.cc.
References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthXError(), reco::BeamSpot::BeamWidthY(), reco::BeamSpot::BeamWidthYError(), hs, reco::BeamSpot::sigmaZ(), reco::BeamSpot::sigmaZ0Error(), reco::BeamSpot::x0(), reco::BeamSpot::x0Error(), reco::BeamSpot::y0(), reco::BeamSpot::y0Error(), reco::BeamSpot::z0(), and reco::BeamSpot::z0Error().
Referenced by FitAndFill().
|
private |
Definition at line 470 of file BeamMonitorBx.cc.
References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthXError(), reco::BeamSpot::BeamWidthY(), reco::BeamSpot::BeamWidthYError(), endLumiOfBSFit_, hst, heavyIonCSV_trainingSettings::idx, reco::BeamSpot::sigmaZ(), reco::BeamSpot::sigmaZ0Error(), contentValuesCheck::ss, startTime, tmpTime, reco::BeamSpot::x0(), reco::BeamSpot::x0Error(), reco::BeamSpot::y0(), reco::BeamSpot::y0Error(), reco::BeamSpot::z0(), and reco::BeamSpot::z0Error().
Referenced by FitAndFill().
|
private |
Definition at line 328 of file BeamMonitorBx.cc.
References beginLumiOfBSFit_, BookTables(), BookTrendHistos(), cms::cuda::bs, simKBmtfDigis_cfi::bx, countBx_, countGoodFit_, endLumiOfBSFit_, fbspotMap, FillTables(), FillTrendHistos(), firstlumi_, fitNLumi_, BeamFitter::getBeamSpotMap(), BeamFitter::getFitLSRange(), BeamFitter::getNPVsperBX(), hs, BeamSpotPI::nPVs, refBStime, refTime, BeamFitter::resetCutFlow(), resetFitNLumi_, resetHistos_, BeamFitter::resetLSRange(), BeamFitter::resetPVFitter(), BeamFitter::resetRefTime(), BeamFitter::resetTrkVector(), BeamFitter::runPVandTrkFitter(), theBeamFitter, tmpTime, varMap, varMap1, and weight().
Referenced by beginLuminosityBlock().
|
private |
Definition at line 28 of file BeamMonitorBx.cc.
References b, CEST, plotBeamSpotDB::ptm, and submitPVValidationJobs::t.
Referenced by BookTrendHistos().
|
private |
Definition at line 506 of file BeamMonitorBx.cc.
References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthXError(), reco::BeamSpot::BeamWidthY(), reco::BeamSpot::BeamWidthYError(), reco::BeamSpot::dxdz(), reco::BeamSpot::dxdzError(), reco::BeamSpot::dydz(), reco::BeamSpot::dydzError(), relativeConstraints::error, mps_fire::i, reco::BeamSpot::setBeamWidthY(), reco::BeamSpot::sigmaZ(), reco::BeamSpot::sigmaZ0Error(), reco::BeamSpot::Tracker, reco::BeamSpot::Unknown, reco::BeamSpot::x0(), reco::BeamSpot::x0Error(), reco::BeamSpot::y0(), reco::BeamSpot::y0Error(), reco::BeamSpot::z0(), and reco::BeamSpot::z0Error().
Referenced by FitAndFill().
|
private |
Definition at line 552 of file BeamMonitorBx.cc.
References MillePedeFileConverter_cfg::e, SiStripPI::mean, mathSSE::sqrt(), and heppy_batch::val.
|
private |
Definition at line 75 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginLuminosityBlock(), and FitAndFill().
|
private |
Definition at line 63 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx().
|
private |
Definition at line 72 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 73 of file BeamMonitorBx.h.
Referenced by analyze().
|
private |
Definition at line 80 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 74 of file BeamMonitorBx.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 69 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginJob(), BookTables(), and BookTrendHistos().
|
private |
Definition at line 67 of file BeamMonitorBx.h.
Referenced by BookTrendHistos().
|
private |
Definition at line 76 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), FillTrendHistos(), and FitAndFill().
|
private |
Definition at line 86 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 79 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 65 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 100 of file BeamMonitorBx.h.
Referenced by beginRun().
|
private |
Definition at line 90 of file BeamMonitorBx.h.
Referenced by BookTables(), FillTables(), and FitAndFill().
|
private |
Definition at line 91 of file BeamMonitorBx.h.
Referenced by BookTrendHistos(), and FillTrendHistos().
|
private |
Definition at line 77 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and beginLuminosityBlock().
|
private |
Definition at line 62 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginJob(), BookTables(), and BookTrendHistos().
|
private |
Definition at line 78 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), beginLuminosityBlock(), and endLuminosityBlock().
|
private |
Definition at line 61 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), Mixins._TypedParameterizable::clone(), Types.PSet::clone(), Types.EDAlias::clone(), and Mixins._TypedParameterizable::copy().
|
private |
Definition at line 84 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), and beginLuminosityBlock().
|
private |
Definition at line 81 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginLuminosityBlock(), endLuminosityBlock(), and FitAndFill().
|
private |
Definition at line 98 of file BeamMonitorBx.h.
Referenced by beginRun(), and FitAndFill().
|
private |
Definition at line 66 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 83 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 99 of file BeamMonitorBx.h.
Referenced by beginRun(), BookTrendHistos(), and FillTrendHistos().
|
private |
Definition at line 70 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), FitAndFill(), and ~BeamMonitorBx().
|
private |
Definition at line 97 of file BeamMonitorBx.h.
Referenced by beginRun(), endLuminosityBlock(), FillTrendHistos(), and FitAndFill().
|
private |
Definition at line 87 of file BeamMonitorBx.h.
Referenced by beginJob(), and FitAndFill().
|
private |
Definition at line 88 of file BeamMonitorBx.h.
Referenced by beginJob(), and FitAndFill().