CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
SUSY_HLT_DiJet_MET Class Reference

#include <SUSY_HLT_DiJet_MET.h>

Inheritance diagram for SUSY_HLT_DiJet_MET:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 SUSY_HLT_DiJet_MET (const edm::ParameterSet &ps)
 
 ~SUSY_HLT_DiJet_MET () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Protected Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &eSetup) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Member Functions

void bookHistos (DQMStore::IBooker &)
 

Private Attributes

double etaThrJet_
 
double etaThrJetTrig_
 
HLTConfigProvider fHltConfig
 
MonitorElementh_caloMetvsPFMet
 
MonitorElementh_pfJet1Jet2DPhi
 
MonitorElementh_pfJet2PtTurnOn_den
 
MonitorElementh_pfJet2PtTurnOn_num
 
MonitorElementh_pfJetEta
 
MonitorElementh_pfJetPhi
 
MonitorElementh_pfJetPt
 
MonitorElementh_pfMetPhi
 
MonitorElementh_pfMetTurnOn_den
 
MonitorElementh_pfMetTurnOn_num
 
MonitorElementh_triggerJetEta
 
MonitorElementh_triggerJetPhi
 
MonitorElementh_triggerJetPt
 
MonitorElementh_triggerMet
 
MonitorElementh_triggerMetPhi
 
std::string HLTProcess_
 
double metCut_
 
double ptThrJet_
 
double ptThrJetTrig_
 
edm::EDGetTokenT< reco::CaloJetCollectiontheCaloJetCollection_
 
edm::EDGetTokenT< reco::CaloMETCollectiontheCaloMETCollection_
 
edm::EDGetTokenT< reco::PFJetCollectionthePfJetCollection_
 
edm::EDGetTokenT< reco::PFMETCollectionthePfMETCollection_
 
edm::EDGetTokenT< trigger::TriggerEventtheTrigSummary_
 
edm::InputTag triggerFilter_
 
edm::InputTag triggerJetFilter_
 
std::string triggerPath_
 
std::string triggerPathAuxiliaryForHadronic_
 
edm::EDGetTokenT< edm::TriggerResultstriggerResults_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 33 of file SUSY_HLT_DiJet_MET.h.

Constructor & Destructor Documentation

◆ SUSY_HLT_DiJet_MET()

SUSY_HLT_DiJet_MET::SUSY_HLT_DiJet_MET ( const edm::ParameterSet ps)

Definition at line 9 of file SUSY_HLT_DiJet_MET.cc.

References etaThrJet_, etaThrJetTrig_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLTProcess_, metCut_, ptThrJet_, ptThrJetTrig_, AlCaHLTBitMon_QueryRunRegistry::string, theCaloJetCollection_, theCaloMETCollection_, thePfJetCollection_, thePfMETCollection_, theTrigSummary_, triggerFilter_, triggerJetFilter_, triggerPath_, triggerPathAuxiliaryForHadronic_, and triggerResults_.

9  {
10  edm::LogInfo("SUSY_HLT_DiJet_MET") << "Constructor SUSY_HLT_DiJet_MET::SUSY_HLT_DiJet_MET " << std::endl;
11  // Get parameters from configuration file
12  theTrigSummary_ = consumes<trigger::TriggerEvent>(ps.getParameter<edm::InputTag>("trigSummary"));
13  thePfMETCollection_ = consumes<reco::PFMETCollection>(ps.getParameter<edm::InputTag>("pfMETCollection"));
14  theCaloMETCollection_ = consumes<reco::CaloMETCollection>(ps.getParameter<edm::InputTag>("caloMETCollection"));
15  thePfJetCollection_ = consumes<reco::PFJetCollection>(ps.getParameter<edm::InputTag>("pfJetCollection"));
16  theCaloJetCollection_ = consumes<reco::CaloJetCollection>(ps.getParameter<edm::InputTag>("caloJetCollection"));
17  triggerResults_ = consumes<edm::TriggerResults>(ps.getParameter<edm::InputTag>("TriggerResults"));
18  HLTProcess_ = ps.getParameter<std::string>("HLTProcess");
19  triggerPath_ = ps.getParameter<std::string>("TriggerPath");
20  triggerPathAuxiliaryForHadronic_ = ps.getParameter<std::string>("TriggerPathAuxiliaryForHadronic");
21  triggerFilter_ = ps.getParameter<edm::InputTag>("TriggerFilter");
22  triggerJetFilter_ = ps.getParameter<edm::InputTag>("TriggerJetFilter");
23  ptThrJetTrig_ = ps.getUntrackedParameter<double>("PtThrJetTrig");
24  etaThrJetTrig_ = ps.getUntrackedParameter<double>("EtaThrJetTrig");
25  ptThrJet_ = ps.getUntrackedParameter<double>("PtThrJet");
26  etaThrJet_ = ps.getUntrackedParameter<double>("EtaThrJet");
27  metCut_ = ps.getUntrackedParameter<double>("OfflineMetCut");
28 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag triggerFilter_
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
Log< level::Info, false > LogInfo
edm::InputTag triggerJetFilter_
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
edm::EDGetTokenT< reco::CaloMETCollection > theCaloMETCollection_
std::string triggerPathAuxiliaryForHadronic_
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_

◆ ~SUSY_HLT_DiJet_MET()

SUSY_HLT_DiJet_MET::~SUSY_HLT_DiJet_MET ( )
override

Definition at line 30 of file SUSY_HLT_DiJet_MET.cc.

30  {
31  edm::LogInfo("SUSY_HLT_DiJet_MET") << "Destructor SUSY_HLT_DiJet_MET::~SUSY_HLT_DiJet_MET " << std::endl;
32 }
Log< level::Info, false > LogInfo

Member Function Documentation

◆ analyze()

void SUSY_HLT_DiJet_MET::analyze ( edm::Event const &  e,
edm::EventSetup const &  eSetup 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 65 of file SUSY_HLT_DiJet_MET.cc.

References pdwgLeptonRecoSkim_cfi::caloJetCollection, ewkDQM_cfi::caloMETCollection, reco::deltaPhi(), MillePedeFileConverter_cfg::e, trigger::TriggerObject::eta(), etaThrJet_, etaThrJetTrig_, dqm::impl::MonitorElement::Fill(), h_caloMetvsPFMet, h_pfJet1Jet2DPhi, h_pfJet2PtTurnOn_den, h_pfJet2PtTurnOn_num, h_pfJetEta, h_pfJetPhi, h_pfJetPt, h_pfMetPhi, h_pfMetTurnOn_den, h_pfMetTurnOn_num, h_triggerJetEta, h_triggerJetPhi, h_triggerJetPt, h_triggerMet, h_triggerMetPhi, HLTBitAnalyser_cfi::hltresults, dqmiolumiharvest::j, relativeConstraints::keys, metCut_, ExoticaDQM_cfi::pfJetCollection, B2GDQM_cfi::pfMETCollection, trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), ptThrJet_, ptThrJetTrig_, mathSSE::sqrt(), theCaloJetCollection_, theCaloMETCollection_, thePfJetCollection_, thePfMETCollection_, theTrigSummary_, triggerFilter_, triggerJetFilter_, triggerMatchMonitor_cfi::triggerObjects, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerResults_, HLTMuonOfflineAnalyzer_cfi::triggerSummary, and trigNames.

65  {
66  edm::LogInfo("SUSY_HLT_DiJet_MET") << "SUSY_HLT_DiJet_MET::analyze" << std::endl;
67 
68  //-------------------------------
69  //--- MET
70  //-------------------------------
73  if (!pfMETCollection.isValid()) {
74  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: PFMET"
75  << "\n";
76  return;
77  }
80  if (!caloMETCollection.isValid()) {
81  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: CaloMET"
82  << "\n";
83  return;
84  }
85  //-------------------------------
86  //--- Jets
87  //-------------------------------
90  if (!pfJetCollection.isValid()) {
91  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: PFJets"
92  << "\n";
93  return;
94  }
97  if (!caloJetCollection.isValid()) {
98  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: CaloJets"
99  << "\n";
100  return;
101  }
102 
103  //-------------------------------
104  //--- Trigger
105  //-------------------------------
107  e.getByToken(triggerResults_, hltresults);
108  if (!hltresults.isValid()) {
109  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: TriggerResults"
110  << "\n";
111  return;
112  }
114  e.getByToken(theTrigSummary_, triggerSummary);
115  if (!triggerSummary.isValid()) {
116  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: TriggerSummary"
117  << "\n";
118  return;
119  }
120 
121  // get online objects
122 
123  size_t filterIndex = triggerSummary->filterIndex(triggerFilter_);
124  size_t jetFilterIndex = triggerSummary->filterIndex(triggerJetFilter_);
126 
127  if (!(filterIndex >= triggerSummary->sizeFilters())) {
128  const trigger::Keys &keys = triggerSummary->filterKeys(filterIndex);
129  for (size_t j = 0; j < keys.size(); ++j) {
131  h_triggerMet->Fill(foundObject.pt());
132  h_triggerMetPhi->Fill(foundObject.phi());
133  }
134  }
135 
136  std::vector<float> ptJet, etaJet, phiJet;
137  if (!(jetFilterIndex >= triggerSummary->sizeFilters())) {
138  const trigger::Keys &keys_jetfilter = triggerSummary->filterKeys(jetFilterIndex);
139  for (size_t j = 0; j < keys_jetfilter.size(); ++j) {
140  trigger::TriggerObject foundObject = triggerObjects[keys_jetfilter[j]];
141  h_triggerJetPt->Fill(foundObject.pt());
142  h_triggerJetEta->Fill(foundObject.eta());
143  h_triggerJetPhi->Fill(foundObject.phi());
144  if (foundObject.pt() > ptThrJetTrig_ && fabs(foundObject.eta()) < etaThrJetTrig_) {
145  ptJet.push_back(foundObject.pt());
146  etaJet.push_back(foundObject.eta());
147  phiJet.push_back(foundObject.phi());
148  }
149  }
150  }
151 
152  bool hasFired = false;
153  bool hasFiredAuxiliaryForHadronicLeg = false;
154  const edm::TriggerNames &trigNames = e.triggerNames(*hltresults);
155  unsigned int numTriggers = trigNames.size();
156  for (unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
157  if (trigNames.triggerName(hltIndex).find(triggerPath_) != std::string::npos && hltresults->wasrun(hltIndex) &&
158  hltresults->accept(hltIndex))
159  hasFired = true;
160  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForHadronic_) != std::string::npos &&
161  hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex))
162  hasFiredAuxiliaryForHadronicLeg = true;
163  }
164 
165  if (hasFiredAuxiliaryForHadronicLeg) {
166  int offlineJetCounter = 0;
167  int offlineCentralJets = 0;
168  int nMatch = 0, jet1Index = -1, jet2Index = -1;
169 
170  for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end();
171  ++i_pfjet) {
172  if (i_pfjet->pt() > ptThrJet_ && fabs(i_pfjet->eta()) < etaThrJet_) {
173  offlineCentralJets++;
174  if (offlineCentralJets == 2 && pfMETCollection->begin()->et() > metCut_)
175  h_pfJet2PtTurnOn_den->Fill(i_pfjet->pt());
176 
177  for (unsigned int itrigjet = 0; itrigjet < ptJet.size(); ++itrigjet) {
178  if (itrigjet < 2 &&
179  (sqrt((i_pfjet->phi() - phiJet.at(itrigjet)) * (i_pfjet->phi() - phiJet.at(itrigjet)) +
180  (i_pfjet->eta() - etaJet.at(itrigjet)) * (i_pfjet->eta() - etaJet.at(itrigjet))) < 0.4)) {
181  nMatch++;
182  if (nMatch == 1)
183  jet1Index = offlineJetCounter;
184  if (nMatch == 2)
185  jet2Index = offlineJetCounter;
186 
187  if (hasFired) {
188  h_pfJetPt->Fill(i_pfjet->pt());
189  h_pfJetEta->Fill(i_pfjet->eta());
190  h_pfJetPhi->Fill(i_pfjet->phi());
191  if (offlineCentralJets == 2 && pfMETCollection->begin()->et() > metCut_)
192  h_pfJet2PtTurnOn_num->Fill(i_pfjet->pt());
193  }
194 
195  break;
196  }
197  }
198  }
199 
200  offlineJetCounter++;
201  }
202 
203  if (hasFired) {
204  h_pfMetTurnOn_num->Fill(pfMETCollection->begin()->et());
205  h_pfMetPhi->Fill(pfMETCollection->begin()->phi());
206  h_caloMetvsPFMet->Fill(pfMETCollection->begin()->et(), caloMETCollection->begin()->et());
207 
208  if (jet1Index > -1 && jet2Index > -1) {
210  fabs(reco::deltaPhi(pfJetCollection->at(jet1Index).phi(), pfJetCollection->at(jet2Index).phi())));
211  }
212  }
213 
214  h_pfMetTurnOn_den->Fill(pfMETCollection->begin()->et());
215  }
216 
217  ptJet.clear();
218  etaJet.clear();
219  phiJet.clear();
220 }
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
MonitorElement * h_triggerJetEta
edm::InputTag triggerFilter_
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
MonitorElement * h_pfMetTurnOn_num
MonitorElement * h_pfMetPhi
MonitorElement * h_pfJetPt
MonitorElement * h_caloMetvsPFMet
MonitorElement * h_pfJetEta
Log< level::Error, false > LogError
MonitorElement * h_triggerMetPhi
void Fill(long long x)
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:21
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
MonitorElement * h_triggerMet
T sqrt(T t)
Definition: SSEVec.h:19
MonitorElement * h_pfJet2PtTurnOn_den
MonitorElement * h_pfJet1Jet2DPhi
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:75
Log< level::Info, false > LogInfo
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:57
MonitorElement * h_pfJetPhi
edm::InputTag triggerJetFilter_
std::vector< size_type > Keys
MonitorElement * h_pfJet2PtTurnOn_num
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
edm::EDGetTokenT< reco::CaloMETCollection > theCaloMETCollection_
std::string triggerPathAuxiliaryForHadronic_
MonitorElement * h_pfMetTurnOn_den
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
MonitorElement * h_triggerJetPt
MonitorElement * h_triggerJetPhi

◆ bookHistograms()

void SUSY_HLT_DiJet_MET::bookHistograms ( DQMStore::IBooker ibooker_,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 59 of file SUSY_HLT_DiJet_MET.cc.

References bookHistos().

59  {
60  edm::LogInfo("SUSY_HLT_DiJet_MET") << "SUSY_HLT_DiJet_MET::bookHistograms" << std::endl;
61  // book at beginRun
62  bookHistos(ibooker_);
63 }
void bookHistos(DQMStore::IBooker &)
Log< level::Info, false > LogInfo

◆ bookHistos()

void SUSY_HLT_DiJet_MET::bookHistos ( DQMStore::IBooker ibooker_)
private

Definition at line 222 of file SUSY_HLT_DiJet_MET.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::NavigatorBase::cd(), h_caloMetvsPFMet, h_pfJet1Jet2DPhi, h_pfJet2PtTurnOn_den, h_pfJet2PtTurnOn_num, h_pfJetEta, h_pfJetPhi, h_pfJetPt, h_pfMetPhi, h_pfMetTurnOn_den, h_pfMetTurnOn_num, h_triggerJetEta, h_triggerJetPhi, h_triggerJetPt, h_triggerMet, h_triggerMetPhi, dqm::implementation::NavigatorBase::setCurrentFolder(), and triggerPath_.

Referenced by bookHistograms().

222  {
223  ibooker_.cd();
224  ibooker_.setCurrentFolder("HLT/SUSYBSM/" + triggerPath_);
225 
226  // offline quantities
227  h_pfMetPhi = ibooker_.book1D("pfMetPhi", "PF MET Phi", 20, -3.5, 3.5);
228  h_pfJetPt = ibooker_.book1D("pfJetPt", "PF Jet p_{T} (trigger-matched jets, |#eta| < 2.4); GeV", 20, 0.0, 500.0);
229  h_pfJetEta = ibooker_.book1D("pfJetEta", "PF Jet #eta (trigger-matched jets, |#eta| < 2.4)", 20, -3.0, 3.0);
230  h_pfJetPhi = ibooker_.book1D("pfJetPhi", "PF Jet #phi (trigger-matched jets, |#eta| < 2.4)", 20, -3.5, 3.5);
232  ibooker_.book1D("pfJet1Jet2DPhi", "|#Delta#phi| between two leading trigger-matched jets", 20, 0.0, 3.5);
233  h_caloMetvsPFMet = ibooker_.book2D("caloMetvsPFMet", "Calo MET vs PF MET; GeV; GeV", 25, 0.0, 500.0, 25, 0.0, 500.0);
234 
235  // online quantities
236  h_triggerMet = ibooker_.book1D("triggerMet", "Trigger MET; GeV", 20, 0.0, 500.0);
237  h_triggerMetPhi = ibooker_.book1D("triggerMetPhi", "Trigger MET Phi", 20, -3.5, 3.5);
238  h_triggerJetPt = ibooker_.book1D("triggerJetPt", "Trigger Jet p_{T}; GeV", 20, 0.0, 500.0);
239  h_triggerJetEta = ibooker_.book1D("triggerJetEta", "Trigger Jet Eta", 20, -3.0, 3.0);
240  h_triggerJetPhi = ibooker_.book1D("triggerJetPhi", "Trigger Jet Phi", 20, -3.5, 3.5);
241 
242  // num and den hists to be divided in harvesting step to make turn on curves
243  h_pfMetTurnOn_num = ibooker_.book1D("pfMetTurnOn_num", "PF MET", 20, 0.0, 500.0);
244  h_pfMetTurnOn_den = ibooker_.book1D("pfMetTurnOn_den", "PF MET Turn On Denominator", 20, 0.0, 500.0);
246  ibooker_.book1D("pfJet2PtTurnOn_num", "PF Jet2 Pt (NCentralPFJets >= 2, PFMET > 250)", 20, 0.0, 500.0);
247  h_pfJet2PtTurnOn_den = ibooker_.book1D("pfJet2PtTurnOn_den", "PF Jet2 Pt Turn On Denominator", 20, 0.0, 500.0);
248 
249  ibooker_.cd();
250 }
MonitorElement * h_triggerJetEta
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
MonitorElement * h_pfMetTurnOn_num
MonitorElement * h_pfMetPhi
MonitorElement * h_pfJetPt
MonitorElement * h_caloMetvsPFMet
MonitorElement * h_pfJetEta
MonitorElement * h_triggerMetPhi
MonitorElement * h_triggerMet
MonitorElement * h_pfJet2PtTurnOn_den
MonitorElement * h_pfJet1Jet2DPhi
MonitorElement * h_pfJetPhi
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212
MonitorElement * h_pfJet2PtTurnOn_num
MonitorElement * h_pfMetTurnOn_den
MonitorElement * h_triggerJetPt
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
MonitorElement * h_triggerJetPhi

◆ dqmBeginRun()

void SUSY_HLT_DiJet_MET::dqmBeginRun ( edm::Run const &  run,
edm::EventSetup const &  e 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 34 of file SUSY_HLT_DiJet_MET.cc.

References MillePedeFileConverter_cfg::e, fHltConfig, spr::find(), HLTProcess_, HLTConfigProvider::init(), dqmiolumiharvest::j, LogDebug, writedatasetfile::run, HLTConfigProvider::triggerNames(), and triggerPath_.

34  {
35  bool changed;
36 
37  if (!fHltConfig.init(run, e, HLTProcess_, changed)) {
38  edm::LogError("SUSY_HLT_DiJet_MET") << "Initialization of HLTConfigProvider failed!!";
39  return;
40  }
41 
42  bool pathFound = false;
43  const std::vector<std::string> allTrigNames = fHltConfig.triggerNames();
44  for (size_t j = 0; j < allTrigNames.size(); ++j) {
45  if (allTrigNames[j].find(triggerPath_) != std::string::npos) {
46  pathFound = true;
47  }
48  }
49 
50  if (!pathFound) {
51  LogDebug("SUSY_HLT_DiJet_MET") << "Path not found"
52  << "\n";
53  return;
54  }
55 
56  edm::LogInfo("SUSY_HLT_DiJet_MET") << "SUSY_HLT_DiJet_MET::beginRun" << std::endl;
57 }
Log< level::Error, false > LogError
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
Log< level::Info, false > LogInfo
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
HLTConfigProvider fHltConfig
const std::vector< std::string > & triggerNames() const
names of trigger paths
#define LogDebug(id)

Member Data Documentation

◆ etaThrJet_

double SUSY_HLT_DiJet_MET::etaThrJet_
private

Definition at line 65 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ etaThrJetTrig_

double SUSY_HLT_DiJet_MET::etaThrJetTrig_
private

Definition at line 63 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ fHltConfig

HLTConfigProvider SUSY_HLT_DiJet_MET::fHltConfig
private

Definition at line 55 of file SUSY_HLT_DiJet_MET.h.

Referenced by dqmBeginRun().

◆ h_caloMetvsPFMet

MonitorElement* SUSY_HLT_DiJet_MET::h_caloMetvsPFMet
private

Definition at line 74 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfJet1Jet2DPhi

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJet1Jet2DPhi
private

Definition at line 73 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfJet2PtTurnOn_den

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJet2PtTurnOn_den
private

Definition at line 83 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfJet2PtTurnOn_num

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJet2PtTurnOn_num
private

Definition at line 82 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfJetEta

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJetEta
private

Definition at line 71 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfJetPhi

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJetPhi
private

Definition at line 72 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfJetPt

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJetPt
private

Definition at line 70 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfMetPhi

MonitorElement* SUSY_HLT_DiJet_MET::h_pfMetPhi
private

Definition at line 69 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfMetTurnOn_den

MonitorElement* SUSY_HLT_DiJet_MET::h_pfMetTurnOn_den
private

Definition at line 81 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_pfMetTurnOn_num

MonitorElement* SUSY_HLT_DiJet_MET::h_pfMetTurnOn_num
private

Definition at line 80 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerJetEta

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerJetEta
private

Definition at line 78 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerJetPhi

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerJetPhi
private

Definition at line 79 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerJetPt

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerJetPt
private

Definition at line 77 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMet

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerMet
private

Definition at line 75 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMetPhi

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerMetPhi
private

Definition at line 76 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

◆ HLTProcess_

std::string SUSY_HLT_DiJet_MET::HLTProcess_
private

Definition at line 57 of file SUSY_HLT_DiJet_MET.h.

Referenced by dqmBeginRun(), and SUSY_HLT_DiJet_MET().

◆ metCut_

double SUSY_HLT_DiJet_MET::metCut_
private

Definition at line 66 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ ptThrJet_

double SUSY_HLT_DiJet_MET::ptThrJet_
private

Definition at line 64 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ ptThrJetTrig_

double SUSY_HLT_DiJet_MET::ptThrJetTrig_
private

Definition at line 62 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ theCaloJetCollection_

edm::EDGetTokenT<reco::CaloJetCollection> SUSY_HLT_DiJet_MET::theCaloJetCollection_
private

Definition at line 51 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ theCaloMETCollection_

edm::EDGetTokenT<reco::CaloMETCollection> SUSY_HLT_DiJet_MET::theCaloMETCollection_
private

Definition at line 49 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ thePfJetCollection_

edm::EDGetTokenT<reco::PFJetCollection> SUSY_HLT_DiJet_MET::thePfJetCollection_
private

Definition at line 50 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ thePfMETCollection_

edm::EDGetTokenT<reco::PFMETCollection> SUSY_HLT_DiJet_MET::thePfMETCollection_
private

Definition at line 48 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ theTrigSummary_

edm::EDGetTokenT<trigger::TriggerEvent> SUSY_HLT_DiJet_MET::theTrigSummary_
private

Definition at line 53 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ triggerFilter_

edm::InputTag SUSY_HLT_DiJet_MET::triggerFilter_
private

Definition at line 60 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ triggerJetFilter_

edm::InputTag SUSY_HLT_DiJet_MET::triggerJetFilter_
private

Definition at line 61 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ triggerPath_

std::string SUSY_HLT_DiJet_MET::triggerPath_
private

Definition at line 58 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), bookHistos(), dqmBeginRun(), and SUSY_HLT_DiJet_MET().

◆ triggerPathAuxiliaryForHadronic_

std::string SUSY_HLT_DiJet_MET::triggerPathAuxiliaryForHadronic_
private

Definition at line 59 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

◆ triggerResults_

edm::EDGetTokenT<edm::TriggerResults> SUSY_HLT_DiJet_MET::triggerResults_
private

Definition at line 52 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().