CMS 3D CMS Logo

AlcaBeamMonitor.h
Go to the documentation of this file.
1 #ifndef DQM_BeamMonitor_AlcaBeamMonitor_h
2 #define DQM_BeamMonitor_AlcaBeamMonitor_h
3 
9 // C++
10 #include <map>
11 #include <vector>
12 #include <string>
13 // CMS
23 
24 class BeamFitter;
25 class PVFitter;
26 
28 public:
30  ~AlcaBeamMonitor() override;
31 
32 protected:
33  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
34  void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) override;
35  void dqmBeginLuminosityBlock(const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup) override;
36  void dqmEndLuminosityBlock(const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup) override;
37 
38 private:
39  //Typedefs
40  // BF,BS...
41  typedef std::map<std::string, reco::BeamSpot> BeamSpotContainer;
42  // x,y,z,sigmax(y,z)... [run,lumi] Histo name
43  typedef std::map<std::string, std::map<std::string, std::map<std::string, MonitorElement*> > > HistosContainer;
44  // x,y,z,sigmax(y,z)... [run,lumi] Histo name
45  typedef std::map<std::string, std::map<std::string, std::map<std::string, int> > > PositionContainer;
46 
47  //Parameters
54 
55  //Service variables
59 
60  // MonitorElements:
64 
65  //Containers
69  std::vector<std::string> varNamesV_; //x,y,z,sigmax(y,z)
70  std::multimap<std::string, std::string> histoByCategoryNames_; //run, lumi
71  std::vector<reco::VertexCollection> vertices_;
72 };
73 
74 #endif
AlcaBeamMonitor::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: AlcaBeamMonitor.cc:109
AlcaBeamMonitor::HistosContainer
std::map< std::string, std::map< std::string, std::map< std::string, MonitorElement * > > > HistosContainer
Definition: AlcaBeamMonitor.h:43
AlcaBeamMonitor::primaryVertexLabel_
edm::EDGetTokenT< reco::VertexCollection > primaryVertexLabel_
Definition: AlcaBeamMonitor.h:50
AlcaBeamMonitor::vertices_
std::vector< reco::VertexCollection > vertices_
Definition: AlcaBeamMonitor.h:71
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< reco::VertexCollection >
AlcaBeamMonitor::PositionContainer
std::map< std::string, std::map< std::string, std::map< std::string, int > > > PositionContainer
Definition: AlcaBeamMonitor.h:45
AlcaBeamMonitor::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(const edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup) override
Definition: AlcaBeamMonitor.cc:295
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
AlcaBeamMonitor
Definition: AlcaBeamMonitor.h:27
AlcaBeamMonitor::monitorName_
std::string monitorName_
Definition: AlcaBeamMonitor.h:49
LuminosityBlockID.h
DQMOneEDAnalyzer.h
AlcaBeamMonitor::varNamesV_
std::vector< std::string > varNamesV_
Definition: AlcaBeamMonitor.h:69
dqm::legacy::DQMStore::IBooker
dqm::implementation::IBooker IBooker
Definition: DQMStore.h:729
AlcaBeamMonitor::trackLabel_
edm::EDGetTokenT< reco::TrackCollection > trackLabel_
Definition: AlcaBeamMonitor.h:51
AlcaBeamMonitor::theBeamFitter_
BeamFitter * theBeamFitter_
Definition: AlcaBeamMonitor.h:57
BeamSpot.h
AlcaBeamMonitor::scalerLabel_
edm::EDGetTokenT< reco::BeamSpot > scalerLabel_
Definition: AlcaBeamMonitor.h:52
AlcaBeamMonitor::beamSpotsMap_
BeamSpotContainer beamSpotsMap_
Definition: AlcaBeamMonitor.h:66
AlcaBeamMonitor::dqmBeginLuminosityBlock
void dqmBeginLuminosityBlock(const edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup) override
Definition: AlcaBeamMonitor.cc:202
AlcaBeamMonitor::numberOfValuesToSave_
int numberOfValuesToSave_
Definition: AlcaBeamMonitor.h:56
AlcaBeamMonitor::thePVFitter_
PVFitter * thePVFitter_
Definition: AlcaBeamMonitor.h:58
BeamFitter
Definition: BeamFitter.h:40
AlcaBeamMonitor::AlcaBeamMonitor
AlcaBeamMonitor(const edm::ParameterSet &)
Definition: AlcaBeamMonitor.cc:31
AlcaBeamMonitor::beamSpotLabel_
edm::InputTag beamSpotLabel_
Definition: AlcaBeamMonitor.h:53
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
AlcaBeamMonitor::hD0Phi0_
MonitorElement * hD0Phi0_
Definition: AlcaBeamMonitor.h:61
es_hardcode_cfi.iLumi
iLumi
Definition: es_hardcode_cfi.py:206
AlcaBeamMonitor::BeamSpotContainer
std::map< std::string, reco::BeamSpot > BeamSpotContainer
Definition: AlcaBeamMonitor.h:41
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
DQMOneLumiEDAnalyzer
Definition: DQMOneEDAnalyzer.h:90
iEvent
int iEvent
Definition: GenABIO.cc:224
PVFitter
Definition: PVFitter.h:44
edm::EventSetup
Definition: EventSetup.h:57
AlcaBeamMonitor::histoByCategoryNames_
std::multimap< std::string, std::string > histoByCategoryNames_
Definition: AlcaBeamMonitor.h:70
VertexFwd.h
AlcaBeamMonitor::analyze
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: AlcaBeamMonitor.cc:253
AlcaBeamMonitor::positionsMap_
PositionContainer positionsMap_
Definition: AlcaBeamMonitor.h:68
Frameworkfwd.h
AlcaBeamMonitor::histosMap_
HistosContainer histosMap_
Definition: AlcaBeamMonitor.h:67
AlcaBeamMonitor::theValuesContainer_
MonitorElement * theValuesContainer_
Definition: AlcaBeamMonitor.h:63
AlcaBeamMonitor::~AlcaBeamMonitor
~AlcaBeamMonitor() override
Definition: AlcaBeamMonitor.cc:98
AlcaBeamMonitor::parameters_
edm::ParameterSet parameters_
Definition: AlcaBeamMonitor.h:48
ParameterSet.h
edm::Event
Definition: Event.h:73
AlcaBeamMonitor::hDxyBS_
MonitorElement * hDxyBS_
Definition: AlcaBeamMonitor.h:62
edm::InputTag
Definition: InputTag.h:15