#include <BeamMonitorBx.h>
Public Types | |
typedef std::map< BxNum, reco::BeamSpot > | BeamSpotMapBx |
typedef int | BxNum |
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 | endJob (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) |
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) |
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 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) |
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 &) |
Definition at line 27 of file BeamMonitorBx.h.
typedef std::map<BxNum,reco::BeamSpot> BeamMonitorBx::BeamSpotMapBx |
Definition at line 33 of file BeamMonitorBx.h.
typedef int BeamMonitorBx::BxNum |
Definition at line 32 of file BeamMonitorBx.h.
BeamMonitorBx::BeamMonitorBx | ( | const edm::ParameterSet & | ps | ) |
Definition at line 45 of file BeamMonitorBx.cc.
References d0_phi_analyzer_cff::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.
BeamMonitorBx::~BeamMonitorBx | ( | ) |
|
overrideprotected |
Definition at line 152 of file BeamMonitorBx.cc.
References countEvt_, edm::EventBase::luminosityBlock(), nextlumi_, processed_, BeamFitter::readEvent(), and theBeamFitter.
|
overrideprotectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 81 of file BeamMonitorBx.cc.
References BookTables(), dbe_, monitorName_, varMap, and varMap1.
|
overrideprotected |
Definition at line 124 of file BeamMonitorBx.cc.
References beginLumiOfBSFit_, edm::LuminosityBlockBase::beginTime(), countLumi_, FitAndFill(), lastlumi_, edm::LuminosityBlockBase::luminosityBlock(), nextlumi_, processed_, refBStime, and edm::Timestamp::value().
|
overrideprotected |
Definition at line 115 of file BeamMonitorBx.cc.
References edm::RunBase::beginTime(), ftimestamp, refTime, startTime, tmpTime, and edm::Timestamp::value().
|
private |
Definition at line 188 of file BeamMonitorBx.cc.
References dbe_, hs, mps_fire::i, and monitorName_.
Referenced by beginJob(), and FitAndFill().
|
private |
Definition at line 217 of file BeamMonitorBx.cc.
References pyrootRender::da, dbe_, debug_, formatFitTime(), hst, mps_fire::i, monitorName_, AlcaSiPixelAliHarvester0T_cff::options, startTime, trackingPlots::xtitle, and trackingPlots::ytitle.
Referenced by FitAndFill().
|
protected |
|
overrideprotected |
Definition at line 175 of file BeamMonitorBx.cc.
References edm::LuminosityBlockBase::endTime(), edm::LuminosityBlockBase::id(), edm::LuminosityBlockID::luminosityBlock(), nextlumi_, refBStime, tmpTime, and edm::Timestamp::value().
|
overrideprotected |
Definition at line 561 of file BeamMonitorBx.cc.
|
private |
Definition at line 445 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 467 of file BeamMonitorBx.cc.
References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthXError(), reco::BeamSpot::BeamWidthY(), reco::BeamSpot::BeamWidthYError(), endLumiOfBSFit_, hst, training_settings::idx, reco::BeamSpot::sigmaZ(), reco::BeamSpot::sigmaZ0Error(), 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 329 of file BeamMonitorBx.cc.
References beginLumiOfBSFit_, BookTables(), BookTrendHistos(), countBx_, countGoodFit_, endLumiOfBSFit_, fbspotMap, FillTables(), FillTrendHistos(), firstlumi_, fitNLumi_, BeamFitter::getBeamSpotMap(), BeamFitter::getFitLSRange(), BeamFitter::getNPVsperBX(), hs, 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, and plotBeamSpotDB::ptm.
Referenced by BookTrendHistos().
|
private |
Definition at line 502 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 546 of file BeamMonitorBx.cc.
References MillePedeFileConverter_cfg::e, and mathSSE::sqrt().
|
private |
Definition at line 83 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginLuminosityBlock(), and FitAndFill().
|
private |
Definition at line 71 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx().
|
private |
Definition at line 80 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 81 of file BeamMonitorBx.h.
Referenced by analyze().
|
private |
Definition at line 88 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 82 of file BeamMonitorBx.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 77 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginJob(), BookTables(), and BookTrendHistos().
|
private |
Definition at line 75 of file BeamMonitorBx.h.
Referenced by BookTrendHistos().
|
private |
Definition at line 84 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), FillTrendHistos(), and FitAndFill().
|
private |
Definition at line 94 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 87 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 73 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 108 of file BeamMonitorBx.h.
Referenced by beginRun().
|
private |
Definition at line 98 of file BeamMonitorBx.h.
Referenced by BookTables(), FillTables(), and FitAndFill().
|
private |
Definition at line 99 of file BeamMonitorBx.h.
Referenced by BookTrendHistos(), and FillTrendHistos().
|
private |
Definition at line 85 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and beginLuminosityBlock().
|
private |
Definition at line 70 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginJob(), BookTables(), and BookTrendHistos().
|
private |
Definition at line 86 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), beginLuminosityBlock(), and endLuminosityBlock().
|
private |
Definition at line 69 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), Mixins._TypedParameterizable::clone(), Types.PSet::clone(), and Mixins._TypedParameterizable::copy().
|
private |
Definition at line 92 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), and beginLuminosityBlock().
|
private |
Definition at line 89 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginLuminosityBlock(), endLuminosityBlock(), and FitAndFill().
|
private |
Definition at line 106 of file BeamMonitorBx.h.
Referenced by beginRun(), and FitAndFill().
|
private |
Definition at line 74 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 91 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 107 of file BeamMonitorBx.h.
Referenced by beginRun(), BookTrendHistos(), and FillTrendHistos().
|
private |
Definition at line 78 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), FitAndFill(), and ~BeamMonitorBx().
|
private |
Definition at line 105 of file BeamMonitorBx.h.
Referenced by beginRun(), endLuminosityBlock(), FillTrendHistos(), and FitAndFill().
|
private |
Definition at line 95 of file BeamMonitorBx.h.
Referenced by beginJob(), and FitAndFill().
|
private |
Definition at line 96 of file BeamMonitorBx.h.
Referenced by beginJob(), and FitAndFill().