CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends
DropBoxMetadata Class Reference

#include <DropBoxMetadata.h>

Classes

class  Parameters
 

Public Member Functions

void addRecordParameters (const std::string &record, const Parameters &params)
 
 DropBoxMetadata ()
 Constructor. More...
 
const std::vector< std::string > getAllRecords () const
 
const ParametersgetRecordParameters (const std::string &record) const
 
bool knowsRecord (const std::string &record) const
 
virtual ~DropBoxMetadata ()
 Destructor. More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::map< std::string, DropBoxMetadata::ParametersrecordSet
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

No description available.

Date
2011/02/23 16:55:18
Revision
1.1
Author
G. Cerminara - CERN

Definition at line 17 of file DropBoxMetadata.h.

Constructor & Destructor Documentation

◆ DropBoxMetadata()

DropBoxMetadata::DropBoxMetadata ( )

Constructor.

Definition at line 16 of file DropBoxMetadata.cc.

16 {}

◆ ~DropBoxMetadata()

DropBoxMetadata::~DropBoxMetadata ( )
virtual

Destructor.

Definition at line 18 of file DropBoxMetadata.cc.

18 {}

Member Function Documentation

◆ addRecordParameters()

void DropBoxMetadata::addRecordParameters ( const std::string &  record,
const Parameters params 
)

Definition at line 33 of file DropBoxMetadata.cc.

References submitPVValidationJobs::params, Hcal_FrontierConditions_cff::record, and recordSet.

33  {
35 }
std::map< std::string, DropBoxMetadata::Parameters > recordSet

◆ getAllRecords()

const std::vector< std::string > DropBoxMetadata::getAllRecords ( ) const

Definition at line 48 of file DropBoxMetadata.cc.

References recordSet, AlCaHLTBitMon_QueryRunRegistry::string, and HcalDetIdTransform::transform().

48  {
49  std::vector<std::string> records;
50  std::transform(recordSet.begin(),
51  recordSet.end(),
52  std::inserter(records, records.end()),
53  [](std::pair<std::string, DropBoxMetadata::Parameters> recordSetEntry) -> std::string {
54  return recordSetEntry.first;
55  });
56  return records;
57 }
std::map< std::string, DropBoxMetadata::Parameters > recordSet
unsigned transform(const HcalDetId &id, unsigned transformCode)

◆ getRecordParameters()

const DropBoxMetadata::Parameters & DropBoxMetadata::getRecordParameters ( const std::string &  record) const

Definition at line 37 of file DropBoxMetadata.cc.

References Hcal_FrontierConditions_cff::record, and recordSet.

37  {
38  return recordSet.find(record)->second;
39 }
std::map< std::string, DropBoxMetadata::Parameters > recordSet

◆ knowsRecord()

bool DropBoxMetadata::knowsRecord ( const std::string &  record) const

Definition at line 41 of file DropBoxMetadata.cc.

References Hcal_FrontierConditions_cff::record, and recordSet.

41  {
42  if (recordSet.find(record) != recordSet.end())
43  return true;
44 
45  return false;
46 }
std::map< std::string, DropBoxMetadata::Parameters > recordSet

◆ serialize()

template<class Archive >
void DropBoxMetadata::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 52 of file DropBoxMetadata.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 52 of file DropBoxMetadata.h.

Member Data Documentation

◆ recordSet

std::map<std::string, DropBoxMetadata::Parameters> DropBoxMetadata::recordSet
private