38 std::vector<HcalGenericDetId> allCells (
bool h2_mode) {
39 static std::vector<HcalGenericDetId>
result;
40 if (result.size () <= 0) {
46 for(
int sector=1; sector<17; sector++) {
49 if (castortopology.
valid(cell)) result.push_back(cell);
51 if (castortopology.
valid(cell)) result.push_back(cell);
56 for(
int sector= 1; sector < 17; sector++){
59 if(castortopology.
valid(cell)) result.push_back(cell);
61 if(castortopology.
valid(cell)) result.push_back(cell);
74 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::CastorHardcodeCalibrations->...";
82 findingRecord <CastorPedestalsRcd> ();
86 findingRecord <CastorPedestalWidthsRcd> ();
90 findingRecord <CastorGainsRcd> ();
94 findingRecord <CastorGainWidthsRcd> ();
98 findingRecord <CastorQIEDataRcd> ();
102 findingRecord <CastorChannelQualityRcd> ();
106 findingRecord <CastorElectronicsMapRcd> ();
124 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::setIntervalFor-> key: " << record <<
" time: " << iTime.
eventID() <<
'/' << iTime.
time ().
value ();
129 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::producePedestals-> ...";
131 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
132 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
134 result->addValues(item);
140 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::producePedestalWidths-> ...";
142 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
143 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
145 result->addValues(item);
151 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceGains-> ...";
153 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
154 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
156 result->addValues(item);
162 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceGainWidths-> ...";
164 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
165 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
167 result->addValues(item);
173 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceQIEData-> ...";
175 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
176 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
178 result->addCoder(coder);
184 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceChannelQuality-> ...";
186 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
187 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
189 result->addValues(item);
195 edm::LogInfo(
"HCAL") <<
"CastorHardcodeCalibrations::produceElectronicsMap-> ...";
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)
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()
const char * name() const
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)