CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::CaloConfigHelper Class Reference

#include <CaloConfigHelper.h>

Public Member Functions

 CaloConfigHelper ()
 
 CaloConfigHelper (CaloConfig &db, unsigned fwv, std::string epoch)
 
 CaloConfigHelper (const CaloConfig &db)
 
unsigned fwv () const
 
void UpdatePayload (const CaloConfig *db)
 

Private Attributes

const CaloConfigdb_
 

Detailed Description

Definition at line 12 of file CaloConfigHelper.h.

Constructor & Destructor Documentation

◆ CaloConfigHelper() [1/3]

l1t::CaloConfigHelper::CaloConfigHelper ( CaloConfig db,
unsigned  fwv,
std::string  epoch 
)

Definition at line 7 of file CaloConfigHelper.cc.

7  : db_(&db) {
8  db.uconfig_.push_back(fwv);
9  db.sconfig_.push_back(epoch);
10  }

References dqmiodatasetharvest::db, and fwv().

◆ CaloConfigHelper() [2/3]

l1t::CaloConfigHelper::CaloConfigHelper ( const CaloConfig db)

Definition at line 11 of file CaloConfigHelper.cc.

11 : db_(&db) {}

◆ CaloConfigHelper() [3/3]

l1t::CaloConfigHelper::CaloConfigHelper ( )

Definition at line 12 of file CaloConfigHelper.cc.

12  {
13  static const CaloConfig db;
14  db_ = &db;
15  }

References dqmiodatasetharvest::db, and db_.

Member Function Documentation

◆ fwv()

unsigned l1t::CaloConfigHelper::fwv ( ) const
inline

Definition at line 18 of file CaloConfigHelper.h.

18 { return db_->uconfig_[0]; }

References db_, and l1t::CaloConfig::uconfig_.

Referenced by CaloConfigHelper().

◆ UpdatePayload()

void l1t::CaloConfigHelper::UpdatePayload ( const CaloConfig db)
inline

Definition at line 17 of file CaloConfigHelper.h.

17 { db_ = db; }

References dqmiodatasetharvest::db, and db_.

Member Data Documentation

◆ db_

const CaloConfig* l1t::CaloConfigHelper::db_
private

Definition at line 21 of file CaloConfigHelper.h.

Referenced by CaloConfigHelper(), fwv(), and UpdatePayload().

dqmiodatasetharvest.db
db
Definition: dqmiodatasetharvest.py:119
l1t::CaloConfig::uconfig_
std::vector< unsigned > uconfig_
Definition: CaloConfig.h:34
l1t::CaloConfigHelper::db_
const CaloConfig * db_
Definition: CaloConfigHelper.h:21
l1t::CaloConfigHelper::fwv
unsigned fwv() const
Definition: CaloConfigHelper.h:18