#include <BeamMonitorBx.h>
Public Types | |
typedef std::map< BxNum, reco::BeamSpot > | BeamSpotMapBx |
typedef int | BxNum |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Public Member Functions | |
BeamMonitorBx (const edm::ParameterSet &) | |
~BeamMonitorBx () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
void | beginJob () |
void | beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) |
void | endJob (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) |
void | endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) |
void | endRun (const edm::Run &r, const edm::EventSetup &c) |
Protected Member Functions inherited from edm::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
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, TString, 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 &, TString) |
void | FitAndFill (const edm::LuminosityBlock &lumiSeg, int &, int &, int &) |
const char * | formatFitTime (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 29 of file BeamMonitorBx.h.
typedef std::map<BxNum,reco::BeamSpot> BeamMonitorBx::BeamSpotMapBx |
Definition at line 35 of file BeamMonitorBx.h.
typedef int BeamMonitorBx::BxNum |
Definition at line 34 of file BeamMonitorBx.h.
BeamMonitorBx::BeamMonitorBx | ( | const edm::ParameterSet & | ps | ) |
Definition at line 49 of file BeamMonitorBx.cc.
References beginLumiOfBSFit_, bsSrc_, countGoodFit_, dbe_, endLumiOfBSFit_, firstlumi_, fitNLumi_, edm::ParameterSet::getUntrackedParameter(), lastlumi_, monitorName_, nextlumi_, cppFunctionSkipper::operator, parameters_, processed_, refBStime, resetFitNLumi_, BeamFitter::resetLSRange(), BeamFitter::resetPVFitter(), BeamFitter::resetRefTime(), BeamFitter::resetTrkVector(), and theBeamFitter.
BeamMonitorBx::~BeamMonitorBx | ( | ) |
|
protectedvirtual |
Implements edm::EDAnalyzer.
Definition at line 156 of file BeamMonitorBx.cc.
References countEvt_, edm::EventBase::luminosityBlock(), nextlumi_, processed_, BeamFitter::readEvent(), and theBeamFitter.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 85 of file BeamMonitorBx.cc.
References BookTables(), dbe_, monitorName_, DQMStore::setCurrentFolder(), varMap, and varMap1.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 128 of file BeamMonitorBx.cc.
References beginLumiOfBSFit_, edm::LuminosityBlockBase::beginTime(), countLumi_, FitAndFill(), lastlumi_, edm::LuminosityBlockBase::luminosityBlock(), nextlumi_, processed_, refBStime, and edm::Timestamp::value().
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 119 of file BeamMonitorBx.cc.
References edm::RunBase::beginTime(), ftimestamp, refTime, startTime, tmpTime, and edm::Timestamp::value().
|
private |
Definition at line 192 of file BeamMonitorBx.cc.
References DQMStore::book2D(), DQMStore::cd(), dbe_, DQMStore::get(), hs, i, monitorName_, and DQMStore::removeElement().
Referenced by beginJob(), and FitAndFill().
|
private |
Definition at line 221 of file BeamMonitorBx.cc.
References DQMStore::book1D(), DQMStore::cd(), pyrootRender::da, dbe_, debug_, formatFitTime(), DQMStore::get(), hst, i, monitorName_, AlCaHLTBitMon_ParallelJobs::options, and startTime.
Referenced by FitAndFill().
|
protected |
Definition at line 568 of file BeamMonitorBx.cc.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 179 of file BeamMonitorBx.cc.
References edm::LuminosityBlockBase::endTime(), edm::LuminosityBlockBase::id(), edm::LuminosityBlockID::luminosityBlock(), nextlumi_, refBStime, tmpTime, and edm::Timestamp::value().
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 563 of file BeamMonitorBx.cc.
|
private |
Definition at line 447 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 469 of file BeamMonitorBx.cc.
References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthXError(), reco::BeamSpot::BeamWidthY(), reco::BeamSpot::BeamWidthYError(), endLumiOfBSFit_, hst, 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 331 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 29 of file BeamMonitorBx.cc.
References b, CEST, and plotBeamSpotDB::ptm.
Referenced by BookTrendHistos().
|
private |
Definition at line 504 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(), error, 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 |
|
private |
Definition at line 85 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginLuminosityBlock(), and FitAndFill().
|
private |
Definition at line 73 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx().
|
private |
Definition at line 82 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 83 of file BeamMonitorBx.h.
Referenced by analyze().
|
private |
Definition at line 90 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 84 of file BeamMonitorBx.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 79 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginJob(), BookTables(), and BookTrendHistos().
|
private |
Definition at line 77 of file BeamMonitorBx.h.
Referenced by BookTrendHistos().
|
private |
Definition at line 86 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), FillTrendHistos(), and FitAndFill().
|
private |
Definition at line 96 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 89 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 75 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 110 of file BeamMonitorBx.h.
Referenced by beginRun().
|
private |
Definition at line 100 of file BeamMonitorBx.h.
Referenced by BookTables(), FillTables(), and FitAndFill().
|
private |
Definition at line 101 of file BeamMonitorBx.h.
Referenced by BookTrendHistos(), and FillTrendHistos().
|
private |
Definition at line 87 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and beginLuminosityBlock().
|
private |
Definition at line 72 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginJob(), BookTables(), and BookTrendHistos().
|
private |
Definition at line 88 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), beginLuminosityBlock(), and endLuminosityBlock().
|
private |
Definition at line 71 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), Mixins._TypedParameterizable::clone(), Types.PSet::clone(), and Mixins._TypedParameterizable::copy().
|
private |
Definition at line 94 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), and beginLuminosityBlock().
|
private |
Definition at line 91 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), beginLuminosityBlock(), endLuminosityBlock(), and FitAndFill().
|
private |
Definition at line 108 of file BeamMonitorBx.h.
Referenced by beginRun(), and FitAndFill().
|
private |
Definition at line 76 of file BeamMonitorBx.h.
Referenced by BeamMonitorBx(), and FitAndFill().
|
private |
Definition at line 93 of file BeamMonitorBx.h.
Referenced by FitAndFill().
|
private |
Definition at line 109 of file BeamMonitorBx.h.
Referenced by beginRun(), BookTrendHistos(), and FillTrendHistos().
|
private |
Definition at line 80 of file BeamMonitorBx.h.
Referenced by analyze(), BeamMonitorBx(), FitAndFill(), and ~BeamMonitorBx().
|
private |
Definition at line 107 of file BeamMonitorBx.h.
Referenced by beginRun(), endLuminosityBlock(), FillTrendHistos(), and FitAndFill().
|
private |
Definition at line 97 of file BeamMonitorBx.h.
Referenced by beginJob(), and FitAndFill().
|
private |
Definition at line 98 of file BeamMonitorBx.h.
Referenced by beginJob(), and FitAndFill().