39 std::vector<HcalGenericDetId> allCells (
bool h2_mode) {
40 static std::vector<HcalGenericDetId>
result;
41 if (result.size () <= 0) {
47 for(
int sector=1; sector<17; sector++) {
50 if (castortopology.
valid(cell)) result.push_back(cell);
52 if (castortopology.
valid(cell)) result.push_back(cell);
57 for(
int sector= 1; sector < 17; sector++){
60 if(castortopology.
valid(cell)) result.push_back(cell);
62 if(castortopology.
valid(cell)) result.push_back(cell);
75 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::CastorHardcodeCalibrations->...";
83 findingRecord <CastorPedestalsRcd> ();
87 findingRecord <CastorPedestalWidthsRcd> ();
91 findingRecord <CastorGainsRcd> ();
95 findingRecord <CastorGainWidthsRcd> ();
99 findingRecord <CastorQIEDataRcd> ();
103 findingRecord <CastorChannelQualityRcd> ();
107 findingRecord <CastorElectronicsMapRcd> ();
111 findingRecord <CastorRecoParamsRcd> ();
115 findingRecord <CastorSaturationCorrsRcd> ();
132 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::setIntervalFor-> key: " << record <<
" time: " << iTime.
eventID() <<
'/' << iTime.
time ().
value ();
137 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::producePedestals-> ...";
139 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
140 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
142 result->addValues(item);
148 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::producePedestalWidths-> ...";
150 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
151 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
153 result->addValues(item);
159 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceGains-> ...";
161 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
162 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
164 result->addValues(item);
170 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceGainWidths-> ...";
172 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
173 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
175 result->addValues(item);
181 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceQIEData-> ...";
183 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
184 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
186 result->addCoder(coder);
192 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceChannelQuality-> ...";
194 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
195 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
197 result->addValues(item);
203 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceElectronicsMap-> ...";
211 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceRecoParams-> ...";
213 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
214 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
216 result->addValues(item);
222 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceSaturationCorrs-> ...";
224 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
225 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
227 result->addValues(item);
CastorPedestalWidth makePedestalWidth(HcalGenericDetId fId)
std::auto_ptr< CastorGainWidths > produceGainWidths(const CastorGainWidthsRcd &rcd)
T getUntrackedParameter(std::string const &, T const &) const
CastorQIECoder makeQIECoder(HcalGenericDetId fId)
std::auto_ptr< CastorChannelQuality > produceChannelQuality(const CastorChannelQualityRcd &rcd)
const EventID & eventID() const
void makeHardcodeMap(CastorElectronicsMap &emap)
std::auto_ptr< CastorSaturationCorrs > produceSaturationCorrs(const CastorSaturationCorrsRcd &rcd)
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
CastorHardcodeCalibrations(const edm::ParameterSet &)
uint32_t rawId() const
get the raw id
static const IOVSyncValue & beginOfTime()
~CastorHardcodeCalibrations()
CastorRecoParam makeRecoParam(HcalGenericDetId fId)
const char * name() const
CastorSaturationCorr makeSaturationCorr(HcalGenericDetId fId)
std::auto_ptr< CastorRecoParams > produceRecoParams(const CastorRecoParamsRcd &rcd)
std::auto_ptr< CastorQIEData > produceQIEData(const CastorQIEDataRcd &rcd)
virtual bool valid(const HcalCastorDetId &id) const
CastorGainWidth makeGainWidth(HcalGenericDetId fId)
TimeValue_t value() const
CastorPedestal makePedestal(HcalGenericDetId fId, bool fSmear=false)
std::auto_ptr< CastorElectronicsMap > produceElectronicsMap(const CastorElectronicsMapRcd &rcd)
CastorGain makeGain(HcalGenericDetId fId, bool fSmear=false)
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
std::auto_ptr< CastorPedestalWidths > producePedestalWidths(const CastorPedestalWidthsRcd &rcd)
const Timestamp & time() const
std::auto_ptr< CastorGains > produceGains(const CastorGainsRcd &rcd)
std::auto_ptr< CastorPedestals > producePedestals(const CastorPedestalsRcd &rcd)