CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlcaBeamMonitor.h
Go to the documentation of this file.
1 #ifndef DQM_BeamMonitor_AlcaBeamMonitor_h
2 #define DQM_BeamMonitor_AlcaBeamMonitor_h
3 
11 // C++
12 #include <map>
13 #include <vector>
14 #include <string>
15 // CMS
26 
27 class BeamFitter;
28 class PVFitter;
29 
31  public:
34 
35  protected:
36 
37  void beginJob (void);
38  void beginRun (const edm::Run& iRun, const edm::EventSetup& iSetup);
39  void analyze (const edm::Event& iEvent, const edm::EventSetup& iSetup);
40  void beginLuminosityBlock(const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup);
41  void endLuminosityBlock (const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup);
42  void endRun (const edm::Run& iRun, const edm::EventSetup& iSetup);
43  void endJob (const edm::LuminosityBlock& iLumi, const edm::EventSetup& iSetup);
44 
45  private:
46  //Typedefs
47  // BF,BS...
48  typedef std::map<std::string,reco::BeamSpot> BeamSpotContainer;
49  // x,y,z,sigmax(y,z)... [run,lumi] Histo name
50  typedef std::map<std::string,std::map<std::string,std::map<std::string,MonitorElement*> > > HistosContainer;
51  // x,y,z,sigmax(y,z)... [run,lumi] Histo name
52  typedef std::map<std::string,std::map<std::string,std::map<std::string,int> > > PositionContainer;
53 
54  //Parameters
61 
62  //Service variables
67 
68  // MonitorElements:
72 
73  //Containers
77  std::vector<std::string> varNamesV_; //x,y,z,sigmax(y,z)
78  std::multimap<std::string,std::string> histoByCategoryNames_; //run, lumi
79  std::vector<reco::VertexCollection> vertices_;
80 
81 };
82 
83 #endif
84 
edm::InputTag trackLabel_
MonitorElement * hD0Phi0_
MonitorElement * hDxyBS_
edm::InputTag primaryVertexLabel_
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
PositionContainer positionsMap_
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup)
edm::InputTag beamSpotLabel_
std::vector< std::string > varNamesV_
int iEvent
Definition: GenABIO.cc:243
AlcaBeamMonitor(const edm::ParameterSet &)
void beginRun(const edm::Run &iRun, const edm::EventSetup &iSetup)
std::map< std::string, std::map< std::string, std::map< std::string, int > > > PositionContainer
BeamSpotContainer beamSpotsMap_
BeamFitter * theBeamFitter_
virtual void endJob()
Definition: EDAnalyzer.h:60
std::map< std::string, reco::BeamSpot > BeamSpotContainer
PVFitter * thePVFitter_
std::multimap< std::string, std::string > histoByCategoryNames_
std::map< std::string, std::map< std::string, std::map< std::string, MonitorElement * > > > HistosContainer
void beginLuminosityBlock(const edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup)
HistosContainer histosMap_
void endLuminosityBlock(const edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup)
std::string monitorName_
edm::ParameterSet parameters_
MonitorElement * theValuesContainer_
edm::InputTag scalerLabel_
Definition: Run.h:36
std::vector< reco::VertexCollection > vertices_