test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Classes

class  PathInfo
 
class  PathInfoCollection
 

Public Member Functions

 BTVHLTOfflineSource (const edm::ParameterSet &)
 
 ~BTVHLTOfflineSource ()
 
- 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 ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

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

Private Attributes

edm::Handle
< reco::JetTagCollection
csvCaloTags
 
edm::EDGetTokenT
< reco::JetTagCollection
csvCaloTagsToken_
 
edm::Handle
< reco::JetTagCollection
csvPfTags
 
edm::EDGetTokenT
< reco::JetTagCollection
csvPfTagsToken_
 
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::JetTagCollection
offlineCSVTokenCalo_
 
edm::EDGetTokenT
< reco::JetTagCollection
offlineCSVTokenPF_
 
edm::EDGetTokenT< std::vector
< reco::Vertex > > 
offlinePVToken_
 
std::string pathname_
 
std::string processname_
 
edm::TriggerNames triggerNames_
 
edm::Handle
< trigger::TriggerEvent
triggerObj_
 
edm::Handle< edm::TriggerResultstriggerResults_
 
edm::EDGetTokenT
< edm::TriggerResults
triggerResultsFUToken
 
edm::InputTag triggerResultsLabel_
 
edm::EDGetTokenT
< edm::TriggerResults
triggerResultsToken
 
edm::EDGetTokenT
< trigger::TriggerEvent
triggerSummaryFUToken
 
edm::InputTag triggerSummaryLabel_
 
edm::EDGetTokenT
< trigger::TriggerEvent
triggerSummaryToken
 
bool verbose_
 

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, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
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::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (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)
 
- 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)
 

Detailed Description

Definition at line 47 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(), HLT_25ns10e33_v2_cff::InputTag, edm::InputTag::instance(), edm::InputTag::label(), LogDebug, mergeAndRegister::paths, and AlCaHLTBitMon_QueryRunRegistry::string.

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(std::vector<edm::ParameterSet>::iterator pathconf = paths.begin() ; pathconf != paths.end(); pathconf++) {
62  custompathnamepairs_.push_back(make_pair(
63  pathconf->getParameter<std::string>("pathname"),
64  pathconf->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 ( )

Definition at line 68 of file BTVHLTOfflineSource.cc.

69 {
70 }

Member Function Documentation

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

Implements edm::stream::EDAnalyzerBase.

Definition at line 102 of file BTVHLTOfflineSource.cc.

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

103 {
105  if(!triggerResults_.isValid()) {
107  if(!triggerResults_.isValid()) {
108  edm::LogInfo("BTVHLTOfflineSource") << "TriggerResults not found, "
109  "skipping event";
110  return;
111  }
112  }
113 
115 
117  if(!triggerObj_.isValid()) {
119  if(!triggerObj_.isValid()) {
120  edm::LogInfo("BTVHLTOfflineSource") << "TriggerEvent not found, "
121  "skipping event";
122  return;
123  }
124  }
125 
128 
129  Handle<reco::VertexCollection> VertexHandler;
130 
131  Handle<reco::JetTagCollection> offlineJetTagHandlerPF;
132  iEvent.getByToken(offlineCSVTokenPF_, offlineJetTagHandlerPF);
133 
134  Handle<reco::JetTagCollection> offlineJetTagHandlerCalo;
135  iEvent.getByToken(offlineCSVTokenCalo_, offlineJetTagHandlerCalo);
136 
137  Handle<reco::VertexCollection> offlineVertexHandler;
138  iEvent.getByToken(offlinePVToken_, offlineVertexHandler);
139 
140  if(verbose_ && iEvent.id().event()%10000==0)
141  cout<<"Run = "<<iEvent.id().run()<<", LS = "<<iEvent.luminosityBlock()<<", Event = "<<iEvent.id().event()<<endl;
142 
143  if(!triggerResults_.isValid()) return;
144 
145  for(PathInfoCollection::iterator v = hltPathsAll_.begin(); v!= hltPathsAll_.end(); ++v ){
146  unsigned index = triggerNames_.triggerIndex(v->getPath());
147  if (index < triggerNames_.size() ){
148  float DR = 9999.;
149  if (csvPfTags.isValid() && v->getTriggerType() == "PF")
150  {
151  auto iter = csvPfTags->begin();
152 
153  float CSV_online = iter->second;
154  if (CSV_online<0) CSV_online = -0.05;
155 
156  v->getMEhisto_CSV()->Fill(CSV_online);
157  v->getMEhisto_Pt()->Fill(iter->first->pt());
158  v->getMEhisto_Eta()->Fill(iter->first->eta());
159 
160  DR = 9999.;
161  if(offlineJetTagHandlerPF.isValid()){
162  for ( reco::JetTagCollection::const_iterator iterO = offlineJetTagHandlerPF->begin(); iterO != offlineJetTagHandlerPF->end(); iterO++ ){
163  float CSV_offline = iterO->second;
164  if (CSV_offline<0) CSV_offline = -0.05;
165  DR = reco::deltaR(iterO->first->eta(),iterO->first->phi(),iter->first->eta(),iter->first->phi());
166  if (DR<0.3) {
167  v->getMEhisto_CSV_RECOvsHLT()->Fill(CSV_offline,CSV_online); continue;
168  }
169  }
170  }
171 
172  iEvent.getByToken(hltPFPVToken_, VertexHandler);
173  if (VertexHandler.isValid())
174  {
175  v->getMEhisto_PVz()->Fill(VertexHandler->begin()->z());
176  if (offlineVertexHandler.isValid()) v->getMEhisto_PVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
177  }
178  }
179 
180  if (csvCaloTags.isValid() && v->getTriggerType() == "Calo" && !csvCaloTags->empty())
181  {
182  auto iter = csvCaloTags->begin();
183 
184  float CSV_online = iter->second;
185  if (CSV_online<0) CSV_online = -0.05;
186 
187  v->getMEhisto_CSV()->Fill(CSV_online);
188  v->getMEhisto_Pt()->Fill(iter->first->pt());
189  v->getMEhisto_Eta()->Fill(iter->first->eta());
190 
191  DR = 9999.;
192  if(offlineJetTagHandlerCalo.isValid()){
193  for ( reco::JetTagCollection::const_iterator iterO = offlineJetTagHandlerCalo->begin(); iterO != offlineJetTagHandlerCalo->end(); iterO++ )
194  {
195  float CSV_offline = iterO->second;
196  if (CSV_offline<0) CSV_offline = -0.05;
197  DR = reco::deltaR(iterO->first->eta(),iterO->first->phi(),iter->first->eta(),iter->first->phi());
198  if (DR<0.3)
199  {
200  v->getMEhisto_CSV_RECOvsHLT()->Fill(CSV_offline,CSV_online); continue;
201  }
202  }
203  }
204 
205  iEvent.getByToken(hltFastPVToken_, VertexHandler);
206  if (VertexHandler.isValid())
207  {
208  v->getMEhisto_PVz()->Fill(VertexHandler->begin()->z());
209  if (offlineVertexHandler.isValid()) v->getMEhisto_fastPVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
210  }
211 
212  iEvent.getByToken(hltCaloPVToken_, VertexHandler);
213  if (VertexHandler.isValid())
214  {
215  v->getMEhisto_fastPVz()->Fill(VertexHandler->begin()->z());
216  if (offlineVertexHandler.isValid()) v->getMEhisto_PVz_HLTMinusRECO()->Fill(VertexHandler->begin()->z()-offlineVertexHandler->begin()->z());
217  }
218 
219  }
220 
221 
222  }
223  }
224 
225 }
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_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
Definition: Event.cc:215
transient_vector_type::const_iterator const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
edm::Handle< trigger::TriggerEvent > triggerObj_
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:62
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:75
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:59
tuple cout
Definition: gather_cfg.py:145
edm::EDGetTokenT< reco::JetTagCollection > csvPfTagsToken_
edm::TriggerNames triggerNames_
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 228 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, indexGen::title, and findQualityFiles::v.

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

Reimplemented from DQMEDAnalyzer.

Definition at line 72 of file BTVHLTOfflineSource.cc.

References i, LogDebug, AlCaHLTBitMon_QueryRunRegistry::string, and HLT_25ns10e33_v2_cff::triggerType.

73 {
74  bool changed(true);
75  if (!hltConfig_.init(run, c, processname_, changed)) {
76  LogDebug("BTVHLTOfflineSource") << "HLTConfigProvider failed to initialize.";
77  }
78 
79  const unsigned int numberOfPaths(hltConfig_.size());
80  for(unsigned int i=0; i!=numberOfPaths; ++i){
82  filtername_ = "dummy";
83  unsigned int usedPrescale = 1;
84  unsigned int objectType = 0;
86  bool trigSelected = false;
87 
88  for (std::vector<std::pair<std::string, std::string> >::iterator custompathnamepair = custompathnamepairs_.begin();
89  custompathnamepair != custompathnamepairs_.end(); ++custompathnamepair){
90  if(pathname_.find(custompathnamepair->first)!=std::string::npos) { trigSelected = true; triggerType = custompathnamepair->second;}
91  }
92 
93  if (!trigSelected) continue;
94 
95  hltPathsAll_.push_back(PathInfo(usedPrescale, pathname_, "dummy", processname_, objectType, triggerType));
96  }
97 
98 
99 }
#define LogDebug(id)
unsigned int size() const
number of trigger paths in trigger table
int i
Definition: DBlmapReader.cc:9
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 83 of file BTVHLTOfflineSource.h.

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

Definition at line 81 of file BTVHLTOfflineSource.h.

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

Definition at line 84 of file BTVHLTOfflineSource.h.

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

Definition at line 82 of file BTVHLTOfflineSource.h.

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

Definition at line 63 of file BTVHLTOfflineSource.h.

std::string BTVHLTOfflineSource::dirname_
private

Definition at line 58 of file BTVHLTOfflineSource.h.

std::string BTVHLTOfflineSource::filtername_
private

Definition at line 61 of file BTVHLTOfflineSource.h.

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

Definition at line 73 of file BTVHLTOfflineSource.h.

HLTConfigProvider BTVHLTOfflineSource::hltConfig_
private

Definition at line 86 of file BTVHLTOfflineSource.h.

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

Definition at line 71 of file BTVHLTOfflineSource.h.

PathInfoCollection BTVHLTOfflineSource::hltPathsAll_
private

Definition at line 194 of file BTVHLTOfflineSource.h.

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

Definition at line 72 of file BTVHLTOfflineSource.h.

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

Definition at line 69 of file BTVHLTOfflineSource.h.

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

Definition at line 68 of file BTVHLTOfflineSource.h.

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

Definition at line 74 of file BTVHLTOfflineSource.h.

std::string BTVHLTOfflineSource::pathname_
private

Definition at line 60 of file BTVHLTOfflineSource.h.

std::string BTVHLTOfflineSource::processname_
private

Definition at line 59 of file BTVHLTOfflineSource.h.

edm::TriggerNames BTVHLTOfflineSource::triggerNames_
private

Definition at line 88 of file BTVHLTOfflineSource.h.

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

Definition at line 89 of file BTVHLTOfflineSource.h.

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

Definition at line 87 of file BTVHLTOfflineSource.h.

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

Definition at line 77 of file BTVHLTOfflineSource.h.

edm::InputTag BTVHLTOfflineSource::triggerResultsLabel_
private

Definition at line 66 of file BTVHLTOfflineSource.h.

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

Definition at line 76 of file BTVHLTOfflineSource.h.

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

Definition at line 79 of file BTVHLTOfflineSource.h.

edm::InputTag BTVHLTOfflineSource::triggerSummaryLabel_
private

Definition at line 65 of file BTVHLTOfflineSource.h.

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

Definition at line 78 of file BTVHLTOfflineSource.h.

bool BTVHLTOfflineSource::verbose_
private

Definition at line 57 of file BTVHLTOfflineSource.h.