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

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
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 33 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 73 of file SUSY_HLT_alphaT.cc.

References edm::HLTGlobalStatus::accept(), trigger::TriggerObject::eta(), etaThrJet_, dqm::impl::MonitorElement::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, HLTBitAnalyser_cfi::hltresults, edm::HandleBase::isValid(), dqmiolumiharvest::j, relativeConstraints::keys, trigger::TriggerObject::mass(), pfAlphaTThrTurnon_, pfHtThrTurnon_, ExoticaDQM_cfi::pfJetCollection, 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(), triggerMatchMonitor_cfi::triggerObjects, triggerPath_, triggerPathAuxiliaryForHadronic_, triggerResults_, HLTMuonOfflineAnalyzer_cfi::triggerSummary, trigNames, AlphaT::value(), and edm::HLTGlobalStatus::wasrun().

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  //-------------------------------
98  e.getByToken(thePfJetCollection_, pfJetCollection);
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) {
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 
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
bool wasrun() const
Was at least one path run?
MonitorElement * h_triggerPfHt
trigger::size_type sizeFilters() const
Definition: TriggerEvent.h:146
edm::EDGetTokenT< trigger::TriggerEvent > theTrigSummary_
float phi() const
Definition: TriggerObject.h:54
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_triggerPfAlphaT_triggerPfHt
Strings::size_type size() const
Definition: TriggerNames.cc:31
float eta() const
Definition: TriggerObject.h:53
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_
const TriggerObjectCollection & getObjects() const
Definition: TriggerEvent.h:101
bool isValid() const
Definition: HandleBase.h:70
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
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:57
std::string triggerPathAuxiliaryForHadronic_
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:22
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:55
double pfAlphaTThrTurnon_
double value(void) const
Definition: AlphaT.h:40
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 &)
void SUSY_HLT_alphaT::bookHistos ( DQMStore::IBooker ibooker_)
private

Definition at line 242 of file SUSY_HLT_alphaT.cc.

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

Referenced by bookHistograms().

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

Reimplemented from DQMEDAnalyzer.

Definition at line 238 of file SUSY_HLT_alphaT.cc.

238  {
239  edm::LogInfo("SUSY_HLT_alphaT") << "SUSY_HLT_alphaT::endRun" << std::endl;
240 }

Member Data Documentation

double SUSY_HLT_alphaT::etaThrJet_
private

Definition at line 65 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

HLTConfigProvider SUSY_HLT_alphaT::fHltConfig
private

Definition at line 56 of file SUSY_HLT_alphaT.h.

Referenced by dqmBeginRun().

MonitorElement* SUSY_HLT_alphaT::h_pfAlphaTTurnOn_den
private

Definition at line 84 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfAlphaTTurnOn_num
private

Definition at line 83 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfHtTurnOn_den
private

Definition at line 86 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_pfHtTurnOn_num
private

Definition at line 85 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfAlphaT
private

Definition at line 81 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfAlphaT_triggerPfHt
private

Definition at line 82 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

MonitorElement* SUSY_HLT_alphaT::h_triggerPfHt
private

Definition at line 80 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and bookHistos().

std::string SUSY_HLT_alphaT::HLTProcess_
private

Definition at line 58 of file SUSY_HLT_alphaT.h.

Referenced by dqmBeginRun(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::pfAlphaTThrTurnon_
private

Definition at line 66 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::pfHtThrTurnon_
private

Definition at line 67 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

double SUSY_HLT_alphaT::ptThrJet_
private

Definition at line 64 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 51 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 54 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

edm::InputTag SUSY_HLT_alphaT::triggerFilter_
private

Definition at line 63 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().

std::string SUSY_HLT_alphaT::triggerPath_
private

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

Referenced by analyze(), and SUSY_HLT_alphaT().

std::string SUSY_HLT_alphaT::triggerPathAuxiliaryForMuon_
private

Definition at line 60 of file SUSY_HLT_alphaT.h.

edm::InputTag SUSY_HLT_alphaT::triggerPreFilter_
private

Definition at line 62 of file SUSY_HLT_alphaT.h.

Referenced by SUSY_HLT_alphaT().

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

Definition at line 53 of file SUSY_HLT_alphaT.h.

Referenced by analyze(), and SUSY_HLT_alphaT().