CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
CastorTextCalibrations Class Reference
Inheritance diagram for CastorTextCalibrations:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

Public Member Functions

 CastorTextCalibrations (const edm::ParameterSet &)
 
void produce ()
 
 ~CastorTextCalibrations () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () 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
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *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 TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
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::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
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::ESProductResolverProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 

Detailed Description

Definition at line 35 of file CastorTextCalibrations.cc.

Constructor & Destructor Documentation

◆ CastorTextCalibrations()

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

Definition at line 66 of file CastorTextCalibrations.cc.

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

68 {
69  //parsing parameters
70  std::vector<edm::ParameterSet> data = iConfig.getParameter<std::vector<edm::ParameterSet> >("input");
71  std::vector<edm::ParameterSet>::iterator request = data.begin();
72  for (; request != data.end(); ++request) {
73  std::string objectName = request->getParameter<std::string>("object");
74  edm::FileInPath fp = request->getParameter<edm::FileInPath>("file");
75  mInputs[objectName] = fp.fullPath();
76  if (objectName == "Pedestals") {
78  findingRecord<CastorPedestalsRcd>();
79  } else if (objectName == "PedestalWidths") {
81  findingRecord<CastorPedestalWidthsRcd>();
82  } else if (objectName == "Gains") {
84  findingRecord<CastorGainsRcd>();
85  } else if (objectName == "GainWidths") {
87  findingRecord<CastorGainWidthsRcd>();
88  } else if (objectName == "QIEData") {
90  findingRecord<CastorQIEDataRcd>();
91  } else if (objectName == "ChannelQuality") {
93  findingRecord<CastorChannelQualityRcd>();
94  } else if (objectName == "ElectronicsMap") {
96  findingRecord<CastorElectronicsMapRcd>();
97  } else if (objectName == "RecoParams") {
99  findingRecord<CastorRecoParamsRcd>();
100  } else if (objectName == "SaturationCorrs") {
102  findingRecord<CastorSaturationCorrsRcd>();
103  } else {
104  std::cerr << "CastorTextCalibrations-> Unknown object name '" << objectName << "', known names are: "
105  << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap RecoParams "
106  "SaturationCorrs"
107  << std::endl;
108  }
109  }
110  // setWhatProduced(this);
111 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< CastorPedestals > producePedestals(const CastorPedestalsRcd &rcd)
std::unique_ptr< CastorGainWidths > produceGainWidths(const CastorGainWidthsRcd &rcd)
std::unique_ptr< CastorPedestalWidths > producePedestalWidths(const CastorPedestalWidthsRcd &rcd)
std::unique_ptr< CastorRecoParams > produceRecoParams(const CastorRecoParamsRcd &rcd)
std::map< std::string, std::string > mInputs
std::unique_ptr< CastorChannelQuality > produceChannelQuality(const CastorChannelQualityRcd &rcd)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
std::unique_ptr< CastorSaturationCorrs > produceSaturationCorrs(const CastorSaturationCorrsRcd &rcd)
std::unique_ptr< CastorElectronicsMap > produceElectronicsMap(const CastorElectronicsMapRcd &rcd)
std::unique_ptr< CastorQIEData > produceQIEData(const CastorQIEDataRcd &rcd)
std::unique_ptr< CastorGains > produceGains(const CastorGainsRcd &rcd)

◆ ~CastorTextCalibrations()

CastorTextCalibrations::~CastorTextCalibrations ( )
override

Definition at line 113 of file CastorTextCalibrations.cc.

113 {}

Member Function Documentation

◆ produce()

void CastorTextCalibrations::produce ( )
inline

Definition at line 40 of file CastorTextCalibrations.cc.

40 {};

◆ produceChannelQuality()

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

Definition at line 160 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

160  {
161  return produce_impl<CastorChannelQuality>(mInputs["ChannelQuality"]);
162 }
std::map< std::string, std::string > mInputs

◆ produceElectronicsMap()

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

Definition at line 164 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

164  {
165  return produce_impl<CastorElectronicsMap>(mInputs["ElectronicsMap"]);
166 }
std::map< std::string, std::string > mInputs

◆ produceGains()

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

Definition at line 148 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

148  {
149  return produce_impl<CastorGains>(mInputs["Gains"]);
150 }
std::map< std::string, std::string > mInputs

◆ produceGainWidths()

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

Definition at line 152 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

152  {
153  return produce_impl<CastorGainWidths>(mInputs["GainWidths"]);
154 }
std::map< std::string, std::string > mInputs

◆ producePedestals()

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

Definition at line 140 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

140  {
141  return produce_impl<CastorPedestals>(mInputs["Pedestals"]);
142 }
std::map< std::string, std::string > mInputs

◆ producePedestalWidths()

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

Definition at line 144 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

144  {
145  return produce_impl<CastorPedestalWidths>(mInputs["PedestalWidths"]);
146 }
std::map< std::string, std::string > mInputs

◆ produceQIEData()

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

Definition at line 156 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

156  {
157  return produce_impl<CastorQIEData>(mInputs["QIEData"]);
158 }
std::map< std::string, std::string > mInputs

◆ produceRecoParams()

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

Definition at line 168 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

168  {
169  return produce_impl<CastorRecoParams>(mInputs["RecoParams"]);
170 }
std::map< std::string, std::string > mInputs

◆ produceSaturationCorrs()

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

Definition at line 172 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

173  {
174  return produce_impl<CastorSaturationCorrs>(mInputs["SaturationCorrs"]);
175 }
std::map< std::string, std::string > mInputs

◆ 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 58 of file CastorTextCalibrations.cc.