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> ();
165 findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
182 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::setIntervalFor-> key: " << record <<
" time: " << iTime.
eventID() <<
'/' << iTime.
time ().
value ();
187 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePedestals-> ...";
189 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
190 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
192 result->addValues(item,h2mode_);
198 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePedestalWidths-> ...";
200 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
201 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
203 result->addValues(item,h2mode_);
209 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGains-> ...";
211 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
212 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
214 result->addValues(item,h2mode_);
220 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceGainWidths-> ...";
222 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
223 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
225 result->addValues(item,h2mode_);
231 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceQIEData-> ...";
233 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
234 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
236 result->addCoder (coder,h2mode_);
242 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceChannelQuality-> ...";
244 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
245 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
247 result->addValues(item,h2mode_);
254 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRespCorrs-> ...";
256 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
257 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
259 result->addValues(item,h2mode_);
265 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLUTCorrs-> ...";
267 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
268 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
270 result->addValues(item,h2mode_);
276 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::producePFCorrs-> ...";
278 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
279 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
281 result->addValues(item,h2mode_);
287 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimeCorrs-> ...";
289 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
290 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
292 result->addValues(item,h2mode_);
298 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceZSThresholds-> ...";
300 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
301 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
303 result->addValues(item,h2mode_);
310 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
312 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
313 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
315 result->addValues(item,h2mode_);
318 result->setTagString(
"hardcoded");
319 result->setAlgoString(
"hardcoded");
327 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceElectronicsMap-> ...";
335 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceValidationCorrs-> ...";
337 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
338 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
340 result->addValues(item,h2mode_);
346 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLutMetadata-> ...";
349 result->setRctLsb( 0.25 );
350 result->setNominalGain( 0.177 );
352 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
353 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
355 result->addValues(item,h2mode_);
360 std::auto_ptr<HcalDcsValues>
362 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsValues-> ...";
368 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceDcsMap-> ...";
376 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceRecoParams-> ...";
378 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
379 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
381 result->addValues(item,h2mode_);
386 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceTimingParams-> ...";
388 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
389 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
391 result->addValues(item,h2mode_);
396 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceLongRecoParams-> ...";
398 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
399 std::vector <unsigned int> mSignal;
400 mSignal.push_back(4);
401 mSignal.push_back(5);
402 mSignal.push_back(6);
403 std::vector <unsigned int> mNoise;
407 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
408 if (cell->isHcalZDCDetId())
411 result->addValues(item,h2mode_);
418 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceMCParams-> ...";
420 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
421 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
423 result->addValues(item,h2mode_);
430 edm::LogInfo(
"HCAL") <<
"HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
432 std::vector <HcalGenericDetId> cells = allCells(h2mode_);
434 std::vector<double> coef;
435 coef.push_back(0.93);
436 coef.push_back(-0.38275);
437 coef.push_back(-0.012667);
439 for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
447 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
HcalTimingParam makeTimingParam(HcalGenericDetId fId)
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< HcalTimingParams > produceTimingParams(const HcalTimingParamsRcd &rcd)
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< HcalFlagHFDigiTimeParams > produceFlagHFDigiTimeParams(const HcalFlagHFDigiTimeParamsRcd &rcd)
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)