CMS 3D CMS Logo

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

#include <SUSY_HLT_MuEle_Hadronic.h>

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

Public Member Functions

 SUSY_HLT_MuEle_Hadronic (const edm::ParameterSet &ps)
 
 ~SUSY_HLT_MuEle_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 etaThrJet_
 
HLTConfigProvider fHltConfig
 
MonitorElementh_EleTurnOn_den
 
MonitorElementh_EleTurnOn_num
 
MonitorElementh_MuTurnOn_den
 
MonitorElementh_MuTurnOn_num
 
MonitorElementh_pfHTTurnOn_den
 
MonitorElementh_pfHTTurnOn_num
 
MonitorElementh_triggerEleEta
 
MonitorElementh_triggerElePhi
 
MonitorElementh_triggerElePt
 
MonitorElementh_triggerMuEleMass
 
MonitorElementh_triggerMuEta
 
MonitorElementh_triggerMuPhi
 
MonitorElementh_triggerMuPt
 
std::string HLTProcess_
 
double ptThrJet_
 
edm::EDGetTokenT< reco::CaloJetCollectiontheCaloJetCollection_
 
edm::EDGetTokenT< reco::GsfElectronCollectiontheElectronCollection_
 
edm::EDGetTokenT< reco::MuonCollectiontheMuonCollection_
 
edm::EDGetTokenT< reco::PFJetCollectionthePfJetCollection_
 
edm::EDGetTokenT< trigger::TriggerEventtheTrigSummary_
 
edm::InputTag triggerFilter_
 
std::string triggerPath_
 
std::string triggerPathAuxiliaryForHadronic_
 
std::string triggerPathAuxiliaryForMuEle_
 
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 34 of file SUSY_HLT_MuEle_Hadronic.h.

Constructor & Destructor Documentation

◆ SUSY_HLT_MuEle_Hadronic()

SUSY_HLT_MuEle_Hadronic::SUSY_HLT_MuEle_Hadronic ( const edm::ParameterSet ps)

Definition at line 10 of file SUSY_HLT_MuEle_Hadronic.cc.

References etaThrJet_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLTProcess_, ptThrJet_, AlCaHLTBitMon_QueryRunRegistry::string, theCaloJetCollection_, theElectronCollection_, theMuonCollection_, thePfJetCollection_, theTrigSummary_, triggerFilter_, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerPathAuxiliaryForMuEle_, and triggerResults_.

10  {
11  edm::LogInfo("SUSY_HLT_MuEle_Hadronic")
12  << "Constructor SUSY_HLT_MuEle_Hadronic::SUSY_HLT_MuEle_Hadronic " << std::endl;
13  // Get parameters from configuration file
14  theTrigSummary_ = consumes<trigger::TriggerEvent>(ps.getParameter<edm::InputTag>("trigSummary"));
15  theMuonCollection_ = consumes<reco::MuonCollection>(ps.getParameter<edm::InputTag>("MuonCollection"));
16  theElectronCollection_ = consumes<reco::GsfElectronCollection>(ps.getParameter<edm::InputTag>("ElectronCollection"));
17  thePfJetCollection_ = consumes<reco::PFJetCollection>(ps.getParameter<edm::InputTag>("pfJetCollection"));
18  theCaloJetCollection_ = consumes<reco::CaloJetCollection>(ps.getParameter<edm::InputTag>("caloJetCollection"));
19  triggerResults_ = consumes<edm::TriggerResults>(ps.getParameter<edm::InputTag>("TriggerResults"));
20  HLTProcess_ = ps.getParameter<std::string>("HLTProcess");
21  triggerPath_ = ps.getParameter<std::string>("TriggerPath");
22  triggerPathAuxiliaryForMuEle_ = ps.getParameter<std::string>("TriggerPathAuxiliaryForMuEle");
23  triggerPathAuxiliaryForHadronic_ = ps.getParameter<std::string>("TriggerPathAuxiliaryForHadronic");
24  triggerFilter_ = ps.getParameter<edm::InputTag>("TriggerFilter");
25  ptThrJet_ = ps.getUntrackedParameter<double>("PtThrJet");
26  etaThrJet_ = ps.getUntrackedParameter<double>("EtaThrJet");
27 }
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< reco::GsfElectronCollection > theElectronCollection_
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
Log< level::Info, false > LogInfo

◆ ~SUSY_HLT_MuEle_Hadronic()

SUSY_HLT_MuEle_Hadronic::~SUSY_HLT_MuEle_Hadronic ( )
override

Definition at line 29 of file SUSY_HLT_MuEle_Hadronic.cc.

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

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 70 of file SUSY_HLT_MuEle_Hadronic.cc.

References pdwgLeptonRecoSkim_cfi::caloJetCollection, MillePedeFileConverter_cfg::e, HPSPFTauProducerPuppi_cfi::electron, trigger::TriggerObject::eta(), etaThrJet_, dqm::impl::MonitorElement::Fill(), h_EleTurnOn_den, h_EleTurnOn_num, h_MuTurnOn_den, h_MuTurnOn_num, h_pfHTTurnOn_den, h_pfHTTurnOn_num, h_triggerEleEta, h_triggerElePhi, h_triggerElePt, h_triggerMuEleMass, h_triggerMuEta, h_triggerMuPhi, h_triggerMuPt, HLTBitAnalyser_cfi::hltresults, trigger::TriggerObject::id(), dqmiolumiharvest::j, relativeConstraints::keys, HLT_2022v14_cff::muon, ExoticaDQM_cfi::pfJetCollection, trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), ptThrJet_, mathSSE::sqrt(), theCaloJetCollection_, theElectronCollection_, theMuonCollection_, thePfJetCollection_, theTrigSummary_, trigger::TriggerElectron, triggerFilter_, trigger::TriggerMuon, triggerMatchMonitor_cfi::triggerObjects, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerPathAuxiliaryForMuEle_, triggerResults_, HLTMuonOfflineAnalyzer_cfi::triggerSummary, trigNames, and x.

70  {
71  edm::LogInfo("SUSY_HLT_MuEle_Hadronic") << "SUSY_HLT_MuEle_Hadronic::analyze" << std::endl;
72 
73  //-------------------------------
74  //--- Jets
75  //-------------------------------
78  if (!pfJetCollection.isValid()) {
79  edm::LogError("SUSY_HLT_MuEle_Hadronic") << "invalid collection: PFJets"
80  << "\n";
81  return;
82  }
85  if (!caloJetCollection.isValid()) {
86  edm::LogError("SUSY_HLT_MuEle_Hadronic") << "invalid collection: CaloJets"
87  << "\n";
88  return;
89  }
90 
91  //-------------------------------
92  //--- Muon
93  //-------------------------------
95  e.getByToken(theMuonCollection_, MuonCollection);
96  if (!MuonCollection.isValid()) {
97  edm::LogError("SUSY_HLT_MuEle_Hadronic") << "invalid collection: Muons "
98  << "\n";
99  return;
100  }
101 
102  //-------------------------------
103  //--- Electron
104  //-------------------------------
107  if (!ElectronCollection.isValid()) {
108  edm::LogError("SUSY_HLT_MuEle_Hadronic") << "invalid collection: Electrons "
109  << "\n";
110  return;
111  }
112 
113  //-------------------------------
114  //--- Trigger
115  //-------------------------------
117  e.getByToken(triggerResults_, hltresults);
118  if (!hltresults.isValid()) {
119  edm::LogError("SUSY_HLT_MuEle_Hadronic") << "invalid collection: TriggerResults"
120  << "\n";
121  return;
122  }
124  e.getByToken(theTrigSummary_, triggerSummary);
125  if (!triggerSummary.isValid()) {
126  edm::LogError("SUSY_HLT_MuEle_Hadronic") << "invalid collection: TriggerSummary"
127  << "\n";
128  return;
129  }
130 
131  // get online objects
132  std::vector<float> ptMuon, etaMuon, phiMuon, ptElectron, etaElectron, phiElectron;
133  size_t filterIndexEle = triggerSummary->filterIndex(triggerFilter_);
135  if (!(filterIndexEle >= triggerSummary->sizeFilters())) {
136  const trigger::Keys &keys = triggerSummary->filterKeys(filterIndexEle);
137  for (size_t j = 0; j < keys.size(); ++j) {
139  if (foundObject.id() == trigger::TriggerElectron) { // It's an electron
140 
141  bool same = false;
142  for (unsigned int x = 0; x < ptElectron.size(); x++) {
143  if (fabs(ptElectron[x] - foundObject.pt()) < 0.01 || fabs(etaElectron[x] - foundObject.eta()) < 0.001 ||
144  fabs(phiElectron[x] - foundObject.phi()) < 0.001)
145  same = true;
146  }
147 
148  if (!same) {
149  h_triggerElePt->Fill(foundObject.pt());
150  h_triggerEleEta->Fill(foundObject.eta());
151  h_triggerElePhi->Fill(foundObject.phi());
152  ptElectron.push_back(foundObject.pt());
153  etaElectron.push_back(foundObject.eta());
154  phiElectron.push_back(foundObject.phi());
155  }
156  }
157  if (foundObject.id() == trigger::TriggerMuon) { // It's a muon
158 
159  bool same = false;
160  for (unsigned int x = 0; x < ptMuon.size(); x++) {
161  if (fabs(ptMuon[x] - foundObject.pt()) < 0.01)
162  same = true;
163  }
164 
165  if (!same) {
166  h_triggerMuPt->Fill(foundObject.pt());
167  h_triggerMuEta->Fill(foundObject.eta());
168  h_triggerMuPhi->Fill(foundObject.phi());
169  ptMuon.push_back(foundObject.pt());
170  etaMuon.push_back(foundObject.eta());
171  phiMuon.push_back(foundObject.phi());
172  }
173  }
174  }
175  }
176 
177  if (!ptMuon.empty() && !ptElectron.empty()) {
178  math::PtEtaPhiMLorentzVectorD *mu1 = new math::PtEtaPhiMLorentzVectorD(ptMuon[0], etaMuon[0], phiMuon[0], 0.106);
180  new math::PtEtaPhiMLorentzVectorD(ptElectron[0], etaElectron[0], phiElectron[0], 0.0005);
181  (*mu1) += (*ele2);
182  h_triggerMuEleMass->Fill(mu1->M());
183  delete mu1;
184  delete ele2;
185  } else {
186  h_triggerMuEleMass->Fill(-1.);
187  }
188 
189  bool hasFired = false;
190  bool hasFiredAuxiliaryForMuEleLeg = false;
191  bool hasFiredAuxiliaryForHadronicLeg = false;
192  const edm::TriggerNames &trigNames = e.triggerNames(*hltresults);
193  unsigned int numTriggers = trigNames.size();
194  for (unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
195  if (trigNames.triggerName(hltIndex).find(triggerPath_) != std::string::npos && hltresults->wasrun(hltIndex) &&
196  hltresults->accept(hltIndex))
197  hasFired = true;
198  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForMuEle_) != std::string::npos &&
199  hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex))
200  hasFiredAuxiliaryForMuEleLeg = true;
201  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForHadronic_) != std::string::npos &&
202  hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex))
203  hasFiredAuxiliaryForHadronicLeg = true;
204  }
205 
206  if (hasFiredAuxiliaryForMuEleLeg || hasFiredAuxiliaryForHadronicLeg) {
207  // Matching the muon
208  int indexOfMatchedMuEle[2] = {-1};
209  int matchedCounter = 0;
210  int offlineCounter = 0;
211  for (reco::MuonCollection::const_iterator muon = MuonCollection->begin();
212  (muon != MuonCollection->end() && matchedCounter < 1);
213  ++muon) {
214  for (size_t off_i = 0; off_i < ptMuon.size(); ++off_i) {
215  if (sqrt((muon->phi() - phiMuon[off_i]) * (muon->phi() - phiMuon[off_i]) +
216  (muon->eta() - etaMuon[off_i]) * (muon->eta() - etaMuon[off_i])) < 0.5) {
217  indexOfMatchedMuEle[matchedCounter] = offlineCounter;
218  matchedCounter++;
219  break;
220  }
221  }
222  offlineCounter++;
223  }
224 
225  for (reco::GsfElectronCollection::const_iterator electron = ElectronCollection->begin();
226  (electron != ElectronCollection->end() && matchedCounter < 2);
227  ++electron) {
228  for (size_t off_i = 0; off_i < ptElectron.size(); ++off_i) {
229  if (sqrt((electron->phi() - phiElectron[off_i]) * (electron->phi() - phiElectron[off_i]) +
230  (electron->eta() - etaElectron[off_i]) * (electron->eta() - etaElectron[off_i])) < 0.5) {
231  indexOfMatchedMuEle[matchedCounter] = offlineCounter;
232  matchedCounter++;
233  break;
234  }
235  }
236  offlineCounter++;
237  }
238 
239  float caloHT = 0.0;
240  float pfHT = 0.0;
241  for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end();
242  ++i_pfjet) {
243  if (i_pfjet->pt() < ptThrJet_)
244  continue;
245  if (fabs(i_pfjet->eta()) > etaThrJet_)
246  continue;
247  pfHT += i_pfjet->pt();
248  }
249  for (reco::CaloJetCollection::const_iterator i_calojet = caloJetCollection->begin();
250  i_calojet != caloJetCollection->end();
251  ++i_calojet) {
252  if (i_calojet->pt() < ptThrJet_)
253  continue;
254  if (fabs(i_calojet->eta()) > etaThrJet_)
255  continue;
256  caloHT += i_calojet->pt();
257  }
258 
259  if (hasFiredAuxiliaryForMuEleLeg && !MuonCollection->empty() && !ElectronCollection->empty()) {
260  if (hasFired && indexOfMatchedMuEle[1] >= 0 && indexOfMatchedMuEle[0] >= 0) { // check that ele is there too
261  h_EleTurnOn_num->Fill(ElectronCollection->at(indexOfMatchedMuEle[1]).pt());
262  h_MuTurnOn_num->Fill(MuonCollection->at(indexOfMatchedMuEle[0]).pt());
263  }
264  h_MuTurnOn_den->Fill(MuonCollection->at(0).pt());
266  }
267 
268  if (hasFiredAuxiliaryForHadronicLeg) {
269  if (hasFired) {
270  h_pfHTTurnOn_num->Fill(pfHT);
271  }
272  h_pfHTTurnOn_den->Fill(pfHT);
273  }
274  }
275 }
edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > PtEtaPhiMLorentzVectorD
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:10
edm::EDGetTokenT< reco::GsfElectronCollection > theElectronCollection_
Log< level::Error, false > LogError
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
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
T sqrt(T t)
Definition: SSEVec.h:19
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
int id() const
getters
Definition: TriggerObject.h:51
std::vector< Electron > ElectronCollection
collectin of Electron objects
Definition: ElectronFwd.h:9
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
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
std::vector< size_type > Keys

◆ bookHistograms()

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

Implements DQMEDAnalyzer.

Definition at line 64 of file SUSY_HLT_MuEle_Hadronic.cc.

References bookHistos().

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

◆ bookHistos()

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

Definition at line 277 of file SUSY_HLT_MuEle_Hadronic.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::NavigatorBase::cd(), h_EleTurnOn_den, h_EleTurnOn_num, h_MuTurnOn_den, h_MuTurnOn_num, h_pfHTTurnOn_den, h_pfHTTurnOn_num, h_triggerEleEta, h_triggerElePhi, h_triggerElePt, h_triggerMuEleMass, h_triggerMuEta, h_triggerMuPhi, h_triggerMuPt, dqm::implementation::NavigatorBase::setCurrentFolder(), and triggerPath_.

Referenced by bookHistograms().

277  {
278  ibooker_.cd();
279  ibooker_.setCurrentFolder("HLT/SUSYBSM/" + triggerPath_);
280 
281  // offline quantities
282 
283  // online quantities
284  h_triggerMuPt = ibooker_.book1D("triggerMuPt", "Trigger Muon Pt; GeV", 50, 0.0, 500.0);
285  h_triggerMuEta = ibooker_.book1D("triggerMuEta", "Trigger Muon Eta", 20, -3.0, 3.0);
286  h_triggerMuPhi = ibooker_.book1D("triggerMuPhi", "Trigger Muon Phi", 20, -3.5, 3.5);
287 
288  h_triggerElePt = ibooker_.book1D("triggerElePt", "Trigger Electron Pt; GeV", 50, 0.0, 500.0);
289  h_triggerEleEta = ibooker_.book1D("triggerEleEta", "Trigger Electron Eta", 20, -3.0, 3.0);
290  h_triggerElePhi = ibooker_.book1D("triggerElePhi", "Trigger Electron Phi", 20, -3.5, 3.5);
291 
292  h_triggerMuEleMass = ibooker_.book1D("triggerMuEleMass", "Trigger MuEle Mass", 202, -2, 200);
293 
294  // num and den hists to be divided in harvesting step to make turn on curves
295  h_pfHTTurnOn_num = ibooker_.book1D("pfHTTurnOn_num", "PF HT Turn On Numerator", 30, 0.0, 1500.0);
296  h_pfHTTurnOn_den = ibooker_.book1D("pfHTTurnOn_den", "PF HT Turn On Denominator", 30, 0.0, 1500.0);
297  h_MuTurnOn_num = ibooker_.book1D("MuTurnOn_num", "Muon Turn On Numerator", 30, 0.0, 150);
298  h_MuTurnOn_den = ibooker_.book1D("MuTurnOn_den", "Muon Turn On Denominator", 30, 0.0, 150.0);
299  h_EleTurnOn_num = ibooker_.book1D("EleTurnOn_num", "Electron Turn On Numerator", 30, 0.0, 150);
300  h_EleTurnOn_den = ibooker_.book1D("EleTurnOn_den", "Electron Turn On Denominator", 30, 0.0, 150.0);
301 
302  ibooker_.cd();
303 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
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_MuEle_Hadronic::dqmBeginRun ( edm::Run const &  run,
edm::EventSetup const &  e 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 34 of file SUSY_HLT_MuEle_Hadronic.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_MuEle_Hadronic") << "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_MuEle_Hadronic") << "Path not found"
52  << "\n";
53  return;
54  }
55  // std::vector<std::string> filtertags = fHltConfig.moduleLabels( triggerPath_
56  // ); triggerFilter_ =
57  // edm::InputTag(filtertags[filtertags.size()-1],"",fHltConfig.processName());
58  // triggerFilter_ = edm::InputTag("hltPFMET120Mu5L3PreFiltered", "",
59  // fHltConfig.processName());
60 
61  edm::LogInfo("SUSY_HLT_MuEle_Hadronic") << "SUSY_HLT_MuEle_Hadronic::beginRun" << std::endl;
62 }
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

◆ etaThrJet_

double SUSY_HLT_MuEle_Hadronic::etaThrJet_
private

Definition at line 64 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ fHltConfig

HLTConfigProvider SUSY_HLT_MuEle_Hadronic::fHltConfig
private

Definition at line 56 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by dqmBeginRun().

◆ h_EleTurnOn_den

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_EleTurnOn_den
private

Definition at line 79 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_EleTurnOn_num

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_EleTurnOn_num
private

Definition at line 78 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_MuTurnOn_den

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_MuTurnOn_den
private

Definition at line 77 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_MuTurnOn_num

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_MuTurnOn_num
private

Definition at line 76 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_pfHTTurnOn_den

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_pfHTTurnOn_den
private

Definition at line 75 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_pfHTTurnOn_num

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_pfHTTurnOn_num
private

Definition at line 74 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerEleEta

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_triggerEleEta
private

Definition at line 71 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerElePhi

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_triggerElePhi
private

Definition at line 72 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerElePt

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_triggerElePt
private

Definition at line 70 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMuEleMass

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_triggerMuEleMass
private

Definition at line 73 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMuEta

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_triggerMuEta
private

Definition at line 68 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMuPhi

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_triggerMuPhi
private

Definition at line 69 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerMuPt

MonitorElement* SUSY_HLT_MuEle_Hadronic::h_triggerMuPt
private

Definition at line 67 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and bookHistos().

◆ HLTProcess_

std::string SUSY_HLT_MuEle_Hadronic::HLTProcess_
private

Definition at line 58 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by dqmBeginRun(), and SUSY_HLT_MuEle_Hadronic().

◆ ptThrJet_

double SUSY_HLT_MuEle_Hadronic::ptThrJet_
private

Definition at line 63 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ theCaloJetCollection_

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

Definition at line 52 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ theElectronCollection_

edm::EDGetTokenT<reco::GsfElectronCollection> SUSY_HLT_MuEle_Hadronic::theElectronCollection_
private

Definition at line 50 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ theMuonCollection_

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

Definition at line 49 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ thePfJetCollection_

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

Definition at line 51 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ theTrigSummary_

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

Definition at line 54 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ triggerFilter_

edm::InputTag SUSY_HLT_MuEle_Hadronic::triggerFilter_
private

Definition at line 62 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ triggerPath_

std::string SUSY_HLT_MuEle_Hadronic::triggerPath_
private

◆ triggerPathAuxiliaryForHadronic_

std::string SUSY_HLT_MuEle_Hadronic::triggerPathAuxiliaryForHadronic_
private

Definition at line 61 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ triggerPathAuxiliaryForMuEle_

std::string SUSY_HLT_MuEle_Hadronic::triggerPathAuxiliaryForMuEle_
private

Definition at line 60 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().

◆ triggerResults_

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

Definition at line 53 of file SUSY_HLT_MuEle_Hadronic.h.

Referenced by analyze(), and SUSY_HLT_MuEle_Hadronic().