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 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
 
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
 
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>
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)
 
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 35 of file HLTPrescaleRecorder.cc.

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

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 165 of file HLTPrescaleRecorder.cc.

165  {
166  if (src_ == 0) {
169  if (ps_ != nullptr) {
171  } else {
173  LogError("HLTPrescaleRecorder") << "PrescaleService not found!";
174  }
175  } else if (src_ == 2) {
177  if (iLumi.getByToken(hltInputToken_, hltHandle_)) {
178  hlt_ = *hltHandle_;
179  } else {
181  LogError("HLTPrescaleRecorder") << "HLTPrescaleTable not found in LumiBlock!";
182  }
183  }
184 
185  return;
186 }

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 112 of file HLTPrescaleRecorder.cc.

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

References edm::EventSetup::get(), edm::eventsetup::EventSetupRecordImplementation< T >::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 207 of file HLTPrescaleRecorder.cc.

207 {}

◆ endLuminosityBlockProduce()

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

Writing to Lumi Block

Definition at line 209 of file HLTPrescaleRecorder.cc.

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

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 218 of file HLTPrescaleRecorder.cc.

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

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 264 of file HLTPrescaleRecorder.cc.

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

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

◆ fillDescriptions()

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

Definition at line 91 of file HLTPrescaleRecorder.cc.

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

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_2018_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 188 of file HLTPrescaleRecorder.cc.

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

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:355
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
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:187
HLTPrescaleTableRcd
Definition: HLTPrescaleTableRcd.h:24
edm::LogInfo
Definition: MessageLogger.h:254
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:135
edm::getProcessParameterSetContainingModule
ParameterSet const & getProcessParameterSetContainingModule(ModuleDescription const &moduleDescription)
Definition: ParameterSet.cc:863
HLTPrescaleRecorder::psetName_
std::string psetName_
Definition: HLTPrescaleRecorder.h:72
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:73
edm::Run::put
void put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Run.h:108
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:110
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:64
HLTPrescaleRecorder::hlt_
trigger::HLTPrescaleTable hlt_
payload HLT object
Definition: HLTPrescaleRecorder.h:90
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::service::PrescaleService::getLvl1IndexDefault
unsigned int getLvl1IndexDefault() const
Definition: PrescaleService.h:38
edm::ParameterSet
Definition: ParameterSet.h:36
edm::LogError
Definition: MessageLogger.h:183
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
edm::LogVerbatim
Definition: MessageLogger.h:297
HLTPrescaleRecorder::hltESHandle_
edm::ESHandle< trigger::HLTPrescaleTableCond > hltESHandle_
Definition: HLTPrescaleRecorder.h:87
edm::InputTag::encode
std::string encode() const
Definition: InputTag.cc:159
edm::LuminosityBlock::put
void put(std::unique_ptr< PROD > product)
Put a new product.
Definition: LuminosityBlock.h:115
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:185
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
eostools.move
def move(src, dest)
Definition: eostools.py:511
HLTPrescaleRecorder::condDB_
bool condDB_
Definition: HLTPrescaleRecorder.h:68
cond::service::PoolDBOutputService::isNewTagRequest
bool isNewTagRequest(const std::string &recordName)
Definition: PoolDBOutputService.cc:100
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