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 
19 
20 #include <string>
21 #include <cmath>
22 #include <map>
23 
24 class DQMStore;
25 class MonitorElement;
26 
28  public:
31 
33  virtual ~BPhysicsOniaDQM();
34 
36  void beginJob();
37 
39  void analyze(const edm::Event&, const edm::EventSetup&);
40  void beginLuminosityBlock(const edm::LuminosityBlock& lumiBlock,
41  const edm::EventSetup& iSetup);
42  void endLuminosityBlock(const edm::LuminosityBlock& lumiBlock,
43  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  float computeMass(const math::XYZVector& vec1, const math::XYZVector& vec2);
50  bool isMuonInAccept(const reco::Muon& recoMu);
51  bool selGlobalMuon(const reco::Muon& recoMu);
52  bool selTrackerMuon(const reco::Muon& recoMu);
53 
54  // ----------member data ---------------------------
55 
57 
59  // Muon Label
62 
63  // Switch for verbosity
65 
66  // The histos
73 
83 
84  // MonitorElement* JPsiGlbYdLumi;
85  // MonitorElement* JPsiStaYdLumi;
86  // MonitorElement* JPsiTrkYdLumi;
87 
88  // Yield of dimuon objects
92  std::map<int, int> jpsiGlbSig;
93  std::map<int, int> jpsiStaSig;
94  std::map<int, int> jpsiTrkSig;
95 
97 };
98 #endif
99 
100 // Local Variables:
101 // show-trailing-whitespace: t
102 // truncate-lines: t
103 // 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)
std::map< int, int > jpsiGlbSig
MonitorElement * glbSigCut
MonitorElement * diMuonMass_standalone
MonitorElement * trkSigCut
bool isMuonInAccept(const reco::Muon &recoMu)
MonitorElement * standalone_background
MonitorElement * staBkgNoCut
std::map< int, int > jpsiTrkSig
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
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)