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.

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

118  {
119  std::apply([&cc](auto&&... item) { ((item.setConsumes(cc)), ...); }, tokens_);
120  }
std::tuple< ServiceTokenImpl< typename TokenHolders::Product, RecordType, TokenHolders::label, typename TokenHolders::Effective >... > tokens_
Vec apply(Vec v, F f)
Definition: ExtVec.h:81

◆ 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.

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

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  }
string host
Definition: query.py:115
std::tuple< ServiceTokenImpl< typename TokenHolders::Product, RecordType, TokenHolders::label, typename TokenHolders::Effective >... > tokens_
Vec apply(Vec v, F f)
Definition: ExtVec.h:81

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