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

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 &ev, edm::EventSetup const &es) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () 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
 
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)
 
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 endRun (edm::Run const &run, edm::EventSetup const &eSetup) override
 
- 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 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_
 
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 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 38 of file SUSY_HLT_alphaT.h.

Constructor & Destructor Documentation

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_.

12 {
13  edm::LogInfo("SUSY_HLT_alphaT") << "Constructor SUSY_HLT_alphaT::SUSY_HLT_alphaT " << std::endl;
14  // Get parameters from configuration file
15  theTrigSummary_ = consumes<trigger::TriggerEvent>(ps.getParameter<edm::InputTag>("trigSummary"));
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  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_ = ps.getUntrackedParameter<double>("caloAlphaTThrTurnon");
27  //caloHtThrTurnon_ = ps.getUntrackedParameter<double>("caloHtThrTurnon");
28  pfAlphaTThrTurnon_ = ps.getUntrackedParameter<double>("pfAlphaTThrTurnon");
29  pfHtThrTurnon_ = ps.getUntrackedParameter<double>("pfHtThrTurnon");
30 }
edm::InputTag triggerFilter_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
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 ( )
override

Definition at line 32 of file SUSY_HLT_alphaT.cc.

33 {
34  edm::LogInfo("SUSY_HLT_alphaT") << "Destructor SUSY_HLT_alphaT::~SUSY_HLT_alphaT " << std::endl;
35 }

Member Function Documentation

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

Reimplemented from DQMEDAnalyzer.

Definition at line 76 of file SUSY_HLT_alphaT.cc.

References edm::HLTGlobalStatus::accept(), trigger::TriggerObject::eta(), etaThrJet_, MonitorElement::Fill(), HcalObjRepresent::Fill(), trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), edm::Event::getByToken(), trigger::TriggerEvent::getObjects(), h_pfAlphaTTurnOn_den, h_pfAlphaTTurnOn_num, h_pfHtTurnOn_den, h_pfHtTurnOn_num, h_triggerPfAlphaT, h_triggerPfAlphaT_triggerPfHt, h_triggerPfHt, edm::HandleBase::isValid(), relativeConstraints::keys, trigger::TriggerObject::mass(), pfAlphaTThrTurnon_, pfHtThrTurnon_, pfJetBenchmark_cfi::pfJets, trigger::TriggerObject::phi(), trigger::TriggerObject::pt(), ptThrJet_, edm::TriggerNames::size(), trigger::TriggerEvent::sizeFilters(), thePfJetCollection_, theTrigSummary_, triggerFilter_, edm::TriggerNames::triggerName(), edm::Event::triggerNames(), TriggerAnalyzer::triggerObjects, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerResults_, trigNames, AlphaT::value(), and edm::HLTGlobalStatus::wasrun().

76  {
77  edm::LogInfo("SUSY_HLT_alphaT") << "SUSY_HLT_alphaT::analyze" << std::endl;
78 
79  //-------------------------------
80  //--- Trigger
81  //-------------------------------
83  e.getByToken(triggerResults_,hltresults);
84  if(!hltresults.isValid()){
85  edm::LogWarning ("SUSY_HLT_alphaT") << "invalid collection: TriggerResults" << "\n";
86  return;
87  }
89  e.getByToken(theTrigSummary_, triggerSummary);
90  if(!triggerSummary.isValid()) {
91  edm::LogWarning ("SUSY_HLT_alphaT") << "invalid collection: TriggerSummary" << "\n";
92  return;
93  }
94 
95  //-------------------------------
96  //--- Jets
97  //-------------------------------
98  edm::Handle<reco::PFJetCollection> pfJetCollection;
99  e.getByToken (thePfJetCollection_,pfJetCollection);
100  if ( !pfJetCollection.isValid() ){
101  edm::LogWarning ("SUSY_HLT_alphaT") << "invalid collection: PFJets" << "\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" << "\n";
108  // 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 ){
124  trigger::TriggerObject foundObject = triggerObjects[keys[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  // for( size_t j = 0; j < keys.size(); ++j ){
143  // trigger::TriggerObject foundObject = triggerObjects[keys[j]];
144 
145  // // if(foundObject.id() == 85){ //It's a jet
146  // if(foundObject.pt()>ptThrJet_ && fabs(foundObject.eta()) < etaThrJet_){
147  // hltCaloHt += foundObject.pt();
148  // LorentzV JetLVec(foundObject.pt(),foundObject.eta(),foundObject.phi(),foundObject.mass());
149  // hltCaloJets.push_back(JetLVec);
150  // }
151  // // }
152  // }
153  // }
154 
155  //Fill the alphaT and HT histograms
156  if(!hltPfJets.empty()){
157  double hltPfAlphaT = AlphaT(hltPfJets,true).value();
158  h_triggerPfAlphaT->Fill(hltPfAlphaT);
159  h_triggerPfHt->Fill(hltPfHt);
160  h_triggerPfAlphaT_triggerPfHt->Fill(hltPfHt, hltPfAlphaT);
161  }
162 
163  // if(hltCaloJets.size()>0){
164  // double hltCaloAlphaT = AlphaT(hltCaloJets,true).value();
165  // h_triggerCaloAlphaT->Fill(hltCaloAlphaT);
166  // h_triggerCaloHt->Fill(hltCaloHt);
167  // h_triggerCaloAlphaT_triggerCaloHt->Fill(hltCaloHt, hltCaloAlphaT);
168  // }
169 
170  bool hasFired = false;
171  bool hasFiredAuxiliaryForHadronicLeg = false;
172  const edm::TriggerNames& trigNames = e.triggerNames(*hltresults);
173  unsigned int numTriggers = trigNames.size();
174  for( unsigned int hltIndex=0; hltIndex<numTriggers; ++hltIndex ){
175  if (trigNames.triggerName(hltIndex).find(triggerPath_) != std::string::npos && hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex)) hasFired = true;
176  if (trigNames.triggerName(hltIndex).find(triggerPathAuxiliaryForHadronic_) != std::string::npos && hltresults->wasrun(hltIndex) && hltresults->accept(hltIndex)) hasFiredAuxiliaryForHadronicLeg = true;
177 
178  }
179 
180  if(hasFiredAuxiliaryForHadronicLeg) {
181 
182  float pfHT = 0.0;
183  std::vector<LorentzV> pfJets;
184  for (reco::PFJetCollection::const_iterator i_pfjet = pfJetCollection->begin(); i_pfjet != pfJetCollection->end(); ++i_pfjet){
185  if (i_pfjet->pt() < ptThrJet_) continue;
186  if (fabs(i_pfjet->eta()) > etaThrJet_) continue;
187  pfHT += i_pfjet->pt();
188  LorentzV JetLVec(i_pfjet->pt(),i_pfjet->eta(),i_pfjet->phi(),i_pfjet->mass());
189  pfJets.push_back(JetLVec);
190  }
191 
192  // //Make the gen Calo HT and AlphaT
193  // float caloHT = 0.0;
194  // std::vector<LorentzV> caloJets;
195  // for (reco::CaloJetCollection::const_iterator i_calojet = caloJetCollection->begin(); i_calojet != caloJetCollection->end(); ++i_calojet){
196  // if (i_calojet->pt() < ptThrJet_) continue;
197  // if (fabs(i_calojet->eta()) > etaThrJet_) continue;
198  // caloHT += i_calojet->pt();
199  // LorentzV JetLVec(i_calojet->pt(),i_calojet->eta(),i_calojet->phi(),i_calojet->mass());
200  // caloJets.push_back(JetLVec);
201  // }
202 
203  //AlphaT aT = AlphaT(jets);
204  //double caloAlphaT = AlphaT(caloJets).value();
205  double pfAlphaT = AlphaT(pfJets).value();
206 
207  //Fill the turnons
208  if(hasFired) {
209  // if(caloHT>caloHtThrTurnon_) h_caloAlphaTTurnOn_num-> Fill(caloAlphaT);
210  // if(caloAlphaT>caloAlphaTThrTurnon_) h_caloHtTurnOn_num-> Fill(caloHT);
211 
212  if(pfHT>pfHtThrTurnon_) h_pfAlphaTTurnOn_num-> Fill(pfAlphaT);
213  if(pfAlphaT>pfAlphaTThrTurnon_) h_pfHtTurnOn_num-> Fill(pfHT);
214  }
215  // if(caloHT>caloHtThrTurnon_) h_caloAlphaTTurnOn_den-> Fill(caloAlphaT);
216  // if(caloAlphaT>caloAlphaTThrTurnon_) h_caloHtTurnOn_den-> Fill(caloHT);
217 
218  if(pfHT>pfHtThrTurnon_) h_pfAlphaTTurnOn_den-> Fill(pfAlphaT);
219  if(pfAlphaT>pfAlphaTThrTurnon_) h_pfHtTurnOn_den-> Fill(pfHT);
220  }
221 }
edm::InputTag triggerFilter_
Definition: AlphaT.h:9
bool wasrun() const
Was at least one path run?
MonitorElement * h_triggerPfHt
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:135
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
float phi() const
Definition: TriggerObject.h:58
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
Definition: TriggerEvent.h:111
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
Definition: TriggerEvent.h:123
MonitorElement * h_triggerPfAlphaT_triggerPfHt
Strings::size_type size() const
Definition: TriggerNames.cc:39
float eta() const
Definition: TriggerObject.h:57
void Fill(long long x)
Single trigger physics object (e.g., an isolated muon)
Definition: TriggerObject.h:22
MonitorElement * h_pfAlphaTTurnOn_num
edm::EDGetTokenT< edm::TriggerResults > triggerResults_
const TriggerObjectCollection & getObjects() const
Definition: TriggerEvent.h:98
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
bool isValid() const
Definition: HandleBase.h:74
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:81
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:74
std::string triggerPathAuxiliaryForHadronic_
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:27
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_
float mass() const
Definition: TriggerObject.h:59
double pfAlphaTThrTurnon_
double value(void) const
Definition: AlphaT.h:53
void SUSY_HLT_alphaT::bookHistograms ( DQMStore::IBooker ibooker_,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 66 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 &)
void SUSY_HLT_alphaT::bookHistos ( DQMStore::IBooker ibooker_)
private

Definition at line 231 of file SUSY_HLT_alphaT.cc.

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

Referenced by bookHistograms().

232 {
233  ibooker_.cd();
234  ibooker_.setCurrentFolder("HLT/SUSYBSM/" + triggerPath_);
235 
236  //offline quantities
237 
238  //online quantities
239  // h_triggerCaloHt = ibooker_.book1D("triggerCaloHt", "Trigger Calo Ht; HT (GeV)", 60, 0.0, 1500.0);
240  // h_triggerCaloAlphaT = ibooker_.book1D("triggerCaloAlphaT", "Trigger Calo AlphaT; AlphaT", 80, 0., 1.0);
241  // h_triggerCaloAlphaT_triggerCaloHt = ibooker_.book2D("triggerCaloAlphaT_triggerCaloHt","Trigger Calo HT vs Trigger Calo AlphaT; HT (GeV); AlphaT", 60,0.0,1500.,80,0.,1.0);
242  h_triggerPfHt = ibooker_.book1D("triggerPfHt", "Trigger PF Ht; HT (GeV)", 60, 0.0, 1500.0);
243  h_triggerPfAlphaT = ibooker_.book1D("triggerPfAlphaT", "Trigger PF AlphaT; AlphaT", 80, 0., 1.0);
244  h_triggerPfAlphaT_triggerPfHt = ibooker_.book2D("triggerPfAlphaT_triggerPfHt","Trigger PF HT vs Trigger PF AlphaT; HT (GeV); AlphaT", 60,0.0,1500.,80,0.,1.0);
245 
246 
247  //num and den hists to be divided in harvesting step to make turn on curves
248  // h_caloAlphaTTurnOn_num = ibooker_.book1D("caloAlphaTTurnOn_num", "Calo AlphaT Turn On Numerator; AlphaT", 40, 0.0, 1.0 );
249  // h_caloAlphaTTurnOn_den = ibooker_.book1D("caloAlphaTTurnOn_den", "Calo AlphaT Turn OnDenominator; AlphaT", 40, 0.0, 1.0 );
250  // h_caloHtTurnOn_num = ibooker_.book1D("caloHtTurnOn_num", "Calo HT Turn On Numerator; HT (GeV)", 30, 0.0, 1500.0 );
251  // h_caloHtTurnOn_den = ibooker_.book1D("caloHtTurnOn_den", "Calo HT Turn On Denominator; HT (GeV)", 30, 0.0, 1500.0 );
252 
253  h_pfAlphaTTurnOn_num = ibooker_.book1D("pfAlphaTTurnOn_num", "PF AlphaT Turn On Numerator; AlphaT", 40, 0.0, 1.0 );
254  h_pfAlphaTTurnOn_den = ibooker_.book1D("pfAlphaTTurnOn_den", "PF AlphaT Turn OnDenominator; AlphaT", 40, 0.0, 1.0 );
255  h_pfHtTurnOn_num = ibooker_.book1D("pfHtTurnOn_num", "PF HT Turn On Numerator; HT (GeV)", 30, 0.0, 1500.0 );
256  h_pfHtTurnOn_den = ibooker_.book1D("pfHtTurnOn_den", "PF HT Turn On Denominator; HT (GeV)", 30, 0.0, 1500.0 );
257 
258  ibooker_.cd();
259 }
MonitorElement * h_triggerPfHt
MonitorElement * h_triggerPfAlphaT_triggerPfHt
MonitorElement * h_pfAlphaTTurnOn_num
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136
MonitorElement * h_pfHtTurnOn_den
MonitorElement * h_triggerPfAlphaT
MonitorElement * h_pfAlphaTTurnOn_den
std::string triggerPath_
MonitorElement * h_pfHtTurnOn_num
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 fHltConfig, spr::find(), HLTProcess_, HLTConfigProvider::init(), LogDebug, HLTConfigProvider::triggerNames(), and triggerPath_.

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

Definition at line 226 of file SUSY_HLT_alphaT.cc.

227 {
228  edm::LogInfo("SUSY_HLT_alphaT") << "SUSY_HLT_alphaT::endRun" << std::endl;
229 }

Member Data Documentation

double SUSY_HLT_alphaT::etaThrJet_
private

Definition at line 70 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

HLTConfigProvider SUSY_HLT_alphaT::fHltConfig
private

Definition at line 61 of file SUSY_HLT_alphaT.h.

Referenced by dqmBeginRun().

MonitorElement* SUSY_HLT_alphaT::h_pfAlphaTTurnOn_den
private

Definition at line 89 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfAlphaTTurnOn_num
private

Definition at line 88 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfHtTurnOn_den
private

Definition at line 91 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfHtTurnOn_num
private

Definition at line 90 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfAlphaT
private

Definition at line 86 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfAlphaT_triggerPfHt
private

Definition at line 87 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfHt
private

Definition at line 85 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

std::string SUSY_HLT_alphaT::HLTProcess_
private

Definition at line 63 of file SUSY_HLT_alphaT.h.

Referenced by dqmBeginRun(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::pfAlphaTThrTurnon_
private

Definition at line 71 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::pfHtThrTurnon_
private

Definition at line 72 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::ptThrJet_
private

Definition at line 69 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

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

Definition at line 55 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

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

Definition at line 58 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

edm::InputTag SUSY_HLT_alphaT::triggerFilter_
private

Definition at line 68 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

std::string SUSY_HLT_alphaT::triggerPath_
private

Definition at line 64 of file SUSY_HLT_alphaT.h.

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

std::string SUSY_HLT_alphaT::triggerPathAuxiliaryForHadronic_
private

Definition at line 66 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

std::string SUSY_HLT_alphaT::triggerPathAuxiliaryForMuon_
private

Definition at line 65 of file SUSY_HLT_alphaT.h.

edm::InputTag SUSY_HLT_alphaT::triggerPreFilter_
private

Definition at line 67 of file SUSY_HLT_alphaT.h.

Referenced by SUSY_HLT_alphaT().

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

Definition at line 57 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().