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) {
49 findingRecord<CastorPedestalsRcd>();
52 findingRecord<CastorPedestalWidthsRcd>();
55 findingRecord<CastorGainsRcd>();
58 findingRecord<CastorGainWidthsRcd>();
61 findingRecord<CastorQIEDataRcd>();
64 findingRecord<CastorChannelQualityRcd>();
67 findingRecord<CastorElectronicsMapRcd>();
70 findingRecord<CastorRecoParamsRcd>();
73 findingRecord<CastorSaturationCorrsRcd>();
75 std::cerr <<
"CastorTextCalibrations-> Unknown object name '" <<
objectName <<
"', known names are: "
76 <<
"Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap RecoParams "
98 std::unique_ptr<T>
result(
new T());
99 std::ifstream inStream(fFile.c_str());
100 if (!inStream.good()) {
101 std::cerr <<
"CastorTextCalibrations-> Unable to open file '" << fFile <<
"'" << std::endl;
102 throw cms::Exception(
"FileNotFound") <<
"Unable to open '" << fFile <<
"'" << std::endl;
105 std::cerr <<
"CastorTextCalibrations-> Can not read object from file '" << fFile <<
"'" << std::endl;
106 throw cms::Exception(
"ReadError") <<
"Can not read object from file '" << fFile <<
"'" << std::endl;
112 return produce_impl<CastorPedestals>(mInputs[
"Pedestals"]);
116 return produce_impl<CastorPedestalWidths>(mInputs[
"PedestalWidths"]);
120 return produce_impl<CastorGains>(mInputs[
"Gains"]);
124 return produce_impl<CastorGainWidths>(mInputs[
"GainWidths"]);
128 return produce_impl<CastorQIEData>(mInputs[
"QIEData"]);
132 return produce_impl<CastorChannelQuality>(mInputs[
"ChannelQuality"]);
136 return produce_impl<CastorElectronicsMap>(mInputs[
"ElectronicsMap"]);
140 return produce_impl<CastorRecoParams>(mInputs[
"RecoParams"]);
145 return produce_impl<CastorSaturationCorrs>(mInputs[
"SaturationCorrs"]);