CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
HLTPrescaleRecorder Class Reference

#include <HLTPrescaleRecorder.h>

Inheritance diagram for HLTPrescaleRecorder:
edm::one::EDProducer< edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::one::WatchRuns, edm::one::WatchLuminosityBlocks > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void beginLuminosityBlock (edm::LuminosityBlock const &iLumi, const edm::EventSetup &iSetup) final
 
void beginRun (edm::Run const &iRun, const edm::EventSetup &iSetup) final
 
void endLuminosityBlock (edm::LuminosityBlock const &iLumi, const edm::EventSetup &iSetup) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup) final
 
void endRun (edm::Run const &iRun, const edm::EventSetup &iSetup) final
 
void endRunProduce (edm::Run &iRun, const edm::EventSetup &iSetup) final
 
 HLTPrescaleRecorder (const edm::ParameterSet &)
 
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup) final
 
 ~HLTPrescaleRecorder () override
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::one::WatchRuns, edm::one::WatchLuminosityBlocks >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

bool condDB_
 
cond::service::PoolDBOutputServicedb_
 Pool DB service. More...
 
bool event_
 
trigger::HLTPrescaleTable hlt_
 payload HLT object More...
 
std::string hltDBTag_
 Tag of DB entry (HLT Key Name) (src=4) More...
 
edm::ESHandle< trigger::HLTPrescaleTableCondhltESHandle_
 
edm::Handle< trigger::HLTPrescaleTablehltHandle_
 Handle and ESHandle for existing HLT object. More...
 
edm::InputTag hltInputTag_
 InputTag of HLTPrescaleTable product (src=1,2,3) More...
 
edm::EDGetTokenT< trigger::HLTPrescaleTablehltInputToken_
 InputToken of HLTPrescaleTable product (src=1,2,3) More...
 
bool lumi_
 
edm::service::PrescaleServiceps_
 Prescale service. More...
 
std::string psetName_
 
bool run_
 (Multiple) Destinations More...
 
int src_
 

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
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

This class is an EDProducer making the HLTPrescaleTable object

Author
Martin Grunewald

See header file for documentation

Author
Martin Grunewald

Definition at line 43 of file HLTPrescaleRecorder.h.

Constructor & Destructor Documentation

◆ HLTPrescaleRecorder()

HLTPrescaleRecorder::HLTPrescaleRecorder ( const edm::ParameterSet ps)
explicit

Definition at line 36 of file HLTPrescaleRecorder.cc.

37  : src_(ps.getParameter<int>("src")),
38  run_(ps.getParameter<bool>("run")),
39  lumi_(ps.getParameter<bool>("lumi")),
40  event_(ps.getParameter<bool>("event")),
41  condDB_(ps.getParameter<bool>("condDB")),
42  psetName_(ps.getParameter<string>("psetName")),
43  hltInputTag_(ps.getParameter<InputTag>("hltInputTag")),
45  hltDBTag_(ps.getParameter<string>("hltDBTag")),
46  ps_(nullptr),
47  db_(nullptr),
48  hltHandle_(),
49  hltESHandle_(),
50  hlt_() {
51  if (src_ == 1) {
52  // Run
53  hltInputToken_ = consumes<trigger::HLTPrescaleTable, edm::InRun>(hltInputTag_);
54  } else if (src_ == 2) {
55  // Lumi
56  hltInputToken_ = consumes<trigger::HLTPrescaleTable, edm::InLumi>(hltInputTag_);
57  } else if (src_ == 3) {
58  // Event
59  hltInputToken_ = consumes<trigger::HLTPrescaleTable>(hltInputTag_);
60  }
61 
62  LogInfo("HLTPrescaleRecorder") << "src:run-lumi-event-condDB+psetName+tags: " << src_ << ":" << run_ << "-" << lumi_
63  << "-" << event_ << "-" << condDB_ << "+" << psetName_ << "+" << hltInputTag_.encode()
64  << "+" << hltDBTag_;
65 
66  if (edm::Service<edm::service::PrescaleService>().isAvailable()) {
68  } else if (src_ == 0) {
69  LogError("HLTPrescaleRecorder") << "PrescaleService requested as source but unavailable!";
70  }
71 
74  } else if (condDB_) {
75  LogError("HLTPrescaleRecorder") << "PoolDBOutputService requested as destination but unavailable!";
76  }
77 
78  if (run_)
79  produces<HLTPrescaleTable, edm::Transition::EndRun>("Run");
80  if (lumi_)
81  produces<HLTPrescaleTable, edm::Transition::EndLuminosityBlock>("Lumi");
82  if (event_)
83  produces<HLTPrescaleTable, edm::Transition::Event>("Event");
84 }

References condDB_, db_, edm::InputTag::encode(), event_, hltDBTag_, hltInputTag_, hltInputToken_, lumi_, ps_, psetName_, run_, and src_.

◆ ~HLTPrescaleRecorder()

HLTPrescaleRecorder::~HLTPrescaleRecorder ( )
overridedefault

Member Function Documentation

◆ beginLuminosityBlock()

void HLTPrescaleRecorder::beginLuminosityBlock ( edm::LuminosityBlock const &  iLumi,
const edm::EventSetup iSetup 
)
final

From PrescaleService default index updated at lumi block boundaries

From Lumi Block

Definition at line 166 of file HLTPrescaleRecorder.cc.

166  {
167  if (src_ == 0) {
170  if (ps_ != nullptr) {
172  } else {
174  LogError("HLTPrescaleRecorder") << "PrescaleService not found!";
175  }
176  } else if (src_ == 2) {
178  if (iLumi.getByToken(hltInputToken_, hltHandle_)) {
179  hlt_ = *hltHandle_;
180  } else {
182  LogError("HLTPrescaleRecorder") << "HLTPrescaleTable not found in LumiBlock!";
183  }
184  }
185 
186  return;
187 }

References edm::LuminosityBlock::getByToken(), edm::service::PrescaleService::getLvl1IndexDefault(), edm::service::PrescaleService::getLvl1Labels(), edm::service::PrescaleService::getPrescaleTable(), hlt_, hltHandle_, hltInputToken_, ps_, and src_.

◆ beginRun()

void HLTPrescaleRecorder::beginRun ( edm::Run const &  iRun,
const edm::EventSetup iSetup 
)
final

From PrescaleTable tracked PSet

From PrescaleService default index updated at lumi block boundaries

From Run Block

From CondDB (needs ESProducer module as well)

Definition at line 113 of file HLTPrescaleRecorder.cc.

113  {
115 
116  if (src_ == -1) {
119  ParameterSet iPS(pPSet.getParameter<ParameterSet>(psetName_));
120 
121  string defaultLabel(iPS.getParameter<std::string>("lvl1DefaultLabel"));
122  vector<string> labels(iPS.getParameter<std::vector<std::string> >("lvl1Labels"));
123  vector<ParameterSet> vpTable(iPS.getParameter<std::vector<ParameterSet> >("prescaleTable"));
124 
125  unsigned int set(0);
126  const unsigned int n(labels.size());
127  for (unsigned int i = 0; i != n; ++i) {
128  if (labels[i] == defaultLabel)
129  set = i;
130  }
131 
132  map<string, vector<unsigned int> > table;
133  const unsigned int m(vpTable.size());
134  for (unsigned int i = 0; i != m; ++i) {
135  table[vpTable[i].getParameter<std::string>("pathName")] =
136  vpTable[i].getParameter<std::vector<unsigned int> >("prescales");
137  }
139 
140  } else if (src_ == 0) {
143  if (ps_ != nullptr) {
145  } else {
147  LogError("HLTPrescaleRecorder") << "PrescaleService not found!";
148  }
149  } else if (src_ == 1) {
151  if (iRun.getByToken(hltInputToken_, hltHandle_)) {
152  hlt_ = *hltHandle_;
153  } else {
154  LogError("HLTPrescaleRecorder") << "HLTPrescaleTable not found in Run!";
155  }
156  } else if (src_ == 4) {
158  const HLTPrescaleTableRcd& hltRecord(iSetup.get<HLTPrescaleTableRcd>());
159  hltRecord.get(hltDBTag_, hltESHandle_);
161  }
162 
163  return;
164 }

References edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::EventSetup::get(), edm::Run::getByToken(), edm::service::PrescaleService::getLvl1IndexDefault(), edm::service::PrescaleService::getLvl1Labels(), edm::ParameterSet::getParameter(), edm::service::PrescaleService::getPrescaleTable(), edm::getProcessParameterSetContainingModule(), hlt_, hltDBTag_, hltESHandle_, hltHandle_, hltInputToken_, trigger::HLTPrescaleTableCond::hltPrescaleTable(), mps_fire::i, SummaryClient_cfi::labels, visualization-live-secondInstance_cfg::m, edm::one::EDProducerBase::moduleDescription(), dqmiodumpmetadata::n, ps_, psetName_, src_, AlCaHLTBitMon_QueryRunRegistry::string, and TableParser::table.

◆ endLuminosityBlock()

void HLTPrescaleRecorder::endLuminosityBlock ( edm::LuminosityBlock const &  iLumi,
const edm::EventSetup iSetup 
)
final

Definition at line 208 of file HLTPrescaleRecorder.cc.

208 {}

◆ endLuminosityBlockProduce()

void HLTPrescaleRecorder::endLuminosityBlockProduce ( edm::LuminosityBlock iLumi,
const edm::EventSetup iSetup 
)
final

Writing to Lumi Block

Definition at line 210 of file HLTPrescaleRecorder.cc.

210  {
211  if (lumi_) {
213  unique_ptr<HLTPrescaleTable> product(new HLTPrescaleTable(hlt_));
214  iLumi.put(std::move(product), "Lumi");
215  }
216  return;
217 }

References hlt_, lumi_, eostools::move(), and edm::LuminosityBlock::put().

◆ endRun()

void HLTPrescaleRecorder::endRun ( edm::Run const &  iRun,
const edm::EventSetup iSetup 
)
final

Dump to logfile

Writing to CondDB (needs PoolDBOutputService)

Definition at line 219 of file HLTPrescaleRecorder.cc.

219  {
221  ostringstream oss;
222  const unsigned int n(hlt_.size());
223  oss << "PrescaleTable: # of labels = " << n << endl;
224  const vector<string>& labels(hlt_.labels());
225  for (unsigned int i = 0; i != n; ++i) {
226  oss << " " << i << "/'" << labels.at(i) << "'";
227  }
228  oss << endl;
229  const map<string, vector<unsigned int> >& table(hlt_.table());
230  oss << "PrescaleTable: # of paths = " << table.size() << endl;
231  const map<string, vector<unsigned int> >::const_iterator tb(table.begin());
232  const map<string, vector<unsigned int> >::const_iterator te(table.end());
233  for (map<string, vector<unsigned int> >::const_iterator ti = tb; ti != te; ++ti) {
234  for (unsigned int i = 0; i != n; ++i) {
235  oss << " " << ti->second.at(i);
236  }
237  oss << " " << ti->first << endl;
238  }
239  LogVerbatim("HLTPrescaleRecorder") << oss.str();
240 
241  if (condDB_) {
243  if (db_ != nullptr) {
244  auto product(new HLTPrescaleTableCond(hlt_));
245  const string rcdName("HLTPrescaleTableRcd");
246  if (db_->isNewTagRequest(rcdName)) {
247  db_->createNewIOV<HLTPrescaleTableCond>(product, db_->beginOfTime(), db_->endOfTime(), rcdName);
248  } else {
249  ::timeval tv;
250  gettimeofday(&tv, nullptr);
251  edm::Timestamp tstamp((unsigned long long)tv.tv_sec);
253  // db_->currentTime()
254  tstamp.value(),
255  rcdName);
256  }
257  } else {
258  LogError("HLTPrescaleRecorder") << "PoolDBOutputService not available!";
259  }
260  }
261 
262  return;
263 }

References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), condDB_, cond::service::PoolDBOutputService::createNewIOV(), db_, cond::service::PoolDBOutputService::endOfTime(), hlt_, mps_fire::i, cond::service::PoolDBOutputService::isNewTagRequest(), SummaryClient_cfi::labels, trigger::HLTPrescaleTable::labels(), genParticles_cff::map, dqmiodumpmetadata::n, trigger::HLTPrescaleTable::size(), trigger::HLTPrescaleTable::table(), TableParser::table, and edm::Timestamp::value().

◆ endRunProduce()

void HLTPrescaleRecorder::endRunProduce ( edm::Run iRun,
const edm::EventSetup iSetup 
)
final

Writing to Run Block

Definition at line 265 of file HLTPrescaleRecorder.cc.

265  {
266  if (run_) {
268  unique_ptr<HLTPrescaleTable> product(new HLTPrescaleTable(hlt_));
269  iRun.put(std::move(product), "Run");
270  }
271 }

References hlt_, eostools::move(), edm::Run::put(), and run_.

◆ fillDescriptions()

void HLTPrescaleRecorder::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 92 of file HLTPrescaleRecorder.cc.

92  {
94  // # (single) source:
95  // # -1:PrescaleServicePSet, 0:PrescaleService,
96  // # 1:Run, 2:Lumi, 3:Event, 4:CondDB
97  desc.add<int>("src", 0);
98  // # (multiple) destinations
99  desc.add<bool>("run", true);
100  desc.add<bool>("lumi", true);
101  desc.add<bool>("event", true);
102  desc.add<bool>("condDB", true);
103  // # src=-1
104  desc.add<std::string>("psetName", "");
105  // # src= 1,2,3
106  desc.add<edm::InputTag>("hltInputTag", edm::InputTag("", "", ""));
107  // # src= 4
108  desc.add<std::string>("hltDBTag", "");
109  //
110  descriptions.add("hltPrescaleRecorder", desc);
111 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ produce()

void HLTPrescaleRecorder::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
finalvirtual

From Event Block

Writing to Event

Implements edm::one::EDProducerBase.

Definition at line 189 of file HLTPrescaleRecorder.cc.

189  {
190  if (src_ == 3) {
192  if (iEvent.getByToken(hltInputToken_, hltHandle_)) {
193  hlt_ = *hltHandle_;
194  } else {
196  LogError("HLTPrescaleRecorder") << "HLTPrescaleTable not found in Event!";
197  }
198  }
199 
200  if (event_) {
202  unique_ptr<HLTPrescaleTable> product(new HLTPrescaleTable(hlt_));
203  iEvent.put(std::move(product), "Event");
204  }
205 
206  return;
207 }

References event_, hlt_, hltHandle_, hltInputToken_, iEvent, eostools::move(), and src_.

Member Data Documentation

◆ condDB_

bool HLTPrescaleRecorder::condDB_
private

Definition at line 68 of file HLTPrescaleRecorder.h.

Referenced by endRun(), and HLTPrescaleRecorder().

◆ db_

cond::service::PoolDBOutputService* HLTPrescaleRecorder::db_
private

Pool DB service.

Definition at line 83 of file HLTPrescaleRecorder.h.

Referenced by endRun(), and HLTPrescaleRecorder().

◆ event_

bool HLTPrescaleRecorder::event_
private

Definition at line 67 of file HLTPrescaleRecorder.h.

Referenced by HLTPrescaleRecorder(), and produce().

◆ hlt_

trigger::HLTPrescaleTable HLTPrescaleRecorder::hlt_
private

payload HLT object

Definition at line 90 of file HLTPrescaleRecorder.h.

Referenced by beginLuminosityBlock(), beginRun(), endLuminosityBlockProduce(), endRun(), endRunProduce(), and produce().

◆ hltDBTag_

std::string HLTPrescaleRecorder::hltDBTag_
private

Tag of DB entry (HLT Key Name) (src=4)

Definition at line 78 of file HLTPrescaleRecorder.h.

Referenced by beginRun(), and HLTPrescaleRecorder().

◆ hltESHandle_

edm::ESHandle<trigger::HLTPrescaleTableCond> HLTPrescaleRecorder::hltESHandle_
private

Definition at line 87 of file HLTPrescaleRecorder.h.

Referenced by beginRun().

◆ hltHandle_

edm::Handle<trigger::HLTPrescaleTable> HLTPrescaleRecorder::hltHandle_
private

Handle and ESHandle for existing HLT object.

Definition at line 86 of file HLTPrescaleRecorder.h.

Referenced by beginLuminosityBlock(), beginRun(), and produce().

◆ hltInputTag_

edm::InputTag HLTPrescaleRecorder::hltInputTag_
private

InputTag of HLTPrescaleTable product (src=1,2,3)

Definition at line 74 of file HLTPrescaleRecorder.h.

Referenced by HLTPrescaleRecorder().

◆ hltInputToken_

edm::EDGetTokenT<trigger::HLTPrescaleTable> HLTPrescaleRecorder::hltInputToken_
private

InputToken of HLTPrescaleTable product (src=1,2,3)

Definition at line 76 of file HLTPrescaleRecorder.h.

Referenced by beginLuminosityBlock(), beginRun(), HLTPrescaleRecorder(), and produce().

◆ lumi_

bool HLTPrescaleRecorder::lumi_
private

Definition at line 66 of file HLTPrescaleRecorder.h.

Referenced by endLuminosityBlockProduce(), and HLTPrescaleRecorder().

◆ ps_

edm::service::PrescaleService* HLTPrescaleRecorder::ps_
private

Prescale service.

Definition at line 81 of file HLTPrescaleRecorder.h.

Referenced by beginLuminosityBlock(), beginRun(), and HLTPrescaleRecorder().

◆ psetName_

std::string HLTPrescaleRecorder::psetName_
private

Source configs name of PrescaleServicePSet (src=-1)

Definition at line 72 of file HLTPrescaleRecorder.h.

Referenced by beginRun(), and HLTPrescaleRecorder().

◆ run_

bool HLTPrescaleRecorder::run_
private

(Multiple) Destinations

Definition at line 65 of file HLTPrescaleRecorder.h.

Referenced by endRunProduce(), and HLTPrescaleRecorder().

◆ src_

int HLTPrescaleRecorder::src_
private

(Single) source: -1:PrescaleServicePSet 0:PrescaleService, 1:Run, 2:Lumi, 3:Event, 4:CondDB

Definition at line 62 of file HLTPrescaleRecorder.h.

Referenced by beginLuminosityBlock(), beginRun(), HLTPrescaleRecorder(), and produce().

SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
HLTPrescaleRecorder::ps_
edm::service::PrescaleService * ps_
Prescale service.
Definition: HLTPrescaleRecorder.h:81
trigger::HLTPrescaleTable
The single EDProduct containing the HLT Prescale Table.
Definition: HLTPrescaleTable.h:20
trigger::HLTPrescaleTable::size
unsigned int size() const
consistency condition: all vectors must have the same length
Definition: HLTPrescaleTable.h:34
mps_fire.i
i
Definition: mps_fire.py:428
HLTPrescaleRecorder::hltInputToken_
edm::EDGetTokenT< trigger::HLTPrescaleTable > hltInputToken_
InputToken of HLTPrescaleTable product (src=1,2,3)
Definition: HLTPrescaleRecorder.h:76
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition: PoolDBOutputService.cc:215
HLTPrescaleTableRcd
Definition: HLTPrescaleTableRcd.h:24
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89353
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
cond::service::PoolDBOutputService::appendSinceTime
void appendSinceTime(const T *payloadObj, cond::Time_t sinceTime, const std::string &recordName)
Definition: PoolDBOutputService.h:141
edm::getProcessParameterSetContainingModule
ParameterSet const & getProcessParameterSetContainingModule(ModuleDescription const &moduleDescription)
Definition: ParameterSet.cc:870
HLTPrescaleRecorder::psetName_
std::string psetName_
Definition: HLTPrescaleRecorder.h:72
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
trigger::HLTPrescaleTableCond::hltPrescaleTable
const trigger::HLTPrescaleTable & hltPrescaleTable() const
trivial const accessor
Definition: HLTPrescaleTableCond.h:16
HLTPrescaleRecorder::src_
int src_
Definition: HLTPrescaleRecorder.h:62
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
edm::Run::put
void put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Run.h:109
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
cond::service::PoolDBOutputService::createNewIOV
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
Definition: PoolDBOutputService.h:116
HLTPrescaleRecorder::hltHandle_
edm::Handle< trigger::HLTPrescaleTable > hltHandle_
Handle and ESHandle for existing HLT object.
Definition: HLTPrescaleRecorder.h:86
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
HLTPrescaleRecorder::run_
bool run_
(Multiple) Destinations
Definition: HLTPrescaleRecorder.h:65
HLTPrescaleRecorder::event_
bool event_
Definition: HLTPrescaleRecorder.h:67
trigger::HLTPrescaleTableCond
Definition: HLTPrescaleTableCond.h:9
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTPrescaleRecorder::db_
cond::service::PoolDBOutputService * db_
Pool DB service.
Definition: HLTPrescaleRecorder.h:83
edm::one::EDProducerBase::moduleDescription
ModuleDescription const & moduleDescription() const
Definition: EDProducerBase.h:63
HLTPrescaleRecorder::hlt_
trigger::HLTPrescaleTable hlt_
payload HLT object
Definition: HLTPrescaleRecorder.h:90
edm::service::PrescaleService::getLvl1IndexDefault
unsigned int getLvl1IndexDefault() const
Definition: PrescaleService.h:38
edm::ParameterSet
Definition: ParameterSet.h:47
edm::service::PrescaleService::getLvl1Labels
const VString_t & getLvl1Labels() const
Definition: PrescaleService.h:39
trigger::HLTPrescaleTable::table
const std::map< std::string, std::vector< unsigned int > > & table() const
Definition: HLTPrescaleTable.h:75
edm::Service
Definition: Service.h:30
iEvent
int iEvent
Definition: GenABIO.cc:224
HLTPrescaleRecorder::hltESHandle_
edm::ESHandle< trigger::HLTPrescaleTableCond > hltESHandle_
Definition: HLTPrescaleRecorder.h:87
edm::InputTag::encode
std::string encode() const
Definition: InputTag.cc:159
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
edm::LuminosityBlock::put
void put(std::unique_ptr< PROD > product)
Put a new product.
Definition: LuminosityBlock.h:116
HLTPrescaleRecorder::hltDBTag_
std::string hltDBTag_
Tag of DB entry (HLT Key Name) (src=4)
Definition: HLTPrescaleRecorder.h:78
cond::service::PoolDBOutputService::endOfTime
cond::Time_t endOfTime() const
Definition: PoolDBOutputService.cc:213
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
HLTPrescaleRecorder::condDB_
bool condDB_
Definition: HLTPrescaleRecorder.h:68
cond::service::PoolDBOutputService::isNewTagRequest
bool isNewTagRequest(const std::string &recordName)
Definition: PoolDBOutputService.cc:128
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HLTPrescaleRecorder::lumi_
bool lumi_
Definition: HLTPrescaleRecorder.h:66
edm::service::PrescaleService::getPrescaleTable
const PrescaleTable_t & getPrescaleTable() const
Definition: PrescaleService.h:40
trigger::HLTPrescaleTable::labels
const std::vector< std::string > & labels() const
Definition: HLTPrescaleTable.h:74
genParticles_cff.map
map
Definition: genParticles_cff.py:11
TableParser.table
table
Definition: TableParser.py:111
HLTPrescaleRecorder::hltInputTag_
edm::InputTag hltInputTag_
InputTag of HLTPrescaleTable product (src=1,2,3)
Definition: HLTPrescaleRecorder.h:74
edm::InputTag
Definition: InputTag.h:15
edm::Timestamp
Definition: Timestamp.h:30