CMS 3D CMS Logo

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

#include <SUSY_HLT_alphaT.h>

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

Public Member Functions

 SUSY_HLT_alphaT (const edm::ParameterSet &ps)
 
 ~SUSY_HLT_alphaT () 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_pfAlphaTTurnOn_den
 
MonitorElementh_pfAlphaTTurnOn_num
 
MonitorElementh_pfHtTurnOn_den
 
MonitorElementh_pfHtTurnOn_num
 
MonitorElementh_triggerPfAlphaT
 
MonitorElementh_triggerPfAlphaT_triggerPfHt
 
MonitorElementh_triggerPfHt
 
std::string HLTProcess_
 
double pfAlphaTThrTurnon_
 
double pfHtThrTurnon_
 
double ptThrJet_
 
edm::EDGetTokenT< reco::PFJetCollectionthePfJetCollection_
 
edm::EDGetTokenT< trigger::TriggerEventtheTrigSummary_
 
edm::InputTag triggerFilter_
 
std::string triggerPath_
 
std::string triggerPathAuxiliaryForHadronic_
 
std::string triggerPathAuxiliaryForMuon_
 
edm::InputTag triggerPreFilter_
 
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 35 of file SUSY_HLT_alphaT.h.

Constructor & Destructor Documentation

◆ SUSY_HLT_alphaT()

SUSY_HLT_alphaT::SUSY_HLT_alphaT ( const edm::ParameterSet ps)

Definition at line 11 of file SUSY_HLT_alphaT.cc.

References etaThrJet_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLTProcess_, pfAlphaTThrTurnon_, pfHtThrTurnon_, ptThrJet_, AlCaHLTBitMon_QueryRunRegistry::string, thePfJetCollection_, theTrigSummary_, triggerFilter_, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerPreFilter_, and triggerResults_.

11  {
12  edm::LogInfo("SUSY_HLT_alphaT") << "Constructor SUSY_HLT_alphaT::SUSY_HLT_alphaT " << std::endl;
13  // Get parameters from configuration file
14  theTrigSummary_ = consumes<trigger::TriggerEvent>(ps.getParameter<edm::InputTag>("trigSummary"));
15  thePfJetCollection_ = consumes<reco::PFJetCollection>(ps.getParameter<edm::InputTag>("pfJetCollection"));
16  // theCaloJetCollection_ =
17  // 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  triggerPathAuxiliaryForHadronic_ = ps.getParameter<std::string>("TriggerPathAuxiliaryForHadronic");
22  triggerFilter_ = ps.getParameter<edm::InputTag>("TriggerFilter");
23  triggerPreFilter_ = ps.getParameter<edm::InputTag>("TriggerPreFilter");
24  ptThrJet_ = ps.getUntrackedParameter<double>("PtThrJet");
25  etaThrJet_ = ps.getUntrackedParameter<double>("EtaThrJet");
26  // caloAlphaTThrTurnon_ =
27  // ps.getUntrackedParameter<double>("caloAlphaTThrTurnon"); caloHtThrTurnon_ =
28  // ps.getUntrackedParameter<double>("caloHtThrTurnon");
29  pfAlphaTThrTurnon_ = ps.getUntrackedParameter<double>("pfAlphaTThrTurnon");
30  pfHtThrTurnon_ = ps.getUntrackedParameter<double>("pfHtThrTurnon");
31 }
edm::InputTag triggerFilter_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
Log< level::Info, false > LogInfo
std::string triggerPathAuxiliaryForHadronic_
std::string HLTProcess_
std::string triggerPath_
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
edm::InputTag triggerPreFilter_
double pfAlphaTThrTurnon_

◆ ~SUSY_HLT_alphaT()

SUSY_HLT_alphaT::~SUSY_HLT_alphaT ( )
override

Definition at line 33 of file SUSY_HLT_alphaT.cc.

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

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 73 of file SUSY_HLT_alphaT.cc.

References MillePedeFileConverter_cfg::e, trigger::TriggerObject::eta(), etaThrJet_, dqm::impl::MonitorElement::Fill(), h_pfAlphaTTurnOn_den, h_pfAlphaTTurnOn_num, h_pfHtTurnOn_den, h_pfHtTurnOn_num, h_triggerPfAlphaT, h_triggerPfAlphaT_triggerPfHt, h_triggerPfHt, HLTBitAnalyser_cfi::hltresults, dqmiolumiharvest::j, relativeConstraints::keys, trigger::TriggerObject::mass(), pfAlphaTThrTurnon_, pfHtThrTurnon_, ExoticaDQM_cfi::pfJetCollection, pfJetBenchmark_cfi::pfJets, trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), ptThrJet_, thePfJetCollection_, theTrigSummary_, triggerFilter_, triggerMatchMonitor_cfi::triggerObjects, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerResults_, HLTMuonOfflineAnalyzer_cfi::triggerSummary, trigNames, and AlphaT::value().

73  {
74  edm::LogInfo("SUSY_HLT_alphaT") << "SUSY_HLT_alphaT::analyze" << std::endl;
75 
76  //-------------------------------
77  //--- Trigger
78  //-------------------------------
80  e.getByToken(triggerResults_, hltresults);
81  if (!hltresults.isValid()) {
82  edm::LogWarning("SUSY_HLT_alphaT") << "invalid collection: TriggerResults"
83  << "\n";
84  return;
85  }
87  e.getByToken(theTrigSummary_, triggerSummary);
88  if (!triggerSummary.isValid()) {
89  edm::LogWarning("SUSY_HLT_alphaT") << "invalid collection: TriggerSummary"
90  << "\n";
91  return;
92  }
93 
94  //-------------------------------
95  //--- Jets
96  //-------------------------------
99  if (!pfJetCollection.isValid()) {
100  edm::LogWarning("SUSY_HLT_alphaT") << "invalid collection: PFJets"
101  << "\n";
102  return;
103  }
104  // edm::Handle<reco::CaloJetCollection> caloJetCollection;
105  // e.getByToken (theCaloJetCollection_,caloJetCollection);
106  // if ( !caloJetCollection.isValid() ){
107  // edm::LogWarning ("SUSY_HLT_alphaT") << "invalid collection: CaloJets"
108  // << "\n"; return;
109  // }
110 
111  // get online objects
112  // For now just get the jets and recalculate ht and alphaT
113  size_t filterIndex = triggerSummary->filterIndex(triggerFilter_);
114  // size_t preFilterIndex = triggerSummary->filterIndex( triggerPreFilter_ );
116 
117  // Get the PF objects from the filter
118  double hltPfHt = 0.;
119  std::vector<LorentzV> hltPfJets;
120  if (!(filterIndex >= triggerSummary->sizeFilters())) {
121  const trigger::Keys &keys = triggerSummary->filterKeys(filterIndex);
122 
123  for (size_t j = 0; j < keys.size(); ++j) {
125 
126  // if(foundObject.id() == 85){ //It's a jet
127  if (foundObject.pt() > ptThrJet_ && fabs(foundObject.eta()) < etaThrJet_) {
128  hltPfHt += foundObject.pt();
129  LorentzV JetLVec(foundObject.pt(), foundObject.eta(), foundObject.phi(), foundObject.mass());
130  hltPfJets.push_back(JetLVec);
131  }
132  // }
133  }
134  }
135 
136  // //Get the Calo objects from the prefilter
137  // double hltCaloHt=0.;
138  // std::vector<LorentzV> hltCaloJets;
139  // if( !(preFilterIndex >= triggerSummary->sizeFilters()) ){
140  // const trigger::Keys& keys = triggerSummary->filterKeys( preFilterIndex
141  // );
142 
143  // for( size_t j = 0; j < keys.size(); ++j ){
144  // trigger::TriggerObject foundObject = triggerObjects[keys[j]];
145 
146  // // if(foundObject.id() == 85){ //It's a jet
147  // if(foundObject.pt()>ptThrJet_ && fabs(foundObject.eta()) <
148  // etaThrJet_){
149  // hltCaloHt += foundObject.pt();
150  // LorentzV
151  // JetLVec(foundObject.pt(),foundObject.eta(),foundObject.phi(),foundObject.mass());
152  // hltCaloJets.push_back(JetLVec);
153  // }
154  // // }
155  // }
156  // }
157 
158  // Fill the alphaT and HT histograms
159  if (!hltPfJets.empty()) {
160  double hltPfAlphaT = AlphaT(hltPfJets, true).value();
161  h_triggerPfAlphaT->Fill(hltPfAlphaT);
162  h_triggerPfHt->Fill(hltPfHt);
163  h_triggerPfAlphaT_triggerPfHt->Fill(hltPfHt, hltPfAlphaT);
164  }
165 
166  // if(hltCaloJets.size()>0){
167  // double hltCaloAlphaT = AlphaT(hltCaloJets,true).value();
168  // h_triggerCaloAlphaT->Fill(hltCaloAlphaT);
169  // h_triggerCaloHt->Fill(hltCaloHt);
170  // h_triggerCaloAlphaT_triggerCaloHt->Fill(hltCaloHt, hltCaloAlphaT);
171  // }
172 
173  bool hasFired = false;
174  bool hasFiredAuxiliaryForHadronicLeg = false;
175  const edm::TriggerNames &trigNames = e.triggerNames(*hltresults);
176  unsigned int numTriggers = trigNames.size();
177  for (unsigned int hltIndex = 0; hltIndex < numTriggers; ++hltIndex) {
178  if (trigNames.triggerName(hltIndex).find(triggerPath_) != std::string::npos && hltresults->wasrun(hltIndex) &&
179  hltresults->accept(hltIndex))
180  hasFired = true;
181  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForHadronic_) != std::string::npos &&
182  hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex))
183  hasFiredAuxiliaryForHadronicLeg = true;
184  }
185 
186  if (hasFiredAuxiliaryForHadronicLeg) {
187  float pfHT = 0.0;
188  std::vector<LorentzV> pfJets;
189  for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end();
190  ++i_pfjet) {
191  if (i_pfjet->pt() < ptThrJet_)
192  continue;
193  if (fabs(i_pfjet->eta()) > etaThrJet_)
194  continue;
195  pfHT += i_pfjet->pt();
196  LorentzV JetLVec(i_pfjet->pt(), i_pfjet->eta(), i_pfjet->phi(), i_pfjet->mass());
197  pfJets.push_back(JetLVec);
198  }
199 
200  // //Make the gen Calo HT and AlphaT
201  // float caloHT = 0.0;
202  // std::vector<LorentzV> caloJets;
203  // for (reco::CaloJetCollection::const_iterator i_calojet =
204  // caloJetCollection->begin(); i_calojet != caloJetCollection->end();
205  // ++i_calojet){
206  // if (i_calojet->pt() < ptThrJet_) continue;
207  // if (fabs(i_calojet->eta()) > etaThrJet_) continue;
208  // caloHT += i_calojet->pt();
209  // LorentzV
210  // JetLVec(i_calojet->pt(),i_calojet->eta(),i_calojet->phi(),i_calojet->mass());
211  // caloJets.push_back(JetLVec);
212  // }
213 
214  // AlphaT aT = AlphaT(jets);
215  // double caloAlphaT = AlphaT(caloJets).value();
216  double pfAlphaT = AlphaT(pfJets).value();
217 
218  // Fill the turnons
219  if (hasFired) {
220  // if(caloHT>caloHtThrTurnon_) h_caloAlphaTTurnOn_num-> Fill(caloAlphaT);
221  // if(caloAlphaT>caloAlphaTThrTurnon_) h_caloHtTurnOn_num-> Fill(caloHT);
222 
223  if (pfHT > pfHtThrTurnon_)
224  h_pfAlphaTTurnOn_num->Fill(pfAlphaT);
225  if (pfAlphaT > pfAlphaTThrTurnon_)
226  h_pfHtTurnOn_num->Fill(pfHT);
227  }
228  // if(caloHT>caloHtThrTurnon_) h_caloAlphaTTurnOn_den-> Fill(caloAlphaT);
229  // if(caloAlphaT>caloAlphaTThrTurnon_) h_caloHtTurnOn_den-> Fill(caloHT);
230 
231  if (pfHT > pfHtThrTurnon_)
232  h_pfAlphaTTurnOn_den->Fill(pfAlphaT);
233  if (pfAlphaT > pfAlphaTThrTurnon_)
234  h_pfHtTurnOn_den->Fill(pfHT);
235  }
236 }
edm::InputTag triggerFilter_
Definition: AlphaT.h:8
MonitorElement * h_triggerPfHt
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
MonitorElement * h_triggerPfAlphaT_triggerPfHt
void Fill(long long x)
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:21
MonitorElement * h_pfAlphaTTurnOn_num
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > LorentzV
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::string triggerPathAuxiliaryForHadronic_
std::vector< size_type > Keys
MonitorElement * h_pfHtTurnOn_den
MonitorElement * h_triggerPfAlphaT
MonitorElement * h_pfAlphaTTurnOn_den
std::string triggerPath_
MonitorElement * h_pfHtTurnOn_num
edm::EDGetTokenT< reco::PFJetCollection > thePfJetCollection_
double value(void) const
Definition: AlphaT.h:40
Log< level::Warning, false > LogWarning
double pfAlphaTThrTurnon_

◆ bookHistograms()

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

Implements DQMEDAnalyzer.

Definition at line 67 of file SUSY_HLT_alphaT.cc.

References bookHistos().

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

◆ bookHistos()

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

Definition at line 238 of file SUSY_HLT_alphaT.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::NavigatorBase::cd(), h_pfAlphaTTurnOn_den, h_pfAlphaTTurnOn_num, h_pfHtTurnOn_den, h_pfHtTurnOn_num, h_triggerPfAlphaT, h_triggerPfAlphaT_triggerPfHt, h_triggerPfHt, dqm::implementation::NavigatorBase::setCurrentFolder(), and triggerPath_.

Referenced by bookHistograms().

238  {
239  ibooker_.cd();
240  ibooker_.setCurrentFolder("HLT/SUSYBSM/" + triggerPath_);
241 
242  // offline quantities
243 
244  // online quantities
245  // h_triggerCaloHt = ibooker_.book1D("triggerCaloHt", "Trigger Calo Ht; HT
246  // (GeV)", 60, 0.0, 1500.0); h_triggerCaloAlphaT =
247  // ibooker_.book1D("triggerCaloAlphaT", "Trigger Calo AlphaT; AlphaT", 80,
248  // 0., 1.0); h_triggerCaloAlphaT_triggerCaloHt =
249  // ibooker_.book2D("triggerCaloAlphaT_triggerCaloHt","Trigger Calo HT vs
250  // Trigger Calo AlphaT; HT (GeV); AlphaT", 60,0.0,1500.,80,0.,1.0);
251  h_triggerPfHt = ibooker_.book1D("triggerPfHt", "Trigger PF Ht; HT (GeV)", 60, 0.0, 1500.0);
252  h_triggerPfAlphaT = ibooker_.book1D("triggerPfAlphaT", "Trigger PF AlphaT; AlphaT", 80, 0., 1.0);
253  h_triggerPfAlphaT_triggerPfHt = ibooker_.book2D("triggerPfAlphaT_triggerPfHt",
254  "Trigger PF HT vs Trigger PF AlphaT; HT (GeV); AlphaT",
255  60,
256  0.0,
257  1500.,
258  80,
259  0.,
260  1.0);
261 
262  // num and den hists to be divided in harvesting step to make turn on curves
263  // h_caloAlphaTTurnOn_num = ibooker_.book1D("caloAlphaTTurnOn_num", "Calo
264  // AlphaT Turn On Numerator; AlphaT", 40, 0.0, 1.0 ); h_caloAlphaTTurnOn_den =
265  // ibooker_.book1D("caloAlphaTTurnOn_den", "Calo AlphaT Turn OnDenominator;
266  // AlphaT", 40, 0.0, 1.0 ); h_caloHtTurnOn_num =
267  // ibooker_.book1D("caloHtTurnOn_num", "Calo HT Turn On Numerator; HT (GeV)",
268  // 30, 0.0, 1500.0 ); h_caloHtTurnOn_den = ibooker_.book1D("caloHtTurnOn_den",
269  // "Calo HT Turn On Denominator; HT (GeV)", 30, 0.0, 1500.0 );
270 
271  h_pfAlphaTTurnOn_num = ibooker_.book1D("pfAlphaTTurnOn_num", "PF AlphaT Turn On Numerator; AlphaT", 40, 0.0, 1.0);
272  h_pfAlphaTTurnOn_den = ibooker_.book1D("pfAlphaTTurnOn_den", "PF AlphaT Turn OnDenominator; AlphaT", 40, 0.0, 1.0);
273  h_pfHtTurnOn_num = ibooker_.book1D("pfHtTurnOn_num", "PF HT Turn On Numerator; HT (GeV)", 30, 0.0, 1500.0);
274  h_pfHtTurnOn_den = ibooker_.book1D("pfHtTurnOn_den", "PF HT Turn On Denominator; HT (GeV)", 30, 0.0, 1500.0);
275 
276  ibooker_.cd();
277 }
MonitorElement * h_triggerPfHt
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
MonitorElement * h_triggerPfAlphaT_triggerPfHt
MonitorElement * h_pfAlphaTTurnOn_num
MonitorElement * h_pfHtTurnOn_den
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_triggerPfAlphaT
MonitorElement * h_pfAlphaTTurnOn_den
std::string triggerPath_
MonitorElement * h_pfHtTurnOn_num
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_alphaT::dqmBeginRun ( edm::Run const &  run,
edm::EventSetup const &  e 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 37 of file SUSY_HLT_alphaT.cc.

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

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

Member Data Documentation

◆ etaThrJet_

double SUSY_HLT_alphaT::etaThrJet_
private

Definition at line 64 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

◆ fHltConfig

HLTConfigProvider SUSY_HLT_alphaT::fHltConfig
private

Definition at line 55 of file SUSY_HLT_alphaT.h.

Referenced by dqmBeginRun().

◆ h_pfAlphaTTurnOn_den

MonitorElement* SUSY_HLT_alphaT::h_pfAlphaTTurnOn_den
private

Definition at line 83 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

◆ h_pfAlphaTTurnOn_num

MonitorElement* SUSY_HLT_alphaT::h_pfAlphaTTurnOn_num
private

Definition at line 82 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

◆ h_pfHtTurnOn_den

MonitorElement* SUSY_HLT_alphaT::h_pfHtTurnOn_den
private

Definition at line 85 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

◆ h_pfHtTurnOn_num

MonitorElement* SUSY_HLT_alphaT::h_pfHtTurnOn_num
private

Definition at line 84 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerPfAlphaT

MonitorElement* SUSY_HLT_alphaT::h_triggerPfAlphaT
private

Definition at line 80 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerPfAlphaT_triggerPfHt

MonitorElement* SUSY_HLT_alphaT::h_triggerPfAlphaT_triggerPfHt
private

Definition at line 81 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

◆ h_triggerPfHt

MonitorElement* SUSY_HLT_alphaT::h_triggerPfHt
private

Definition at line 79 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

◆ HLTProcess_

std::string SUSY_HLT_alphaT::HLTProcess_
private

Definition at line 57 of file SUSY_HLT_alphaT.h.

Referenced by dqmBeginRun(), and SUSY_HLT_alphaT().

◆ pfAlphaTThrTurnon_

double SUSY_HLT_alphaT::pfAlphaTThrTurnon_
private

Definition at line 65 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

◆ pfHtThrTurnon_

double SUSY_HLT_alphaT::pfHtThrTurnon_
private

Definition at line 66 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

◆ ptThrJet_

double SUSY_HLT_alphaT::ptThrJet_
private

Definition at line 63 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

◆ thePfJetCollection_

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

Definition at line 50 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

◆ theTrigSummary_

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

Definition at line 53 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

◆ triggerFilter_

edm::InputTag SUSY_HLT_alphaT::triggerFilter_
private

Definition at line 62 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

◆ triggerPath_

std::string SUSY_HLT_alphaT::triggerPath_
private

Definition at line 58 of file SUSY_HLT_alphaT.h.

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

◆ triggerPathAuxiliaryForHadronic_

std::string SUSY_HLT_alphaT::triggerPathAuxiliaryForHadronic_
private

Definition at line 60 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

◆ triggerPathAuxiliaryForMuon_

std::string SUSY_HLT_alphaT::triggerPathAuxiliaryForMuon_
private

Definition at line 59 of file SUSY_HLT_alphaT.h.

◆ triggerPreFilter_

edm::InputTag SUSY_HLT_alphaT::triggerPreFilter_
private

Definition at line 61 of file SUSY_HLT_alphaT.h.

Referenced by SUSY_HLT_alphaT().

◆ triggerResults_

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

Definition at line 52 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().