CMS 3D CMS Logo

DiJetMonitor.h
Go to the documentation of this file.
1 #ifndef DIJETMETMONITOR_H
2 #define DIJETMETMONITOR_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
16 
20 
24 
25 //DataFormats
28 
42 
44 
45 //
46 // class declaration
47 //
48 
49 class DiJetMonitor : public DQMEDAnalyzer, public TriggerDQMBase {
50 public:
53 
55  ~DiJetMonitor() throw() override{};
56  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
57 
58 protected:
59  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
60  void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override;
61  bool dijet_selection(double eta_1,
62  double phi_1,
63  double eta_2,
64  double phi_2,
65  double pt_1,
66  double pt_2,
67  int &tag_id,
68  int &probe_id,
69  int Event);
70 
71 private:
74 
79 
82 
83  ObjME jetpt1ME_;
84  ObjME jetpt2ME_;
85  ObjME jetptAvgaME_;
87  ObjME jetptAvgbME_;
88  ObjME jetptTagME_;
89  ObjME jetptPrbME_;
90  ObjME jetptAsyME_;
91  ObjME jetetaPrbME_;
92  ObjME jetetaTagME_;
93  ObjME jetphiPrbME_;
94  ObjME jetAsyEtaME_;
95  ObjME jetEtaPhiME_;
96 
97  std::unique_ptr<GenericTriggerEventFlag> num_genTriggerEventFlag_;
98  std::unique_ptr<GenericTriggerEventFlag> den_genTriggerEventFlag_;
99 
100  int nmuons_;
101  double ptcut_;
102 
103  // Define Phi Bin //
104  const double DiJet_MAX_PHI = 3.2;
105  //unsigned int DiJet_N_PHI = 64;
106  unsigned int DiJet_N_PHI = 32;
108  // Define Eta Bin //
109  const double DiJet_MAX_ETA = 5;
110  //unsigned int DiJet_N_ETA = 50;
111  unsigned int DiJet_N_ETA = 20;
113 
114  const double MAX_asy = 1;
115  const double MIN_asy = -1;
116  //unsigned int N_asy = 100;
117  unsigned int N_asy = 50;
119 };
120 
121 #endif // DIJETMETMONITOR_H
dqm::reco::DQMStore DQMStore
Definition: DiJetMonitor.h:52
ObjME jetetaPrbME_
Definition: DiJetMonitor.h:91
std::unique_ptr< GenericTriggerEventFlag > den_genTriggerEventFlag_
Definition: DiJetMonitor.h:98
ObjME jetphiPrbME_
Definition: DiJetMonitor.h:93
std::unique_ptr< GenericTriggerEventFlag > num_genTriggerEventFlag_
Definition: DiJetMonitor.h:97
unsigned int N_asy
Definition: DiJetMonitor.h:117
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
ObjME jetptPrbME_
Definition: DiJetMonitor.h:89
MEbinning dijetpt_binning_
Definition: DiJetMonitor.h:80
ObjME jetAsyEtaME_
Definition: DiJetMonitor.h:94
const double MAX_asy
Definition: DiJetMonitor.h:114
MEbinning asy_binning
Definition: DiJetMonitor.h:118
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DiJetMonitor.cc:29
MEbinning dijetptThr_binning_
Definition: DiJetMonitor.h:81
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
dqm::reco::MonitorElement MonitorElement
Definition: DiJetMonitor.h:51
ObjME jetptAvgbME_
Definition: DiJetMonitor.h:87
DiJetMonitor(const edm::ParameterSet &)
Definition: DiJetMonitor.cc:13
ObjME jetptAsyME_
Definition: DiJetMonitor.h:90
edm::EDGetTokenT< reco::GsfElectronCollection > eleToken_
Definition: DiJetMonitor.h:76
edm::EDGetTokenT< reco::PFJetCollection > dijetSrc_
Definition: DiJetMonitor.h:78
int iEvent
Definition: GenABIO.cc:224
ObjME jetetaTagME_
Definition: DiJetMonitor.h:92
const double DiJet_MAX_PHI
Definition: DiJetMonitor.h:104
MEbinning dijet_phi_binning
Definition: DiJetMonitor.h:107
bool dijet_selection(double eta_1, double phi_1, double eta_2, double phi_2, double pt_1, double pt_2, int &tag_id, int &probe_id, int Event)
std::string folderName_
Definition: DiJetMonitor.h:72
unsigned int DiJet_N_ETA
Definition: DiJetMonitor.h:111
ObjME jetptAvgaME_
Definition: DiJetMonitor.h:85
ObjME jetptTagME_
Definition: DiJetMonitor.h:88
~DiJetMonitor() override
Definition: DiJetMonitor.h:55
const double DiJet_MAX_ETA
Definition: DiJetMonitor.h:109
const double MIN_asy
Definition: DiJetMonitor.h:115
edm::EDGetTokenT< reco::MuonCollection > muoToken_
Definition: DiJetMonitor.h:77
MEbinning dijet_eta_binning
Definition: DiJetMonitor.h:112
ObjME jetpt2ME_
Definition: DiJetMonitor.h:84
std::string histoSuffix_
Definition: DiJetMonitor.h:73
edm::EDGetTokenT< reco::PFMETCollection > metToken_
Definition: DiJetMonitor.h:75
ObjME jetptAvgaThrME_
Definition: DiJetMonitor.h:86
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned int DiJet_N_PHI
Definition: DiJetMonitor.h:106
Definition: Run.h:45
ObjME jetpt1ME_
Definition: DiJetMonitor.h:83
ObjME jetEtaPhiME_
Definition: DiJetMonitor.h:95