CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
const
eventsetup::ComponentDescription
descriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
std::set
< eventsetup::EventSetupRecordKey
findingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder ()
 

Protected Member Functions

std::auto_ptr
< CastorChannelQuality
produceChannelQuality (const CastorChannelQualityRcd &rcd)
 
std::auto_ptr
< CastorElectronicsMap
produceElectronicsMap (const CastorElectronicsMapRcd &rcd)
 
std::auto_ptr< CastorGainsproduceGains (const CastorGainsRcd &rcd)
 
std::auto_ptr< CastorGainWidthsproduceGainWidths (const CastorGainWidthsRcd &rcd)
 
std::auto_ptr< CastorPedestalsproducePedestals (const CastorPedestalsRcd &rcd)
 
std::auto_ptr
< CastorPedestalWidths
producePedestalWidths (const CastorPedestalWidthsRcd &rcd)
 
std::auto_ptr< CastorQIEDataproduceQIEData (const CastorQIEDataRcd &rcd)
 
std::auto_ptr< CastorRecoParamsproduceRecoParams (const CastorRecoParamsRcd &rcd)
 
std::auto_ptr
< CastorSaturationCorrs
produceSaturationCorrs (const CastorSaturationCorrsRcd &rcd)
 
virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 
- 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

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey, boost::shared_ptr
< DataProxy > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 28 of file CastorTextCalibrations.h.

Constructor & Destructor Documentation

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

Definition at line 37 of file CastorTextCalibrations.cc.

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

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  }
51  else if (objectName == "PedestalWidths") {
53  findingRecord <CastorPedestalWidthsRcd> ();
54  }
55  else if (objectName == "Gains") {
57  findingRecord <CastorGainsRcd> ();
58  }
59  else if (objectName == "GainWidths") {
61  findingRecord <CastorGainWidthsRcd> ();
62  }
63  else if (objectName == "QIEData") {
65  findingRecord <CastorQIEDataRcd> ();
66  }
67  else if (objectName == "ChannelQuality") {
69  findingRecord <CastorChannelQualityRcd> ();
70  }
71  else if (objectName == "ElectronicsMap") {
73  findingRecord <CastorElectronicsMapRcd> ();
74  }
75  else if (objectName == "RecoParams") {
77  findingRecord <CastorRecoParamsRcd> ();
78  }
79  else if (objectName == "SaturationCorrs") {
81  findingRecord <CastorSaturationCorrsRcd> ();
82  }
83  else {
84  std::cerr << "CastorTextCalibrations-> Unknown object name '" << objectName
85  << "', known names are: "
86  << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap RecoParams SaturationCorrs"
87  << std::endl;
88  }
89  }
90  // setWhatProduced(this);
91 }
T getParameter(std::string const &) const
std::auto_ptr< CastorElectronicsMap > produceElectronicsMap(const CastorElectronicsMapRcd &rcd)
std::auto_ptr< CastorChannelQuality > produceChannelQuality(const CastorChannelQualityRcd &rcd)
std::auto_ptr< CastorRecoParams > produceRecoParams(const CastorRecoParamsRcd &rcd)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorPedestals > producePedestals(const CastorPedestalsRcd &rcd)
std::auto_ptr< CastorPedestalWidths > producePedestalWidths(const CastorPedestalWidthsRcd &rcd)
std::auto_ptr< CastorQIEData > produceQIEData(const CastorQIEDataRcd &rcd)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
std::auto_ptr< CastorGainWidths > produceGainWidths(const CastorGainWidthsRcd &rcd)
std::auto_ptr< CastorGains > produceGains(const CastorGainsRcd &rcd)
std::auto_ptr< CastorSaturationCorrs > produceSaturationCorrs(const CastorSaturationCorrsRcd &rcd)
CastorTextCalibrations::~CastorTextCalibrations ( )

Definition at line 94 of file CastorTextCalibrations.cc.

95 {
96 }

Member Function Documentation

void CastorTextCalibrations::produce ( )
inline
std::auto_ptr< CastorChannelQuality > CastorTextCalibrations::produceChannelQuality ( const CastorChannelQualityRcd rcd)
protected

Definition at line 144 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

144  {
145  return produce_impl<CastorChannelQuality> (mInputs ["ChannelQuality"]);
146 }
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorElectronicsMap > CastorTextCalibrations::produceElectronicsMap ( const CastorElectronicsMapRcd rcd)
protected

Definition at line 148 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

148  {
149  return produce_impl<CastorElectronicsMap> (mInputs ["ElectronicsMap"]);
150 }
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorGains > CastorTextCalibrations::produceGains ( const CastorGainsRcd rcd)
protected

Definition at line 132 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

132  {
133  return produce_impl<CastorGains> (mInputs ["Gains"]);
134 }
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorGainWidths > CastorTextCalibrations::produceGainWidths ( const CastorGainWidthsRcd rcd)
protected

Definition at line 136 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

136  {
137  return produce_impl<CastorGainWidths> (mInputs ["GainWidths"]);
138 }
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorPedestals > CastorTextCalibrations::producePedestals ( const CastorPedestalsRcd rcd)
protected

Definition at line 124 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

124  {
125  return produce_impl<CastorPedestals> (mInputs ["Pedestals"]);
126 }
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorPedestalWidths > CastorTextCalibrations::producePedestalWidths ( const CastorPedestalWidthsRcd rcd)
protected

Definition at line 128 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

128  {
129  return produce_impl<CastorPedestalWidths> (mInputs ["PedestalWidths"]);
130 }
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorQIEData > CastorTextCalibrations::produceQIEData ( const CastorQIEDataRcd rcd)
protected

Definition at line 140 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

140  {
141  return produce_impl<CastorQIEData> (mInputs ["QIEData"]);
142 }
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorRecoParams > CastorTextCalibrations::produceRecoParams ( const CastorRecoParamsRcd rcd)
protected

Definition at line 152 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

152  {
153  return produce_impl<CastorRecoParams> (mInputs ["RecoParams"]);
154 }
std::map< std::string, std::string > mInputs
std::auto_ptr< CastorSaturationCorrs > CastorTextCalibrations::produceSaturationCorrs ( const CastorSaturationCorrsRcd rcd)
protected

Definition at line 156 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

156  {
157  return produce_impl<CastorSaturationCorrs> (mInputs ["SaturationCorrs"]);
158 }
std::map< std::string, std::string > mInputs
void CastorTextCalibrations::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey iKey,
const edm::IOVSyncValue iTime,
edm::ValidityInterval oInterval 
)
protectedvirtual

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 103 of file CastorTextCalibrations.cc.

References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::eventsetup::EventSetupRecordKey::name(), record, and AlCaHLTBitMon_QueryRunRegistry::string.

103  {
104  std::string record = iKey.name ();
106 }
JetCorrectorParameters::Record record
Definition: classes.h:7
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
static const IOVSyncValue & beginOfTime()

Member Data Documentation

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

Definition at line 53 of file CastorTextCalibrations.h.