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::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 SUSY_HLT_alphaT (const edm::ParameterSet &ps)
 
virtual ~SUSY_HLT_alphaT ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 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 & itemsToGetFromEvent () 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
 
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 beginLuminosityBlock (edm::LuminosityBlock const &lumi, 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 endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &eSetup) 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::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr< dqmDetails::NoCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< dqmDetails::NoCacheglobalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

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 ( )
virtual

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

Implements edm::stream::EDAnalyzerBase.

Definition at line 81 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().

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

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 73 of file SUSY_HLT_alphaT.cc.

75 {
76  edm::LogInfo("SUSY_HLT_alphaT") << "SUSY_HLT_alphaT::beginLuminosityBlock" << std::endl;
77 }
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 240 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().

241 {
242  ibooker_.cd();
243  ibooker_.setCurrentFolder("HLT/SUSYBSM/" + triggerPath_);
244 
245  //offline quantities
246 
247  //online quantities
248  // h_triggerCaloHt = ibooker_.book1D("triggerCaloHt", "Trigger Calo Ht; HT (GeV)", 60, 0.0, 1500.0);
249  // h_triggerCaloAlphaT = ibooker_.book1D("triggerCaloAlphaT", "Trigger Calo AlphaT; AlphaT", 80, 0., 1.0);
250  // 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);
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","Trigger PF HT vs Trigger PF AlphaT; HT (GeV); AlphaT", 60,0.0,1500.,80,0.,1.0);
254 
255 
256  //num and den hists to be divided in harvesting step to make turn on curves
257  // h_caloAlphaTTurnOn_num = ibooker_.book1D("caloAlphaTTurnOn_num", "Calo AlphaT Turn On Numerator; AlphaT", 40, 0.0, 1.0 );
258  // h_caloAlphaTTurnOn_den = ibooker_.book1D("caloAlphaTTurnOn_den", "Calo AlphaT Turn OnDenominator; AlphaT", 40, 0.0, 1.0 );
259  // h_caloHtTurnOn_num = ibooker_.book1D("caloHtTurnOn_num", "Calo HT Turn On Numerator; HT (GeV)", 30, 0.0, 1500.0 );
260  // h_caloHtTurnOn_den = ibooker_.book1D("caloHtTurnOn_den", "Calo HT Turn On Denominator; HT (GeV)", 30, 0.0, 1500.0 );
261 
262  h_pfAlphaTTurnOn_num = ibooker_.book1D("pfAlphaTTurnOn_num", "PF AlphaT Turn On Numerator; AlphaT", 40, 0.0, 1.0 );
263  h_pfAlphaTTurnOn_den = ibooker_.book1D("pfAlphaTTurnOn_den", "PF AlphaT Turn OnDenominator; AlphaT", 40, 0.0, 1.0 );
264  h_pfHtTurnOn_num = ibooker_.book1D("pfHtTurnOn_num", "PF HT Turn On Numerator; HT (GeV)", 30, 0.0, 1500.0 );
265  h_pfHtTurnOn_den = ibooker_.book1D("pfHtTurnOn_den", "PF HT Turn On Denominator; HT (GeV)", 30, 0.0, 1500.0 );
266 
267  ibooker_.cd();
268 }
MonitorElement * h_triggerPfHt
void cd(void)
Definition: DQMStore.cc:269
MonitorElement * h_triggerPfAlphaT_triggerPfHt
MonitorElement * h_pfAlphaTTurnOn_num
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
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::endLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  eSetup 
)
overrideprotectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 229 of file SUSY_HLT_alphaT.cc.

230 {
231  edm::LogInfo("SUSY_HLT_alphaT") << "SUSY_HLT_alphaT::endLuminosityBlock" << std::endl;
232 }
void SUSY_HLT_alphaT::endRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
overrideprotectedvirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 235 of file SUSY_HLT_alphaT.cc.

236 {
237  edm::LogInfo("SUSY_HLT_alphaT") << "SUSY_HLT_alphaT::endRun" << std::endl;
238 }

Member Data Documentation

double SUSY_HLT_alphaT::etaThrJet_
private

Definition at line 72 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

HLTConfigProvider SUSY_HLT_alphaT::fHltConfig
private

Definition at line 63 of file SUSY_HLT_alphaT.h.

Referenced by dqmBeginRun().

MonitorElement* SUSY_HLT_alphaT::h_pfAlphaTTurnOn_den
private

Definition at line 91 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfAlphaTTurnOn_num
private

Definition at line 90 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfHtTurnOn_den
private

Definition at line 93 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfHtTurnOn_num
private

Definition at line 92 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfAlphaT
private

Definition at line 88 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfAlphaT_triggerPfHt
private

Definition at line 89 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfHt
private

Definition at line 87 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

std::string SUSY_HLT_alphaT::HLTProcess_
private

Definition at line 65 of file SUSY_HLT_alphaT.h.

Referenced by dqmBeginRun(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::pfAlphaTThrTurnon_
private

Definition at line 73 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::pfHtThrTurnon_
private

Definition at line 74 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::ptThrJet_
private

Definition at line 71 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 57 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 60 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

edm::InputTag SUSY_HLT_alphaT::triggerFilter_
private

Definition at line 70 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

std::string SUSY_HLT_alphaT::triggerPath_
private

Definition at line 66 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 68 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

std::string SUSY_HLT_alphaT::triggerPathAuxiliaryForMuon_
private

Definition at line 67 of file SUSY_HLT_alphaT.h.

edm::InputTag SUSY_HLT_alphaT::triggerPreFilter_
private

Definition at line 69 of file SUSY_HLT_alphaT.h.

Referenced by SUSY_HLT_alphaT().

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

Definition at line 59 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().