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::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

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
 
virtual void dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
virtual void dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

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
 
void dqmEndRun (edm::Run const &run, edm::EventSetup const &eSetup) override
 
- Protected Member Functions inherited from edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 33 of file SUSY_HLT_DiJet_MET.h.

Constructor & Destructor Documentation

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
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag triggerFilter_
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
edm::EDGetTokenT< reco::PFMETCollection > thePfMETCollection_
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 ( )
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 }

Member Function Documentation

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 edm::HLTGlobalStatus::accept(), pdwgLeptonRecoSkim_cfi::caloJetCollection, ewkDQM_cfi::caloMETCollection, reco::deltaPhi(), trigger::TriggerObject::eta(), etaThrJet_, etaThrJetTrig_, dqm::impl::MonitorElement::Fill(), trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), edm::Event::getByToken(), trigger::TriggerEvent::getObjects(), 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, edm::HandleBase::isValid(), dqmiolumiharvest::j, relativeConstraints::keys, metCut_, ExoticaDQM_cfi::pfJetCollection, B2GDQM_cfi::pfMETCollection, trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), ptThrJet_, ptThrJetTrig_, edm::TriggerNames::size(), trigger::TriggerEvent::sizeFilters(), mathSSE::sqrt(), theCaloJetCollection_, theCaloMETCollection_, thePfJetCollection_, thePfMETCollection_, theTrigSummary_, triggerFilter_, triggerJetFilter_, edm::TriggerNames::triggerName(), edm::Event::triggerNames(), triggerMatchMonitor_cfi::triggerObjects, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerResults_, HLTMuonOfflineAnalyzer_cfi::triggerSummary, trigNames, and edm::HLTGlobalStatus::wasrun().

65  {
66  edm::LogInfo("SUSY_HLT_DiJet_MET") << "SUSY_HLT_DiJet_MET::analyze" << std::endl;
67 
68  //-------------------------------
69  //--- MET
70  //-------------------------------
72  e.getByToken(thePfMETCollection_, pfMETCollection);
73  if (!pfMETCollection.isValid()) {
74  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: PFMET"
75  << "\n";
76  return;
77  }
79  e.getByToken(theCaloMETCollection_, caloMETCollection);
80  if (!caloMETCollection.isValid()) {
81  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: CaloMET"
82  << "\n";
83  return;
84  }
85  //-------------------------------
86  //--- Jets
87  //-------------------------------
89  e.getByToken(thePfJetCollection_, pfJetCollection);
90  if (!pfJetCollection.isValid()) {
91  edm::LogError("SUSY_HLT_DiJet_MET") << "invalid collection: PFJets"
92  << "\n";
93  return;
94  }
96  e.getByToken(theCaloJetCollection_, caloJetCollection);
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) {
130  trigger::TriggerObject foundObject = triggerObjects[keys[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
bool wasrun() const
Was at least one path run?
MonitorElement * h_triggerJetEta
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:146
edm::InputTag triggerFilter_
edm::EDGetTokenT< reco::CaloJetCollection > theCaloJetCollection_
float phi() const
Definition: TriggerObject.h:54
MonitorElement * h_pfMetTurnOn_num
MonitorElement * h_pfMetPhi
MonitorElement * h_pfJetPt
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
Definition: TriggerEvent.h:118
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
Definition: TriggerEvent.h:132
MonitorElement * h_caloMetvsPFMet
MonitorElement * h_pfJetEta
Strings::size_type size() const
Definition: TriggerNames.cc:31
float eta() const
Definition: TriggerObject.h:53
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_
const TriggerObjectCollection & getObjects() const
Definition: TriggerEvent.h:101
MonitorElement * h_triggerMet
T sqrt(T t)
Definition: SSEVec.h:19
MonitorElement * h_pfJet2PtTurnOn_den
MonitorElement * h_pfJet1Jet2DPhi
bool isValid() const
Definition: HandleBase.h:70
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Definition: TriggerObject.h:75
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:57
MonitorElement * h_pfJetPhi
edm::InputTag triggerJetFilter_
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:22
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
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 &)
void SUSY_HLT_DiJet_MET::bookHistos ( DQMStore::IBooker ibooker_)
private

Definition at line 226 of file SUSY_HLT_DiJet_MET.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), dqm::dqmstoreimpl::DQMStore::IBooker::cd(), DEFINE_FWK_MODULE, 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::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), and triggerPath_.

Referenced by bookHistograms().

226  {
227  ibooker_.cd();
228  ibooker_.setCurrentFolder("HLT/SUSYBSM/" + triggerPath_);
229 
230  // offline quantities
231  h_pfMetPhi = ibooker_.book1D("pfMetPhi", "PF MET Phi", 20, -3.5, 3.5);
232  h_pfJetPt = ibooker_.book1D("pfJetPt", "PF Jet p_{T} (trigger-matched jets, |#eta| < 2.4); GeV", 20, 0.0, 500.0);
233  h_pfJetEta = ibooker_.book1D("pfJetEta", "PF Jet #eta (trigger-matched jets, |#eta| < 2.4)", 20, -3.0, 3.0);
234  h_pfJetPhi = ibooker_.book1D("pfJetPhi", "PF Jet #phi (trigger-matched jets, |#eta| < 2.4)", 20, -3.5, 3.5);
236  ibooker_.book1D("pfJet1Jet2DPhi", "|#Delta#phi| between two leading trigger-matched jets", 20, 0.0, 3.5);
237  h_caloMetvsPFMet = ibooker_.book2D("caloMetvsPFMet", "Calo MET vs PF MET; GeV; GeV", 25, 0.0, 500.0, 25, 0.0, 500.0);
238 
239  // online quantities
240  h_triggerMet = ibooker_.book1D("triggerMet", "Trigger MET; GeV", 20, 0.0, 500.0);
241  h_triggerMetPhi = ibooker_.book1D("triggerMetPhi", "Trigger MET Phi", 20, -3.5, 3.5);
242  h_triggerJetPt = ibooker_.book1D("triggerJetPt", "Trigger Jet p_{T}; GeV", 20, 0.0, 500.0);
243  h_triggerJetEta = ibooker_.book1D("triggerJetEta", "Trigger Jet Eta", 20, -3.0, 3.0);
244  h_triggerJetPhi = ibooker_.book1D("triggerJetPhi", "Trigger Jet Phi", 20, -3.5, 3.5);
245 
246  // num and den hists to be divided in harvesting step to make turn on curves
247  h_pfMetTurnOn_num = ibooker_.book1D("pfMetTurnOn_num", "PF MET", 20, 0.0, 500.0);
248  h_pfMetTurnOn_den = ibooker_.book1D("pfMetTurnOn_den", "PF MET Turn On Denominator", 20, 0.0, 500.0);
250  ibooker_.book1D("pfJet2PtTurnOn_num", "PF Jet2 Pt (NCentralPFJets >= 2, PFMET > 250)", 20, 0.0, 500.0);
251  h_pfJet2PtTurnOn_den = ibooker_.book1D("pfJet2PtTurnOn_den", "PF Jet2 Pt Turn On Denominator", 20, 0.0, 500.0);
252 
253  ibooker_.cd();
254 }
MonitorElement * h_triggerJetEta
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 * h_pfJet2PtTurnOn_num
MonitorElement * h_pfMetTurnOn_den
MonitorElement * h_triggerJetPt
MonitorElement * h_triggerJetPhi
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 fHltConfig, spr::find(), HLTProcess_, HLTConfigProvider::init(), dqmiolumiharvest::j, LogDebug, 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 }
#define LogDebug(id)
const std::vector< std::string > & triggerNames() const
names of trigger paths
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
HLTConfigProvider fHltConfig
void SUSY_HLT_DiJet_MET::dqmEndRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 222 of file SUSY_HLT_DiJet_MET.cc.

222  {
223  edm::LogInfo("SUSY_HLT_DiJet_MET") << "SUSY_HLT_DiJet_MET::endRun" << std::endl;
224 }

Member Data Documentation

double SUSY_HLT_DiJet_MET::etaThrJet_
private

Definition at line 66 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

double SUSY_HLT_DiJet_MET::etaThrJetTrig_
private

Definition at line 64 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

HLTConfigProvider SUSY_HLT_DiJet_MET::fHltConfig
private

Definition at line 56 of file SUSY_HLT_DiJet_MET.h.

Referenced by dqmBeginRun().

MonitorElement* SUSY_HLT_DiJet_MET::h_caloMetvsPFMet
private

Definition at line 75 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJet1Jet2DPhi
private

Definition at line 74 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJet2PtTurnOn_den
private

Definition at line 84 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJet2PtTurnOn_num
private

Definition at line 83 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJetEta
private

Definition at line 72 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJetPhi
private

Definition at line 73 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfJetPt
private

Definition at line 71 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfMetPhi
private

Definition at line 70 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfMetTurnOn_den
private

Definition at line 82 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_pfMetTurnOn_num
private

Definition at line 81 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerJetEta
private

Definition at line 79 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerJetPhi
private

Definition at line 80 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerJetPt
private

Definition at line 78 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerMet
private

Definition at line 76 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_DiJet_MET::h_triggerMetPhi
private

Definition at line 77 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and bookHistos().

std::string SUSY_HLT_DiJet_MET::HLTProcess_
private

Definition at line 58 of file SUSY_HLT_DiJet_MET.h.

Referenced by dqmBeginRun(), and SUSY_HLT_DiJet_MET().

double SUSY_HLT_DiJet_MET::metCut_
private

Definition at line 67 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

double SUSY_HLT_DiJet_MET::ptThrJet_
private

Definition at line 65 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

double SUSY_HLT_DiJet_MET::ptThrJetTrig_
private

Definition at line 63 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

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

Definition at line 52 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

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

Definition at line 50 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

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

Definition at line 51 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

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

Definition at line 49 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

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

Definition at line 54 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

edm::InputTag SUSY_HLT_DiJet_MET::triggerFilter_
private

Definition at line 61 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

edm::InputTag SUSY_HLT_DiJet_MET::triggerJetFilter_
private

Definition at line 62 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

std::string SUSY_HLT_DiJet_MET::triggerPath_
private

Definition at line 59 of file SUSY_HLT_DiJet_MET.h.

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

std::string SUSY_HLT_DiJet_MET::triggerPathAuxiliaryForHadronic_
private

Definition at line 60 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().

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

Definition at line 53 of file SUSY_HLT_DiJet_MET.h.

Referenced by analyze(), and SUSY_HLT_DiJet_MET().