CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalDbProducer::TokensForServiceHolder< RecordType, TokenHolders > Class Template Reference

Public Member Functions

void setConsumes (edm::ESConsumesCollector &cc)
 
void setupHcalDbService (HostType &host, const HcalDbRecord &record, const std::vector< std::string > &dumpRequest, std::ostream *dumpStream)
 

Private Attributes

std::tuple< ServiceTokenImpl< typename TokenHolders::Product, RecordType, TokenHolders::label, typename TokenHolders::Effective >... > tokens_
 

Detailed Description

template<typename RecordType, typename... TokenHolders>
class HcalDbProducer::TokensForServiceHolder< RecordType, TokenHolders >

Definition at line 116 of file HcalDbProducer.cc.

Member Function Documentation

◆ setConsumes()

template<typename RecordType , typename... TokenHolders>
void HcalDbProducer::TokensForServiceHolder< RecordType, TokenHolders >::setConsumes ( edm::ESConsumesCollector cc)
inline

Definition at line 118 of file HcalDbProducer.cc.

118  {
119  std::apply([&cc](auto&&... item) { ((item.setConsumes(cc)), ...); }, tokens_);
120  }

References apply(), B2GTnPMonitor_cfi::item, and HcalDbProducer::TokensForServiceHolder< RecordType, TokenHolders >::tokens_.

◆ setupHcalDbService()

template<typename RecordType , typename... TokenHolders>
void HcalDbProducer::TokensForServiceHolder< RecordType, TokenHolders >::setupHcalDbService ( HostType host,
const HcalDbRecord record,
const std::vector< std::string > &  dumpRequest,
std::ostream *  dumpStream 
)
inline

Definition at line 121 of file HcalDbProducer.cc.

124  {
125  host.ifRecordChanges<RecordType>(record, [this, &host, &dumpRequest, &dumpStream](auto const& rec) {
126  std::apply([&host, &rec, &dumpRequest, &dumpStream](
127  auto&&... item) { ((item.setupHcalDbService(host, rec, dumpRequest, dumpStream)), ...); },
128  tokens_);
129  });
130  }

References apply(), query::host, B2GTnPMonitor_cfi::item, AlCaHarvesting_cff::record, and HcalDbProducer::TokensForServiceHolder< RecordType, TokenHolders >::tokens_.

Member Data Documentation

◆ tokens_

template<typename RecordType , typename... TokenHolders>
std::tuple<ServiceTokenImpl<typename TokenHolders::Product, RecordType, TokenHolders::label, typename TokenHolders::Effective>...> HcalDbProducer::TokensForServiceHolder< RecordType, TokenHolders >::tokens_
private
HcalDbProducer::TokensForServiceHolder::tokens_
std::tuple< ServiceTokenImpl< typename TokenHolders::Product, RecordType, TokenHolders::label, typename TokenHolders::Effective >... > tokens_
Definition: HcalDbProducer.cc:137
apply
Vec apply(Vec v, F f)
Definition: ExtVec.h:81
query.host
string host
Definition: query.py:115
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
cc