31 std::vector<HcalGenericDetId> allCells (
bool h2_mode) {
32 static std::vector<HcalGenericDetId>
result;
33 if (result.size () <= 0) {
37 for (
int depth = 1; depth < 5; depth++) {
38 for (
int det = 1; det < 5; det++) {
40 if (hcaltopology.valid(cell)) result.push_back (cell);
48 for(
int depth= 1; depth < 6; depth++){
50 if(zdctopology.
valid(zcell)) result.push_back(zcell);
52 if(zdctopology.
valid(zcell)) result.push_back(zcell);
55 for(
int depth= 1; depth < 5; depth++){
57 if(zdctopology.
valid(zcell)) result.push_back(zcell);
59 if(zdctopology.
valid(zcell)) result.push_back(zcell);
62 for(
int depth= 1; depth < 3; depth++){
64 if(zdctopology.
valid(zcell)) result.push_back(zcell);
66 if(zdctopology.
valid(zcell)) result.push_back(zcell);
77 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
85 findingRecord <HcalPedestalsRcd> ();
89 findingRecord <HcalPedestalWidthsRcd> ();
93 findingRecord <HcalGainsRcd> ();
97 findingRecord <HcalGainWidthsRcd> ();
101 findingRecord <HcalQIEDataRcd> ();
105 findingRecord <HcalChannelQualityRcd> ();
109 findingRecord <HcalElectronicsMapRcd> ();
113 findingRecord <HcalZSThresholdsRcd> ();
117 findingRecord <HcalRespCorrsRcd> ();
121 findingRecord <HcalLUTCorrsRcd> ();
125 findingRecord <HcalPFCorrsRcd> ();
129 findingRecord <HcalTimeCorrsRcd> ();
133 findingRecord <HcalL1TriggerObjectsRcd> ();
137 findingRecord <HcalValidationCorrsRcd> ();
141 findingRecord <HcalLutMetadataRcd> ();
145 findingRecord <HcalDcsRcd> ();
149 findingRecord <HcalDcsMapRcd> ();
153 findingRecord <HcalRecoParamsRcd> ();
157 findingRecord <HcalLongRecoParamsRcd> ();
161 findingRecord <HcalMCParamsRcd> ();
178 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::setIntervalFor-> key: " << record <<
" time: " << iTime.
eventID() <<
'/' << iTime.
time ().
value ();
183 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePedestals-> ...";
185 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
186 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
188 result->addValues(item,h2mode_);
194 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePedestalWidths-> ...";
196 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
197 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
199 result->addValues(item,h2mode_);
205 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGains-> ...";
207 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
208 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
210 result->addValues(item,h2mode_);
216 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGainWidths-> ...";
218 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
219 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
221 result->addValues(item,h2mode_);
227 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIEData-> ...";
229 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
230 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
232 result->addCoder (coder,h2mode_);
238 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceChannelQuality-> ...";
240 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
241 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
243 result->addValues(item,h2mode_);
250 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRespCorrs-> ...";
252 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
253 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
255 result->addValues(item,h2mode_);
261 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLUTCorrs-> ...";
263 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
264 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
266 result->addValues(item,h2mode_);
272 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCorrs-> ...";
274 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
275 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
277 result->addValues(item,h2mode_);
283 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimeCorrs-> ...";
285 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
286 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
288 result->addValues(item,h2mode_);
294 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZSThresholds-> ...";
296 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
297 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
299 result->addValues(item,h2mode_);
306 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
308 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
309 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
311 result->addValues(item,h2mode_);
314 result->setTagString(
"hardcoded");
315 result->setAlgoString(
"hardcoded");
323 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceElectronicsMap-> ...";
331 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceValidationCorrs-> ...";
333 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
334 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
336 result->addValues(item,h2mode_);
342 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLutMetadata-> ...";
345 result->setRctLsb( 0.25 );
346 result->setNominalGain( 0.177 );
348 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
349 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
351 result->addValues(item,h2mode_);
356 std::auto_ptr<HcalDcsValues>
358 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsValues-> ...";
364 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsMap-> ...";
372 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRecoParams-> ...";
374 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
375 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
377 result->addValues(item,h2mode_);
383 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLongRecoParams-> ...";
385 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
386 std::vector <unsigned int> mSignal;
387 mSignal.push_back(4);
388 mSignal.push_back(5);
389 mSignal.push_back(6);
390 std::vector <unsigned int> mNoise;
394 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
395 if (cell->isHcalZDCDetId())
398 result->addValues(item,h2mode_);
405 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceMCParams-> ...";
407 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
408 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
410 result->addValues(item,h2mode_);
std::auto_ptr< HcalPedestalWidths > producePedestalWidths(const HcalPedestalWidthsRcd &rcd)
T getUntrackedParameter(std::string const &, T const &) const
HcalHardcodeCalibrations(const edm::ParameterSet &)
std::auto_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
std::auto_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
const EventID & eventID() const
std::auto_ptr< HcalQIEData > produceQIEData(const HcalQIEDataRcd &rcd)
static const IOVSyncValue & endOfTime()
std::pair< Time_t, Time_t > ValidityInterval
std::auto_ptr< HcalLutMetadata > produceLutMetadata(const HcalLutMetadataRcd &rcd)
std::auto_ptr< HcalZSThresholds > produceZSThresholds(const HcalZSThresholdsRcd &rcd)
void makeHardcodeMap(HcalElectronicsMap &emap)
std::auto_ptr< HcalDcsValues > produceDcsValues(const HcalDcsRcd &rcd)
HcalQIECoder makeQIECoder(HcalGenericDetId fId)
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId)
std::auto_ptr< HcalChannelQuality > produceChannelQuality(const HcalChannelQualityRcd &rcd)
std::auto_ptr< HcalTimeCorrs > produceTimeCorrs(const HcalTimeCorrsRcd &rcd)
void makeHardcodeDcsMap(HcalDcsMap &dcs_map)
std::auto_ptr< HcalRecoParams > produceRecoParams(const HcalRecoParamsRcd &rcd)
virtual bool valid(const HcalZDCDetId &id) const
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false)
std::auto_ptr< HcalGains > produceGains(const HcalGainsRcd &rcd)
static const IOVSyncValue & beginOfTime()
const char * name() const
~HcalHardcodeCalibrations()
HcalRecoParam makeRecoParam(HcalGenericDetId fId)
std::auto_ptr< HcalRespCorrs > produceRespCorrs(const HcalRespCorrsRcd &rcd)
std::auto_ptr< HcalLongRecoParams > produceLongRecoParams(const HcalLongRecoParamsRcd &rcd)
TimeValue_t value() const
std::auto_ptr< HcalElectronicsMap > produceElectronicsMap(const HcalElectronicsMapRcd &rcd)
std::auto_ptr< HcalPFCorrs > producePFCorrs(const HcalPFCorrsRcd &rcd)
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
std::auto_ptr< HcalMCParams > produceMCParams(const HcalMCParamsRcd &rcd)
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
const Timestamp & time() const
std::auto_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
std::auto_ptr< HcalValidationCorrs > produceValidationCorrs(const HcalValidationCorrsRcd &rcd)
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear=false)
std::auto_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
std::auto_ptr< HcalL1TriggerObjects > produceL1TriggerObjects(const HcalL1TriggerObjectsRcd &rcd)