CMS 3D CMS Logo

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

#include <SUSY_HLT_Muon_Hadronic.h>

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

Public Member Functions

 SUSY_HLT_Muon_Hadronic (const edm::ParameterSet &ps)
 
 ~SUSY_HLT_Muon_Hadronic () 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 etaMuonOffline_
 
double etaThrJet_
 
HLTConfigProvider fHltConfig
 
MonitorElementh_MuTurnOn_den
 
MonitorElementh_MuTurnOn_num
 
MonitorElementh_pfHTTurnOn_den
 
MonitorElementh_pfHTTurnOn_num
 
MonitorElementh_pfMetTurnOn_den
 
MonitorElementh_pfMetTurnOn_num
 
MonitorElementh_triggerMuEta
 
MonitorElementh_triggerMuPhi
 
MonitorElementh_triggerMuPt
 
std::string HLTProcess_
 
double HTOffline_
 
double METOffline_
 
double ptMuonOffline_
 
double ptThrJet_
 
edm::EDGetTokenT< reco::CaloJetCollectiontheCaloJetCollection_
 
edm::EDGetTokenT< reco::MuonCollectiontheMuonCollection_
 
edm::EDGetTokenT< reco::PFJetCollectionthePfJetCollection_
 
edm::EDGetTokenT< reco::PFMETCollectionthePfMETCollection_
 
edm::EDGetTokenT< trigger::TriggerEventtheTrigSummary_
 
edm::InputTag triggerFilter_
 
std::string triggerPath_
 
std::string triggerPathAuxiliaryForHadronic_
 
std::string triggerPathAuxiliaryForMuon_
 
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_Muon_Hadronic.h.

Constructor & Destructor Documentation

◆ SUSY_HLT_Muon_Hadronic()

SUSY_HLT_Muon_Hadronic::SUSY_HLT_Muon_Hadronic ( const edm::ParameterSet ps)

Definition at line 10 of file SUSY_HLT_Muon_Hadronic.cc.

References etaMuonOffline_, etaThrJet_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLTProcess_, HTOffline_, METOffline_, ptMuonOffline_, ptThrJet_, AlCaHLTBitMon_QueryRunRegistry::string, theCaloJetCollection_, theMuonCollection_, thePfJetCollection_, thePfMETCollection_, theTrigSummary_, triggerFilter_, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerPathAuxiliaryForMuon_, and triggerResults_.

10  {
11  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "Constructor SUSY_HLT_Muon_Hadronic::SUSY_HLT_Muon_Hadronic " << std::endl;
12  // Get parameters from configuration file
13  theTrigSummary_ = consumes<trigger::TriggerEvent>(ps.getParameter<edm::InputTag>("trigSummary"));
14  theMuonCollection_ = consumes<reco::MuonCollection>(ps.getParameter<edm::InputTag>("MuonCollection"));
15  thePfMETCollection_ = consumes<reco::PFMETCollection>(ps.getParameter<edm::InputTag>("pfMETCollection"));
16  thePfJetCollection_ = consumes<reco::PFJetCollection>(ps.getParameter<edm::InputTag>("pfJetCollection"));
17  theCaloJetCollection_ = consumes<reco::CaloJetCollection>(ps.getParameter<edm::InputTag>("caloJetCollection"));
18  triggerResults_ = consumes<edm::TriggerResults>(ps.getParameter<edm::InputTag>("TriggerResults"));
19  HLTProcess_ = ps.getParameter<std::string>("HLTProcess");
20  triggerPath_ = ps.getParameter<std::string>("TriggerPath");
21  triggerPathAuxiliaryForMuon_ = ps.getParameter<std::string>("TriggerPathAuxiliaryForMuon");
22  triggerPathAuxiliaryForHadronic_ = ps.getParameter<std::string>("TriggerPathAuxiliaryForHadronic");
23  triggerFilter_ = ps.getParameter<edm::InputTag>("TriggerFilter");
24  ptMuonOffline_ = ps.getUntrackedParameter<double>("ptMuonOffline");
25  etaMuonOffline_ = ps.getUntrackedParameter<double>("etaMuonOffline");
26  HTOffline_ = ps.getUntrackedParameter<double>("HTOffline");
27  METOffline_ = ps.getUntrackedParameter<double>("METOffline");
28  ptThrJet_ = ps.getUntrackedParameter<double>("PtThrJet");
29  etaThrJet_ = ps.getUntrackedParameter<double>("EtaThrJet");
30 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
std::string triggerPathAuxiliaryForHadronic_
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
Log< level::Info, false > LogInfo
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_

◆ ~SUSY_HLT_Muon_Hadronic()

SUSY_HLT_Muon_Hadronic::~SUSY_HLT_Muon_Hadronic ( )
override

Definition at line 32 of file SUSY_HLT_Muon_Hadronic.cc.

32  {
33  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "Destructor SUSY_HLT_Muon_Hadronic::~SUSY_HLT_Muon_Hadronic " << std::endl;
34 }
Log< level::Info, false > LogInfo

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 72 of file SUSY_HLT_Muon_Hadronic.cc.

References pdwgLeptonRecoSkim_cfi::caloJetCollection, comparePt(), MillePedeFileConverter_cfg::e, trigger::TriggerObject::eta(), Lepton::eta, etaMuonOffline_, etaThrJet_, dqm::impl::MonitorElement::Fill(), h_MuTurnOn_den, h_MuTurnOn_num, h_pfHTTurnOn_den, h_pfHTTurnOn_num, h_pfMetTurnOn_den, h_pfMetTurnOn_num, h_triggerMuEta, h_triggerMuPhi, h_triggerMuPt, HLTBitAnalyser_cfi::hltresults, HTOffline_, trigger::TriggerObject::id(), dqmiolumiharvest::j, relativeConstraints::keys, METOffline_, HLT_2022v15_cff::muon, ExoticaDQM_cfi::pfJetCollection, B2GDQM_cfi::pfMETCollection, trigger::TriggerObject::phi(), Lepton::phi, trigger::TriggerObject::pt(), Lepton::pt, ptMuonOffline_, ptThrJet_, jetUpdater_cfi::sort, mathSSE::sqrt(), theCaloJetCollection_, theMuonCollection_, thePfJetCollection_, thePfMETCollection_, theTrigSummary_, triggerFilter_, triggerMatchMonitor_cfi::triggerObjects, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerPathAuxiliaryForMuon_, triggerResults_, HLTMuonOfflineAnalyzer_cfi::triggerSummary, and trigNames.

72  {
73  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::analyze" << std::endl;
74 
75  //-------------------------------
76  //--- MET
77  //-------------------------------
80  if (!pfMETCollection.isValid()) {
81  edm::LogError("SUSY_HLT_Muon_Hadronic") << "invalid collection: PFMET"
82  << "\n";
83  return;
84  }
85  //-------------------------------
86  //--- Jets
87  //-------------------------------
90  if (!pfJetCollection.isValid()) {
91  edm::LogError("SUSY_HLT_Muon_Hadronic") << "invalid collection: PFJets"
92  << "\n";
93  return;
94  }
97  if (!caloJetCollection.isValid()) {
98  edm::LogError("SUSY_HLT_Muon_Hadronic") << "invalid collection: CaloJets"
99  << "\n";
100  return;
101  }
102 
103  //-------------------------------
104  //--- Muon
105  //-------------------------------
107  e.getByToken(theMuonCollection_, MuonCollection);
108  if (!MuonCollection.isValid()) {
109  edm::LogError("SUSY_HLT_Mu_Hadronic") << "invalid collection: Muons "
110  << "\n";
111  return;
112  }
113 
114  //-------------------------------
115  //--- Trigger
116  //-------------------------------
118  e.getByToken(triggerResults_, hltresults);
119  if (!hltresults.isValid()) {
120  edm::LogError("SUSY_HLT_Muon_Hadronic") << "invalid collection: TriggerResults"
121  << "\n";
122  return;
123  }
125  e.getByToken(theTrigSummary_, triggerSummary);
126  if (!triggerSummary.isValid()) {
127  edm::LogError("SUSY_HLT_Muon_Hadronic") << "invalid collection: TriggerSummary"
128  << "\n";
129  return;
130  }
131 
132  // get online objects
133  std::vector<Lepton> onlineMuons;
134  size_t filterIndex = triggerSummary->filterIndex(triggerFilter_);
136  if (!(filterIndex >= triggerSummary->sizeFilters())) {
137  const trigger::Keys &keys = triggerSummary->filterKeys(filterIndex);
138  for (size_t j = 0; j < keys.size(); ++j) {
140  if (fabs(foundObject.id()) == 13) { // It's a muon
141  h_triggerMuPt->Fill(foundObject.pt());
142  h_triggerMuEta->Fill(foundObject.eta());
143  h_triggerMuPhi->Fill(foundObject.phi());
144  Lepton theMuon;
145  theMuon.pt = foundObject.pt();
146  theMuon.phi = foundObject.phi();
147  theMuon.eta = foundObject.eta();
148  onlineMuons.push_back(theMuon);
149  }
150  }
151  }
152 
153  bool hasFired = false;
154  bool hasFiredAuxiliaryForMuonLeg = false;
155  bool hasFiredAuxiliaryForHadronicLeg = false;
156  const edm::TriggerNames &trigNames = e.triggerNames(*hltresults);
157  unsigned int numTriggers = trigNames.size();
158  for (unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
159  if (trigNames.triggerName(hltIndex).find(triggerPath_) != std::string::npos && hltresults->wasrun(hltIndex) &&
160  hltresults->accept(hltIndex))
161  hasFired = true;
162  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForMuon_) != std::string::npos &&
163  hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex))
164  hasFiredAuxiliaryForMuonLeg = true;
165  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForHadronic_) != std::string::npos &&
166  hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex))
167  hasFiredAuxiliaryForHadronicLeg = true;
168  }
169 
170  if (hasFiredAuxiliaryForMuonLeg || hasFiredAuxiliaryForHadronicLeg || !e.isRealData()) {
171  std::vector<Lepton> offlineMuons;
172  for (reco::MuonCollection::const_iterator muon = MuonCollection->begin(); muon != MuonCollection->end(); ++muon) {
173  if (fabs(muon->eta()) > etaMuonOffline_)
174  continue;
175  Lepton theMuon;
176  theMuon.pt = muon->pt();
177  theMuon.phi = muon->phi();
178  theMuon.eta = muon->eta();
179  offlineMuons.push_back(theMuon);
180  }
181 
182  std::sort(onlineMuons.begin(), onlineMuons.end(), comparePt);
183  std::sort(offlineMuons.begin(), offlineMuons.end(), comparePt);
184  /*
185  std::cout << "OFFLINE MUON" << std::endl;
186  for(std::vector<Lepton>::iterator offline_muon = offlineMuons.begin();
187  offline_muon != offlineMuons.end(); offline_muon++) { std::cout <<
188  offline_muon->pt << std::endl;
189  }
190  std::cout << "ONLINE MUON" << std::endl;
191  for(std::vector<Lepton>::iterator online_muon = onlineMuons.begin();
192  online_muon != onlineMuons.end(); online_muon++) { std::cout <<
193  online_muon->pt << std::endl;
194  }
195  */
196  // Matching the muon
197  int indexOfMatchedMuon = -1;
198  int offlineCounter = 0;
199  for (std::vector<Lepton>::iterator offline_muon = offlineMuons.begin();
200  (offline_muon != offlineMuons.end() && indexOfMatchedMuon == -1);
201  offline_muon++) {
202  for (std::vector<Lepton>::iterator online_muon = onlineMuons.begin(); online_muon != onlineMuons.end();
203  online_muon++) {
204  if (sqrt((offline_muon->phi - online_muon->phi) * (offline_muon->phi - online_muon->phi) +
205  (offline_muon->eta - online_muon->eta) * (offline_muon->eta - online_muon->eta)) < 0.5) {
206  indexOfMatchedMuon = offlineCounter;
207  // std::cout << "Offline " << offline_muon->pt << " " << "Online " <<
208  // online_muon->pt << std::endl;
209  break;
210  }
211  }
212  offlineCounter++;
213  }
214  float pfHT = 0.0;
215  for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end();
216  ++i_pfjet) {
217  if (i_pfjet->pt() < ptThrJet_)
218  continue;
219  if (fabs(i_pfjet->eta()) > etaThrJet_)
220  continue;
221  pfHT += i_pfjet->pt();
222  }
223  for (reco::CaloJetCollection::const_iterator i_calojet = caloJetCollection->begin();
224  i_calojet != caloJetCollection->end();
225  ++i_calojet) {
226  if (i_calojet->pt() < ptThrJet_)
227  continue;
228  if (fabs(i_calojet->eta()) > etaThrJet_)
229  continue;
230  }
231  // Need to apply the MET offline cut to be in the MET plateau
232  if ((hasFiredAuxiliaryForMuonLeg || !e.isRealData()) && !offlineMuons.empty() &&
233  pfMETCollection->begin()->et() > METOffline_ && pfHT > HTOffline_) {
234  if (hasFired && indexOfMatchedMuon >= 0) {
235  h_MuTurnOn_num->Fill(offlineMuons.at(indexOfMatchedMuon).pt);
236  h_MuTurnOn_den->Fill(offlineMuons.at(indexOfMatchedMuon).pt);
237  } else {
238  h_MuTurnOn_den->Fill(offlineMuons.at(0).pt);
239  }
240  }
241  // Need to apply the pt offline cut to be in the muon pt plateau
242  if ((hasFiredAuxiliaryForHadronicLeg || !e.isRealData()) && indexOfMatchedMuon >= 0 &&
243  offlineMuons.at(indexOfMatchedMuon).pt > ptMuonOffline_ && pfHT > HTOffline_) {
244  if (hasFired) {
245  h_pfMetTurnOn_num->Fill(pfMETCollection->begin()->et());
246  }
247  h_pfMetTurnOn_den->Fill(pfMETCollection->begin()->et());
248  }
249  if ((hasFiredAuxiliaryForHadronicLeg || !e.isRealData()) && indexOfMatchedMuon >= 0 &&
250  offlineMuons.at(indexOfMatchedMuon).pt > ptMuonOffline_ && pfMETCollection->begin()->et() > METOffline_) {
251  if (hasFired) {
252  h_pfHTTurnOn_num->Fill(pfHT);
253  }
254  h_pfHTTurnOn_den->Fill(pfHT);
255  }
256  }
257 }
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
std::string triggerPathAuxiliaryForHadronic_
Log< level::Error, false > LogError
std::vector< Muon > MuonCollection
collection of Muon objects
Definition: MuonFwd.h:9
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
void Fill(long long x)
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:21
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
T sqrt(T t)
Definition: SSEVec.h:19
MonitorElement * h_pfMetTurnOn_num
int id() const
getters
Definition: TriggerObject.h:51
MonitorElement * h_pfHTTurnOn_den
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
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
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
std::vector< size_type > Keys
MonitorElement * h_pfHTTurnOn_num
Definition: Lepton.py:1
MonitorElement * h_pfMetTurnOn_den
bool comparePt(Lepton a, Lepton b)

◆ bookHistograms()

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

Implements DQMEDAnalyzer.

Definition at line 66 of file SUSY_HLT_Muon_Hadronic.cc.

References bookHistos().

66  {
67  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::bookHistograms" << std::endl;
68  // book at beginRun
69  bookHistos(ibooker_);
70 }
Log< level::Info, false > LogInfo
void bookHistos(DQMStore::IBooker &)

◆ bookHistos()

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

Definition at line 259 of file SUSY_HLT_Muon_Hadronic.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::NavigatorBase::cd(), h_MuTurnOn_den, h_MuTurnOn_num, h_pfHTTurnOn_den, h_pfHTTurnOn_num, h_pfMetTurnOn_den, h_pfMetTurnOn_num, h_triggerMuEta, h_triggerMuPhi, h_triggerMuPt, dqm::implementation::NavigatorBase::setCurrentFolder(), and triggerPath_.

Referenced by bookHistograms().

259  {
260  ibooker_.cd();
261  ibooker_.setCurrentFolder("HLT/SUSYBSM/" + triggerPath_);
262 
263  // offline quantities
264 
265  // online quantities
266  h_triggerMuPt = ibooker_.book1D("triggerMuPt", "Trigger Muon Pt; GeV", 20, 0.0, 500.0);
267  h_triggerMuEta = ibooker_.book1D("triggerMuEta", "Trigger Muon Eta", 20, -3.0, 3.0);
268  h_triggerMuPhi = ibooker_.book1D("triggerMuPhi", "Trigger Muon Phi", 20, -3.5, 3.5);
269 
270  // num and den hists to be divided in harvesting step to make turn on curves
271  h_pfMetTurnOn_num = ibooker_.book1D("pfMetTurnOn_num", "PF MET Turn On Numerator", 20, 0.0, 500.0);
272  h_pfMetTurnOn_den = ibooker_.book1D("pfMetTurnOn_den", "PF MET Turn OnDenominator", 20, 0.0, 500.0);
273  h_pfHTTurnOn_num = ibooker_.book1D("pfHTTurnOn_num", "PF HT Turn On Numerator", 30, 0.0, 1500.0);
274  h_pfHTTurnOn_den = ibooker_.book1D("pfHTTurnOn_den", "PF HT Turn On Denominator", 30, 0.0, 1500.0);
275  h_MuTurnOn_num = ibooker_.book1D("MuTurnOn_num", "Muon Turn On Numerator", 30, 0.0, 150);
276  h_MuTurnOn_den = ibooker_.book1D("MuTurnOn_den", "Muon Turn On Denominator", 30, 0.0, 150.0);
277 
278  ibooker_.cd();
279 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
MonitorElement * h_pfMetTurnOn_num
MonitorElement * h_pfHTTurnOn_den
MonitorElement * h_pfHTTurnOn_num
MonitorElement * h_pfMetTurnOn_den
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ dqmBeginRun()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 36 of file SUSY_HLT_Muon_Hadronic.cc.

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

36  {
37  bool changed;
38 
39  if (!fHltConfig.init(run, e, HLTProcess_, changed)) {
40  edm::LogError("SUSY_HLT_Muon_Hadronic") << "Initialization of HLTConfigProvider failed!!";
41  return;
42  }
43 
44  bool pathFound = false;
45  const std::vector<std::string> allTrigNames = fHltConfig.triggerNames();
46  for (size_t j = 0; j < allTrigNames.size(); ++j) {
47  if (allTrigNames[j].find(triggerPath_) != std::string::npos) {
48  pathFound = true;
49  }
50  }
51 
52  if (!pathFound) {
53  LogDebug("SUSY_HLT_Muon_Hadronic") << "Path not found"
54  << "\n";
55  return;
56  }
57  // std::vector<std::string> filtertags = fHltConfig.moduleLabels( triggerPath_
58  // ); triggerFilter_ =
59  // edm::InputTag(filtertags[filtertags.size()-1],"",fHltConfig.processName());
60  // triggerFilter_ = edm::InputTag("hltPFMET120Mu5L3PreFiltered", "",
61  // fHltConfig.processName());
62 
63  edm::LogInfo("SUSY_HLT_Muon_Hadronic") << "SUSY_HLT_Muon_Hadronic::beginRun" << std::endl;
64 }
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
const std::vector< std::string > & triggerNames() const
names of trigger paths
#define LogDebug(id)

Member Data Documentation

◆ etaMuonOffline_

double SUSY_HLT_Muon_Hadronic::etaMuonOffline_
private

Definition at line 63 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ etaThrJet_

double SUSY_HLT_Muon_Hadronic::etaThrJet_
private

Definition at line 67 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ fHltConfig

HLTConfigProvider SUSY_HLT_Muon_Hadronic::fHltConfig
private

Definition at line 55 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by dqmBeginRun().

◆ h_MuTurnOn_den

MonitorElement* SUSY_HLT_Muon_Hadronic::h_MuTurnOn_den
private

Definition at line 78 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_MuTurnOn_num

MonitorElement* SUSY_HLT_Muon_Hadronic::h_MuTurnOn_num
private

Definition at line 77 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_pfHTTurnOn_den

MonitorElement* SUSY_HLT_Muon_Hadronic::h_pfHTTurnOn_den
private

Definition at line 76 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_pfHTTurnOn_num

MonitorElement* SUSY_HLT_Muon_Hadronic::h_pfHTTurnOn_num
private

Definition at line 75 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_pfMetTurnOn_den

MonitorElement* SUSY_HLT_Muon_Hadronic::h_pfMetTurnOn_den
private

Definition at line 74 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_pfMetTurnOn_num

MonitorElement* SUSY_HLT_Muon_Hadronic::h_pfMetTurnOn_num
private

Definition at line 73 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMuEta

MonitorElement* SUSY_HLT_Muon_Hadronic::h_triggerMuEta
private

Definition at line 71 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMuPhi

MonitorElement* SUSY_HLT_Muon_Hadronic::h_triggerMuPhi
private

Definition at line 72 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMuPt

MonitorElement* SUSY_HLT_Muon_Hadronic::h_triggerMuPt
private

Definition at line 70 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ HLTProcess_

std::string SUSY_HLT_Muon_Hadronic::HLTProcess_
private

Definition at line 57 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by dqmBeginRun(), and SUSY_HLT_Muon_Hadronic().

◆ HTOffline_

double SUSY_HLT_Muon_Hadronic::HTOffline_
private

Definition at line 64 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ METOffline_

double SUSY_HLT_Muon_Hadronic::METOffline_
private

Definition at line 65 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ ptMuonOffline_

double SUSY_HLT_Muon_Hadronic::ptMuonOffline_
private

Definition at line 62 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ ptThrJet_

double SUSY_HLT_Muon_Hadronic::ptThrJet_
private

Definition at line 66 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ theCaloJetCollection_

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

Definition at line 51 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ theMuonCollection_

edm::EDGetTokenT<reco::MuonCollection> SUSY_HLT_Muon_Hadronic::theMuonCollection_
private

Definition at line 48 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ thePfJetCollection_

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

Definition at line 50 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ thePfMETCollection_

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

Definition at line 49 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ theTrigSummary_

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

Definition at line 53 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ triggerFilter_

edm::InputTag SUSY_HLT_Muon_Hadronic::triggerFilter_
private

Definition at line 61 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ triggerPath_

std::string SUSY_HLT_Muon_Hadronic::triggerPath_
private

Definition at line 58 of file SUSY_HLT_Muon_Hadronic.h.

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

◆ triggerPathAuxiliaryForHadronic_

std::string SUSY_HLT_Muon_Hadronic::triggerPathAuxiliaryForHadronic_
private

Definition at line 60 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ triggerPathAuxiliaryForMuon_

std::string SUSY_HLT_Muon_Hadronic::triggerPathAuxiliaryForMuon_
private

Definition at line 59 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().

◆ triggerResults_

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

Definition at line 52 of file SUSY_HLT_Muon_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_Muon_Hadronic().