#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 |
Public Member Functions | |
BeamMonitorBx (const edm::ParameterSet &) | |
~BeamMonitorBx () | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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::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 AlcaBeamMonitor_cfi::BeamFitter, beginLumiOfBSFit_, bsSrc_, edm::EDConsumerBase::consumesCollector(), 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 152 of file BeamMonitorBx.cc.
References countEvt_, edm::EventBase::luminosityBlock(), nextlumi_, processed_, BeamFitter::readEvent(), and theBeamFitter.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 81 of file BeamMonitorBx.cc.
References BookTables(), dbe_, monitorName_, varMap, and varMap1.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
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().
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
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, i, and monitorName_.
Referenced by beginJob(), and FitAndFill().
|
private |
Definition at line 217 of file BeamMonitorBx.cc.
References pyrootRender::da, dbe_, debug_, formatFitTime(), hst, i, monitorName_, AlCaHLTBitMon_ParallelJobs::options, contentValuesCheck::ss, and startTime.
Referenced by FitAndFill().
|
protected |
Definition at line 566 of file BeamMonitorBx.cc.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
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().
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
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, customizeTrackingMonitorSeedNumber::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 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, 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 cuy.ValElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), and FitAndFill().
|
private |
Definition at line 546 of file BeamMonitorBx.cc.
References alignCSCRings::e, and mathSSE::sqrt().
Referenced by cuy.ValElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), and cuy.graphElement::__init__().
|
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().