CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
CastorTextCalibrations Class Reference

#include <CastorTextCalibrations.h>

Inheritance diagram for CastorTextCalibrations:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 CastorTextCalibrations (const edm::ParameterSet &)
 
void produce ()
 
 ~CastorTextCalibrations () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename Record >
void updateFromMayConsumes (unsigned int iIndex, const Record &iRecord)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
bool concurrentFinder () const
 
const eventsetup::ComponentDescriptiondescriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
 EventSetupRecordIntervalFinder (const EventSetupRecordIntervalFinder &)=delete
 
std::set< eventsetup::EventSetupRecordKeyfindingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
bool nonconcurrentAndIOVNeedsUpdate (const eventsetup::EventSetupRecordKey &key, const IOVSyncValue &syncValue) const
 
const EventSetupRecordIntervalFinderoperator= (const EventSetupRecordIntervalFinder &)=delete
 
void resetInterval (const eventsetup::EventSetupRecordKey &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder () noexcept(false)
 

Protected Member Functions

std::unique_ptr< CastorChannelQualityproduceChannelQuality (const CastorChannelQualityRcd &rcd)
 
std::unique_ptr< CastorElectronicsMapproduceElectronicsMap (const CastorElectronicsMapRcd &rcd)
 
std::unique_ptr< CastorGainsproduceGains (const CastorGainsRcd &rcd)
 
std::unique_ptr< CastorGainWidthsproduceGainWidths (const CastorGainWidthsRcd &rcd)
 
std::unique_ptr< CastorPedestalsproducePedestals (const CastorPedestalsRcd &rcd)
 
std::unique_ptr< CastorPedestalWidthsproducePedestalWidths (const CastorPedestalWidthsRcd &rcd)
 
std::unique_ptr< CastorQIEDataproduceQIEData (const CastorQIEDataRcd &rcd)
 
std::unique_ptr< CastorRecoParamsproduceRecoParams (const CastorRecoParamsRcd &rcd)
 
std::unique_ptr< CastorSaturationCorrsproduceSaturationCorrs (const CastorSaturationCorrsRcd &rcd)
 
void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 
- Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder
template<class T >
void findingRecord ()
 
void findingRecordWithKey (const eventsetup::EventSetupRecordKey &)
 

Private Attributes

std::map< std::string, std::string > mInputs
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 

Detailed Description

Definition at line 33 of file CastorTextCalibrations.h.

Constructor & Destructor Documentation

◆ CastorTextCalibrations()

CastorTextCalibrations::CastorTextCalibrations ( const edm::ParameterSet iConfig)

Definition at line 37 of file CastorTextCalibrations.cc.

39 {
40  //parsing parameters
41  std::vector<edm::ParameterSet> data = iConfig.getParameter<std::vector<edm::ParameterSet> >("input");
42  std::vector<edm::ParameterSet>::iterator request = data.begin();
43  for (; request != data.end(); ++request) {
44  std::string objectName = request->getParameter<std::string>("object");
45  edm::FileInPath fp = request->getParameter<edm::FileInPath>("file");
46  mInputs[objectName] = fp.fullPath();
47  if (objectName == "Pedestals") {
49  findingRecord<CastorPedestalsRcd>();
50  } else if (objectName == "PedestalWidths") {
52  findingRecord<CastorPedestalWidthsRcd>();
53  } else if (objectName == "Gains") {
55  findingRecord<CastorGainsRcd>();
56  } else if (objectName == "GainWidths") {
58  findingRecord<CastorGainWidthsRcd>();
59  } else if (objectName == "QIEData") {
61  findingRecord<CastorQIEDataRcd>();
62  } else if (objectName == "ChannelQuality") {
64  findingRecord<CastorChannelQualityRcd>();
65  } else if (objectName == "ElectronicsMap") {
67  findingRecord<CastorElectronicsMapRcd>();
68  } else if (objectName == "RecoParams") {
70  findingRecord<CastorRecoParamsRcd>();
71  } else if (objectName == "SaturationCorrs") {
73  findingRecord<CastorSaturationCorrsRcd>();
74  } else {
75  std::cerr << "CastorTextCalibrations-> Unknown object name '" << objectName << "', known names are: "
76  << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap RecoParams "
77  "SaturationCorrs"
78  << std::endl;
79  }
80  }
81  // setWhatProduced(this);
82 }

References beam_dqm_sourceclient-live_cfg::cerr, data, personalPlayback::fp, edm::ParameterSet::getParameter(), summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceElectronicsMap(), produceGains(), produceGainWidths(), producePedestals(), producePedestalWidths(), produceQIEData(), produceRecoParams(), produceSaturationCorrs(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~CastorTextCalibrations()

CastorTextCalibrations::~CastorTextCalibrations ( )
override

Definition at line 84 of file CastorTextCalibrations.cc.

84 {}

Member Function Documentation

◆ produce()

void CastorTextCalibrations::produce ( )
inline

Definition at line 38 of file CastorTextCalibrations.h.

38 {};

◆ produceChannelQuality()

std::unique_ptr< CastorChannelQuality > CastorTextCalibrations::produceChannelQuality ( const CastorChannelQualityRcd rcd)
protected

Definition at line 131 of file CastorTextCalibrations.cc.

131  {
132  return produce_impl<CastorChannelQuality>(mInputs["ChannelQuality"]);
133 }

Referenced by CastorTextCalibrations().

◆ produceElectronicsMap()

std::unique_ptr< CastorElectronicsMap > CastorTextCalibrations::produceElectronicsMap ( const CastorElectronicsMapRcd rcd)
protected

Definition at line 135 of file CastorTextCalibrations.cc.

135  {
136  return produce_impl<CastorElectronicsMap>(mInputs["ElectronicsMap"]);
137 }

Referenced by CastorTextCalibrations().

◆ produceGains()

std::unique_ptr< CastorGains > CastorTextCalibrations::produceGains ( const CastorGainsRcd rcd)
protected

Definition at line 119 of file CastorTextCalibrations.cc.

119  {
120  return produce_impl<CastorGains>(mInputs["Gains"]);
121 }

Referenced by CastorTextCalibrations().

◆ produceGainWidths()

std::unique_ptr< CastorGainWidths > CastorTextCalibrations::produceGainWidths ( const CastorGainWidthsRcd rcd)
protected

Definition at line 123 of file CastorTextCalibrations.cc.

123  {
124  return produce_impl<CastorGainWidths>(mInputs["GainWidths"]);
125 }

Referenced by CastorTextCalibrations().

◆ producePedestals()

std::unique_ptr< CastorPedestals > CastorTextCalibrations::producePedestals ( const CastorPedestalsRcd rcd)
protected

Definition at line 111 of file CastorTextCalibrations.cc.

111  {
112  return produce_impl<CastorPedestals>(mInputs["Pedestals"]);
113 }

Referenced by CastorTextCalibrations().

◆ producePedestalWidths()

std::unique_ptr< CastorPedestalWidths > CastorTextCalibrations::producePedestalWidths ( const CastorPedestalWidthsRcd rcd)
protected

Definition at line 115 of file CastorTextCalibrations.cc.

115  {
116  return produce_impl<CastorPedestalWidths>(mInputs["PedestalWidths"]);
117 }

Referenced by CastorTextCalibrations().

◆ produceQIEData()

std::unique_ptr< CastorQIEData > CastorTextCalibrations::produceQIEData ( const CastorQIEDataRcd rcd)
protected

Definition at line 127 of file CastorTextCalibrations.cc.

127  {
128  return produce_impl<CastorQIEData>(mInputs["QIEData"]);
129 }

Referenced by CastorTextCalibrations().

◆ produceRecoParams()

std::unique_ptr< CastorRecoParams > CastorTextCalibrations::produceRecoParams ( const CastorRecoParamsRcd rcd)
protected

Definition at line 139 of file CastorTextCalibrations.cc.

139  {
140  return produce_impl<CastorRecoParams>(mInputs["RecoParams"]);
141 }

Referenced by CastorTextCalibrations().

◆ produceSaturationCorrs()

std::unique_ptr< CastorSaturationCorrs > CastorTextCalibrations::produceSaturationCorrs ( const CastorSaturationCorrsRcd rcd)
protected

Definition at line 143 of file CastorTextCalibrations.cc.

144  {
145  return produce_impl<CastorSaturationCorrs>(mInputs["SaturationCorrs"]);
146 }

Referenced by CastorTextCalibrations().

◆ setIntervalFor()

void CastorTextCalibrations::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey iKey,
const edm::IOVSyncValue iTime,
edm::ValidityInterval oInterval 
)
overrideprotectedvirtual

Member Data Documentation

◆ mInputs

std::map<std::string, std::string> CastorTextCalibrations::mInputs
private

Definition at line 56 of file CastorTextCalibrations.h.

CastorTextCalibrations::produceChannelQuality
std::unique_ptr< CastorChannelQuality > produceChannelQuality(const CastorChannelQualityRcd &rcd)
Definition: CastorTextCalibrations.cc:131
CastorTextCalibrations::produceRecoParams
std::unique_ptr< CastorRecoParams > produceRecoParams(const CastorRecoParamsRcd &rcd)
Definition: CastorTextCalibrations.cc:139
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
CastorTextCalibrations::produceGains
std::unique_ptr< CastorGains > produceGains(const CastorGainsRcd &rcd)
Definition: CastorTextCalibrations.cc:119
personalPlayback.fp
fp
Definition: personalPlayback.py:523
CastorTextCalibrations::mInputs
std::map< std::string, std::string > mInputs
Definition: CastorTextCalibrations.h:56
CastorTextCalibrations::produceQIEData
std::unique_ptr< CastorQIEData > produceQIEData(const CastorQIEDataRcd &rcd)
Definition: CastorTextCalibrations.cc:127
edm::FileInPath
Definition: FileInPath.h:64
edm::eventsetup::EventSetupRecordKey::name
const char * name() const
Definition: EventSetupRecordKey.h:46
CastorTextCalibrations::produceElectronicsMap
std::unique_ptr< CastorElectronicsMap > produceElectronicsMap(const CastorElectronicsMapRcd &rcd)
Definition: CastorTextCalibrations.cc:135
CastorTextCalibrations::producePedestals
std::unique_ptr< CastorPedestals > producePedestals(const CastorPedestalsRcd &rcd)
Definition: CastorTextCalibrations.cc:111
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CastorTextCalibrations::produceSaturationCorrs
std::unique_ptr< CastorSaturationCorrs > produceSaturationCorrs(const CastorSaturationCorrsRcd &rcd)
Definition: CastorTextCalibrations.cc:143
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
beam_dqm_sourceclient-live_cfg.cerr
cerr
Definition: beam_dqm_sourceclient-live_cfg.py:17
CastorTextCalibrations::producePedestalWidths
std::unique_ptr< CastorPedestalWidths > producePedestalWidths(const CastorPedestalWidthsRcd &rcd)
Definition: CastorTextCalibrations.cc:115
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:17
edm::IOVSyncValue::beginOfTime
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
CastorTextCalibrations::produceGainWidths
std::unique_ptr< CastorGainWidths > produceGainWidths(const CastorGainWidthsRcd &rcd)
Definition: CastorTextCalibrations.cc:123
summarizeEdmComparisonLogfiles.objectName
objectName
Definition: summarizeEdmComparisonLogfiles.py:105