CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BPhysicsOniaDQM.h
Go to the documentation of this file.
1 #ifndef BPhysicsOniaDQM_H
2 #define BPhysicsOniaDQM_H
3 
4 
20 
21 #include <string>
22 #include <cmath>
23 #include <map>
24 
25 class DQMStore;
26 class MonitorElement;
27 
29  public:
30 
33 
35  virtual ~BPhysicsOniaDQM();
36 
38  void beginJob();
39 
41  void analyze(const edm::Event&, const edm::EventSetup&);
42  void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup);
43  void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup);
44  void beginRun(const edm::Run& iRun, const edm::EventSetup& iSetup);
45  void endRun(const edm::Run& iRun, const edm::EventSetup& iSetup);
46  void endJob(void);
47 
48  private:
49 
51  bool isMuonInAccept(const reco::Muon &recoMu);
52  bool selGlobalMuon(const reco::Muon &recoMu);
53  bool selTrackerMuon(const reco::Muon &recoMu);
54 
55  // ----------member data ---------------------------
56 
58 
60  // Muon Label
63 
64  // Switch for verbosity
66 
67 
68  //The histos
75 
85 
86  // MonitorElement* JPsiGlbYdLumi;
87  // MonitorElement* JPsiStaYdLumi;
88  // MonitorElement* JPsiTrkYdLumi;
89 
90  //Yield of dimuon objects
94  std::map<int,int> jpsiGlbSig;
95  std::map<int,int> jpsiStaSig;
96  std::map<int,int> jpsiTrkSig;
97 
99 };
100 #endif
101 
102 
103 // Local Variables:
104 // show-trailing-whitespace: t
105 // truncate-lines: t
106 // End:
bool selGlobalMuon(const reco::Muon &recoMu)
edm::EDGetTokenT< reco::VertexCollection > vertex_
void beginRun(const edm::Run &iRun, const edm::EventSetup &iSetup)
MonitorElement * global_background
MonitorElement * tracker_background
MonitorElement * diMuonMass_global
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
MonitorElement * glbSigCut
MonitorElement * diMuonMass_standalone
std::map< int, int > jpsiTrkSig
MonitorElement * trkSigCut
bool isMuonInAccept(const reco::Muon &recoMu)
MonitorElement * standalone_background
MonitorElement * staBkgNoCut
std::vector< double > vec1
Definition: HCALResponse.h:15
edm::EDGetTokenT< reco::MuonCollection > theMuonCollectionLabel_
BPhysicsOniaDQM(const edm::ParameterSet &)
Constructor.
std::string metname
DQMStore * theDbe
MonitorElement * staSigNoCut
MonitorElement * staSigCut
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
std::map< int, int > jpsiGlbSig
math::XYZPoint RefVtx
MonitorElement * trkBkgNoCut
MonitorElement * glbBkgNoCut
MonitorElement * diMuonMass_tracker
bool selTrackerMuon(const reco::Muon &recoMu)
void endRun(const edm::Run &iRun, const edm::EventSetup &iSetup)
void beginJob()
Inizialize parameters for histo binning.
float computeMass(const math::XYZVector &vec1, const math::XYZVector &vec2)
virtual ~BPhysicsOniaDQM()
Destructor.
void analyze(const edm::Event &, const edm::EventSetup &)
Get the analysis.
MonitorElement * trkSigNoCut
std::vector< vec1 > vec2
Definition: HCALResponse.h:16
edm::EDGetTokenT< LumiSummary > lumiSummaryToken_
std::map< int, int > jpsiStaSig
Definition: Run.h:41
MonitorElement * glbSigNoCut
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)