CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
BTVHLTOfflineSource Class Reference

#include <BTVHLTOfflineSource.h>

Inheritance diagram for BTVHLTOfflineSource:
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

Classes

class  PathInfo
 
class  PathInfoCollection
 

Public Member Functions

 BTVHLTOfflineSource (const edm::ParameterSet &)
 
 ~BTVHLTOfflineSource () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
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 () 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)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &run, edm::EventSetup const &c) override
 
void dqmBeginRun (edm::Run const &run, edm::EventSetup const &c) override
 

Private Attributes

edm::Handle< reco::JetTagCollectioncsvCaloTags
 
edm::EDGetTokenT< reco::JetTagCollectioncsvCaloTagsToken_
 
edm::Handle< reco::JetTagCollectioncsvPfTags
 
edm::EDGetTokenT< reco::JetTagCollectioncsvPfTagsToken_
 
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
 
std::string dirname_
 
std::string filtername_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > hltCaloPVToken_
 
HLTConfigProvider hltConfig_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > hltFastPVToken_
 
PathInfoCollection hltPathsAll_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > hltPFPVToken_
 
edm::EDGetTokenT< reco::JetTagCollectionofflineCSVTokenCalo_
 
edm::EDGetTokenT< reco::JetTagCollectionofflineCSVTokenPF_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > offlinePVToken_
 
std::string pathname_
 
std::string processname_
 
edm::TriggerNames triggerNames_
 
edm::Handle< trigger::TriggerEventtriggerObj_
 
edm::Handle< edm::TriggerResultstriggerResults_
 
edm::EDGetTokenT< edm::TriggerResultstriggerResultsFUToken
 
edm::InputTag triggerResultsLabel_
 
edm::EDGetTokenT< edm::TriggerResultstriggerResultsToken
 
edm::EDGetTokenT< trigger::TriggerEventtriggerSummaryFUToken
 
edm::InputTag triggerSummaryLabel_
 
edm::EDGetTokenT< trigger::TriggerEventtriggerSummaryToken
 
bool verbose_
 

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 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)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 42 of file BTVHLTOfflineSource.h.

Constructor & Destructor Documentation

BTVHLTOfflineSource::BTVHLTOfflineSource ( const edm::ParameterSet iConfig)
explicit

Definition at line 38 of file BTVHLTOfflineSource.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), edm::InputTag::instance(), edm::InputTag::label(), LogDebug, callgraph::path, AlCaHLTBitMon_QueryRunRegistry::string, and ~BTVHLTOfflineSource().

39 {
40  LogDebug("BTVHLTOfflineSource") << "constructor....";
41 
42  dirname_ = iConfig.getUntrackedParameter("dirname",std::string("HLT/BTV/"));
43  processname_ = iConfig.getParameter<std::string>("processname");
44  verbose_ = iConfig.getUntrackedParameter< bool >("verbose", false);
45  triggerSummaryLabel_ = iConfig.getParameter<edm::InputTag>("triggerSummaryLabel");
46  triggerResultsLabel_ = iConfig.getParameter<edm::InputTag>("triggerResultsLabel");
47  triggerSummaryToken = consumes <trigger::TriggerEvent> (triggerSummaryLabel_);
48  triggerResultsToken = consumes <edm::TriggerResults> (triggerResultsLabel_);
49  triggerSummaryFUToken = consumes <trigger::TriggerEvent> (edm::InputTag(triggerSummaryLabel_.label(),triggerSummaryLabel_.instance(),std::string("FU")));
50  triggerResultsFUToken = consumes <edm::TriggerResults> (edm::InputTag(triggerResultsLabel_.label(),triggerResultsLabel_.instance(),std::string("FU")));
51  csvCaloTagsToken_ = consumes<reco::JetTagCollection> (edm::InputTag("hltCombinedSecondaryVertexBJetTagsCalo"));
52  csvPfTagsToken_ = consumes<reco::JetTagCollection> (edm::InputTag("hltCombinedSecondaryVertexBJetTagsPF"));
53  offlineCSVTokenPF_ = consumes<reco::JetTagCollection> (iConfig.getParameter<edm::InputTag>("offlineCSVLabelPF"));
54  offlineCSVTokenCalo_ = consumes<reco::JetTagCollection> (iConfig.getParameter<edm::InputTag>("offlineCSVLabelCalo"));
55  hltFastPVToken_ = consumes<std::vector<reco::Vertex> > (iConfig.getParameter<edm::InputTag>("hltFastPVLabel"));
56  hltPFPVToken_ = consumes<std::vector<reco::Vertex> > (iConfig.getParameter<edm::InputTag>("hltPFPVLabel"));
57  hltCaloPVToken_ = consumes<std::vector<reco::Vertex> > (iConfig.getParameter<edm::InputTag>("hltCaloPVLabel"));
58  offlinePVToken_ = consumes<std::vector<reco::Vertex> > (iConfig.getParameter<edm::InputTag>("offlinePVLabel"));
59 
60  std::vector<edm::ParameterSet> paths = iConfig.getParameter<std::vector<edm::ParameterSet> >("pathPairs");
61  for(auto & path : paths) {
62  custompathnamepairs_.push_back(make_pair(
63  path.getParameter<std::string>("pathname"),
64  path.getParameter<std::string>("pathtype")
65  ));}
66 }
#define LogDebug(id)
edm::EDGetTokenT< reco::JetTagCollection > offlineCSVTokenCalo_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::JetTagCollection > offlineCSVTokenPF_
edm::EDGetTokenT< std::vector< reco::Vertex > > hltCaloPVToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > offlinePVToken_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryFUToken
edm::InputTag triggerResultsLabel_
edm::InputTag triggerSummaryLabel_
edm::EDGetTokenT< reco::JetTagCollection > csvCaloTagsToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > hltFastPVToken_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken
edm::EDGetTokenT< std::vector< reco::Vertex > > hltPFPVToken_
std::string const & label() const
Definition: InputTag.h:36
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryToken
edm::EDGetTokenT< reco::JetTagCollection > csvPfTagsToken_
std::string const & instance() const
Definition: InputTag.h:37
edm::EDGetTokenT< edm::TriggerResults > triggerResultsFUToken
BTVHLTOfflineSource::~BTVHLTOfflineSource ( )
overridedefault

Referenced by BTVHLTOfflineSource().

Member Function Documentation

void BTVHLTOfflineSource::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 99 of file BTVHLTOfflineSource.cc.

References gather_cfg::cout, reco::deltaR(), edm::EventID::event(), edm::Event::getByToken(), edm::EventBase::id(), edm::HandleBase::isValid(), edm::EventBase::luminosityBlock(), edm::EventID::run(), edm::Event::triggerNames(), and findQualityFiles::v.

100 {
102  if(!triggerResults_.isValid()) {
104  if(!triggerResults_.isValid()) {
105  edm::LogInfo("BTVHLTOfflineSource") << "TriggerResults not found, "
106  "skipping event";
107  return;
108  }
109  }
110 
112 
114  if(!triggerObj_.isValid()) {
116  if(!triggerObj_.isValid()) {
117  edm::LogInfo("BTVHLTOfflineSource") << "TriggerEvent not found, "
118  "skipping event";
119  return;
120  }
121  }
122 
125 
126  Handle<reco::VertexCollection> VertexHandler;
127 
128  Handle<reco::JetTagCollection> offlineJetTagHandlerPF;
129  iEvent.getByToken(offlineCSVTokenPF_, offlineJetTagHandlerPF);
130 
131  Handle<reco::JetTagCollection> offlineJetTagHandlerCalo;
132  iEvent.getByToken(offlineCSVTokenCalo_, offlineJetTagHandlerCalo);
133 
134  Handle<reco::VertexCollection> offlineVertexHandler;
135  iEvent.getByToken(offlinePVToken_, offlineVertexHandler);
136 
137  if(verbose_ && iEvent.id().event()%10000==0)
138  cout<<"Run = "<<iEvent.id().run()<<", LS = "<<iEvent.luminosityBlock()<<", Event = "<<iEvent.id().event()<<endl;
139 
140  if(!triggerResults_.isValid()) return;
141 
142  for(auto & v : hltPathsAll_){
143  unsigned index = triggerNames_.triggerIndex(v.getPath());
144  if (index < triggerNames_.size() ){
145  float DR = 9999.;
146  if (csvPfTags.isValid() && v.getTriggerType() == "PF")
147  {
148  auto iter = csvPfTags->begin();
149 
150  float CSV_online = iter->second;
151  if (CSV_online<0) CSV_online = -0.05;
152 
153  v.getMEhisto_CSV()->Fill(CSV_online);
154  v.getMEhisto_Pt()->Fill(iter->first->pt());
155  v.getMEhisto_Eta()->Fill(iter->first->eta());
156 
157  DR = 9999.;
158  if(offlineJetTagHandlerPF.isValid()){
159  for (auto const & iterO : *offlineJetTagHandlerPF){
160  float CSV_offline = iterO.second;
161  if (CSV_offline<0) CSV_offline = -0.05;
162  DR = reco::deltaR(iterO.first->eta(),iterO.first->phi(),iter->first->eta(),iter->first->phi());
163  if (DR<0.3) {
164  v.getMEhisto_CSV_RECOvsHLT()->Fill(CSV_offline,CSV_online); continue;
165  }
166  }
167  }
168 
169  iEvent.getByToken(hltPFPVToken_, VertexHandler);
170  if (VertexHandler.isValid())
171  {
172  v.getMEhisto_PVz()->Fill(VertexHandler->begin()->z());
173  if (offlineVertexHandler.isValid()) v.getMEhisto_PVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
174  }
175  }
176 
177  if (csvCaloTags.isValid() && v.getTriggerType() == "Calo" && !csvCaloTags->empty())
178  {
179  auto iter = csvCaloTags->begin();
180 
181  float CSV_online = iter->second;
182  if (CSV_online<0) CSV_online = -0.05;
183 
184  v.getMEhisto_CSV()->Fill(CSV_online);
185  v.getMEhisto_Pt()->Fill(iter->first->pt());
186  v.getMEhisto_Eta()->Fill(iter->first->eta());
187 
188  DR = 9999.;
189  if(offlineJetTagHandlerCalo.isValid()){
190  for (auto const & iterO : *offlineJetTagHandlerCalo)
191  {
192  float CSV_offline = iterO.second;
193  if (CSV_offline<0) CSV_offline = -0.05;
194  DR = reco::deltaR(iterO.first->eta(),iterO.first->phi(),iter->first->eta(),iter->first->phi());
195  if (DR<0.3)
196  {
197  v.getMEhisto_CSV_RECOvsHLT()->Fill(CSV_offline,CSV_online); continue;
198  }
199  }
200  }
201 
202  iEvent.getByToken(hltFastPVToken_, VertexHandler);
203  if (VertexHandler.isValid())
204  {
205  v.getMEhisto_PVz()->Fill(VertexHandler->begin()->z());
206  if (offlineVertexHandler.isValid()) v.getMEhisto_fastPVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
207  }
208 
209  iEvent.getByToken(hltCaloPVToken_, VertexHandler);
210  if (VertexHandler.isValid())
211  {
212  v.getMEhisto_fastPVz()->Fill(VertexHandler->begin()->z());
213  if (offlineVertexHandler.isValid()) v.getMEhisto_PVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
214  }
215 
216  }
217 
218 
219  }
220  }
221 
222 }
RunNumber_t run() const
Definition: EventID.h:39
edm::EDGetTokenT< reco::JetTagCollection > offlineCSVTokenCalo_
EventNumber_t event() const
Definition: EventID.h:41
edm::EDGetTokenT< reco::JetTagCollection > offlineCSVTokenPF_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:519
edm::Handle< trigger::TriggerEvent > triggerObj_
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:63
edm::EDGetTokenT< std::vector< reco::Vertex > > hltCaloPVToken_
edm::Handle< reco::JetTagCollection > csvPfTags
Strings::size_type size() const
Definition: TriggerNames.cc:39
edm::EDGetTokenT< std::vector< reco::Vertex > > offlinePVToken_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryFUToken
edm::Handle< reco::JetTagCollection > csvCaloTags
edm::Handle< edm::TriggerResults > triggerResults_
unsigned int triggerIndex(std::string const &name) const
Definition: TriggerNames.cc:32
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:28
PathInfoCollection hltPathsAll_
edm::EDGetTokenT< reco::JetTagCollection > csvCaloTagsToken_
bool isValid() const
Definition: HandleBase.h:74
edm::EDGetTokenT< std::vector< reco::Vertex > > hltFastPVToken_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken
edm::EDGetTokenT< std::vector< reco::Vertex > > hltPFPVToken_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryToken
edm::EventID id() const
Definition: EventBase.h:60
edm::EDGetTokenT< reco::JetTagCollection > csvPfTagsToken_
const_iterator begin() const
edm::TriggerNames triggerNames_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
Definition: Event.cc:301
edm::EDGetTokenT< edm::TriggerResults > triggerResultsFUToken
void BTVHLTOfflineSource::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  run,
edm::EventSetup const &  c 
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 225 of file BTVHLTOfflineSource.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), reco::tau::disc::Eta(), reco::tau::disc::Pt(), HLTConfigProvider::removeVersion(), DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, fftjetcommon_cfi::title, and findQualityFiles::v.

226 {
227  iBooker.setCurrentFolder(dirname_);
228  for(auto & v : hltPathsAll_){
229  //
230  std::string trgPathName = HLTConfigProvider::removeVersion(v.getPath());
231  std::string subdirName = dirname_ +"/"+ trgPathName;
232  std::string trigPath = "("+trgPathName+")";
233  iBooker.setCurrentFolder(subdirName);
234 
235  std::string labelname("HLT");
236  std::string histoname(labelname+"");
237  std::string title(labelname+"");
238 
239  histoname = labelname+"_CSV";
240  title = labelname+"_CSV "+trigPath;
241  MonitorElement * CSV = iBooker.book1D(histoname.c_str(),title.c_str(),110,-0.1,1);
242 
243  histoname = labelname+"_Pt";
244  title = labelname+"_Pt "+trigPath;
245  MonitorElement * Pt = iBooker.book1D(histoname.c_str(),title.c_str(),100,0,400);
246 
247  histoname = labelname+"_Eta";
248  title = labelname+"_Eta "+trigPath;
249  MonitorElement * Eta = iBooker.book1D(histoname.c_str(),title.c_str(),60,-3.0,3.0);
250 
251  histoname = "RECOvsHLT_CSV";
252  title = "offline CSV vs online CSV "+trigPath;
253  MonitorElement * CSV_RECOvsHLT = iBooker.book2D(histoname.c_str(),title.c_str(),110,-0.1,1,110,-0.1,1);
254 
255  histoname = labelname+"_PVz";
256  title = "online z(PV) "+trigPath;
257  MonitorElement * PVz = iBooker.book1D(histoname.c_str(),title.c_str(),80,-20,20);
258 
259  histoname = labelname+"_fastPVz";
260  title = "online z(fastPV) "+trigPath;
261  MonitorElement * fastPVz = iBooker.book1D(histoname.c_str(),title.c_str(),80,-20,20);
262 
263  histoname = "HLTMinusRECO_PVz";
264  title = "online z(PV) - offline z(PV) "+trigPath;
265  MonitorElement * PVz_HLTMinusRECO = iBooker.book1D(histoname.c_str(),title.c_str(),200,-0.5,0.5);
266 
267  histoname = "HLTMinusRECO_fastPVz";
268  title = "online z(fastPV) - offline z(PV) "+trigPath;
269  MonitorElement * fastPVz_HLTMinusRECO = iBooker.book1D(histoname.c_str(),title.c_str(),100,-2,2);
270 
271  v.setHistos(CSV,Pt,Eta,CSV_RECOvsHLT,PVz,fastPVz,PVz_HLTMinusRECO,fastPVz_HLTMinusRECO);
272  }
273 }
static const std::string removeVersion(const std::string &trigger)
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
PathInfoCollection hltPathsAll_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136
void BTVHLTOfflineSource::dqmBeginRun ( edm::Run const &  run,
edm::EventSetup const &  c 
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 70 of file BTVHLTOfflineSource.cc.

References mps_fire::i, LogDebug, and AlCaHLTBitMon_QueryRunRegistry::string.

71 {
72  bool changed(true);
73  if (!hltConfig_.init(run, c, processname_, changed)) {
74  LogDebug("BTVHLTOfflineSource") << "HLTConfigProvider failed to initialize.";
75  }
76 
77  const unsigned int numberOfPaths(hltConfig_.size());
78  for(unsigned int i=0; i!=numberOfPaths; ++i){
80  filtername_ = "dummy";
81  unsigned int usedPrescale = 1;
82  unsigned int objectType = 0;
83  std::string triggerType = "";
84  bool trigSelected = false;
85 
86  for (auto & custompathnamepair : custompathnamepairs_){
87  if(pathname_.find(custompathnamepair.first)!=std::string::npos) { trigSelected = true; triggerType = custompathnamepair.second;}
88  }
89 
90  if (!trigSelected) continue;
91 
92  hltPathsAll_.push_back(PathInfo(usedPrescale, pathname_, "dummy", processname_, objectType, triggerType));
93  }
94 
95 
96 }
#define LogDebug(id)
unsigned int size() const
number of trigger paths in trigger table
const std::string & triggerName(unsigned int triggerIndex) const
PathInfoCollection hltPathsAll_
HLTConfigProvider hltConfig_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
std::vector< std::pair< std::string, std::string > > custompathnamepairs_

Member Data Documentation

edm::Handle<reco::JetTagCollection> BTVHLTOfflineSource::csvCaloTags
private

Definition at line 78 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<reco::JetTagCollection> BTVHLTOfflineSource::csvCaloTagsToken_
private

Definition at line 76 of file BTVHLTOfflineSource.h.

edm::Handle<reco::JetTagCollection> BTVHLTOfflineSource::csvPfTags
private

Definition at line 79 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<reco::JetTagCollection> BTVHLTOfflineSource::csvPfTagsToken_
private

Definition at line 77 of file BTVHLTOfflineSource.h.

std::vector<std::pair<std::string, std::string> > BTVHLTOfflineSource::custompathnamepairs_
private

Definition at line 58 of file BTVHLTOfflineSource.h.

std::string BTVHLTOfflineSource::dirname_
private

Definition at line 53 of file BTVHLTOfflineSource.h.

std::string BTVHLTOfflineSource::filtername_
private

Definition at line 56 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<std::vector<reco::Vertex> > BTVHLTOfflineSource::hltCaloPVToken_
private

Definition at line 68 of file BTVHLTOfflineSource.h.

HLTConfigProvider BTVHLTOfflineSource::hltConfig_
private

Definition at line 81 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<std::vector<reco::Vertex> > BTVHLTOfflineSource::hltFastPVToken_
private

Definition at line 66 of file BTVHLTOfflineSource.h.

PathInfoCollection BTVHLTOfflineSource::hltPathsAll_
private

Definition at line 191 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<std::vector<reco::Vertex> > BTVHLTOfflineSource::hltPFPVToken_
private

Definition at line 67 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<reco::JetTagCollection> BTVHLTOfflineSource::offlineCSVTokenCalo_
private

Definition at line 64 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<reco::JetTagCollection> BTVHLTOfflineSource::offlineCSVTokenPF_
private

Definition at line 63 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<std::vector<reco::Vertex> > BTVHLTOfflineSource::offlinePVToken_
private

Definition at line 69 of file BTVHLTOfflineSource.h.

std::string BTVHLTOfflineSource::pathname_
private

Definition at line 55 of file BTVHLTOfflineSource.h.

std::string BTVHLTOfflineSource::processname_
private

Definition at line 54 of file BTVHLTOfflineSource.h.

edm::TriggerNames BTVHLTOfflineSource::triggerNames_
private

Definition at line 83 of file BTVHLTOfflineSource.h.

edm::Handle<trigger::TriggerEvent> BTVHLTOfflineSource::triggerObj_
private

Definition at line 84 of file BTVHLTOfflineSource.h.

edm::Handle<edm::TriggerResults> BTVHLTOfflineSource::triggerResults_
private

Definition at line 82 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<edm::TriggerResults> BTVHLTOfflineSource::triggerResultsFUToken
private

Definition at line 72 of file BTVHLTOfflineSource.h.

edm::InputTag BTVHLTOfflineSource::triggerResultsLabel_
private

Definition at line 61 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<edm::TriggerResults> BTVHLTOfflineSource::triggerResultsToken
private

Definition at line 71 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<trigger::TriggerEvent> BTVHLTOfflineSource::triggerSummaryFUToken
private

Definition at line 74 of file BTVHLTOfflineSource.h.

edm::InputTag BTVHLTOfflineSource::triggerSummaryLabel_
private

Definition at line 60 of file BTVHLTOfflineSource.h.

edm::EDGetTokenT<trigger::TriggerEvent> BTVHLTOfflineSource::triggerSummaryToken
private

Definition at line 73 of file BTVHLTOfflineSource.h.

bool BTVHLTOfflineSource::verbose_
private

Definition at line 52 of file BTVHLTOfflineSource.h.