#include <memory>
#include <iostream>
#include "FWCore/Framework/interface/ValidityInterval.h"
#include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "CalibCalorimetry/CastorCalib/interface/CastorDbHardcode.h"
#include "CondFormats/CastorObjects/interface/CastorPedestals.h"
#include "CondFormats/CastorObjects/interface/CastorPedestalWidths.h"
#include "CondFormats/CastorObjects/interface/CastorGains.h"
#include "CondFormats/CastorObjects/interface/CastorGainWidths.h"
#include "CondFormats/CastorObjects/interface/CastorElectronicsMap.h"
#include "CondFormats/CastorObjects/interface/CastorChannelQuality.h"
#include "CondFormats/CastorObjects/interface/CastorQIEData.h"
#include "CondFormats/DataRecord/interface/CastorPedestalsRcd.h"
#include "CondFormats/DataRecord/interface/CastorPedestalWidthsRcd.h"
#include "CondFormats/DataRecord/interface/CastorGainsRcd.h"
#include "CondFormats/DataRecord/interface/CastorGainWidthsRcd.h"
#include "CondFormats/DataRecord/interface/CastorElectronicsMapRcd.h"
#include "CondFormats/DataRecord/interface/CastorChannelQualityRcd.h"
#include "CondFormats/DataRecord/interface/CastorQIEDataRcd.h"
#include "Geometry/ForwardGeometry/interface/CastorTopology.h"
#include "Geometry/CaloTopology/interface/HcalTopology.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "CastorHardcodeCalibrations.h"
Go to the source code of this file.
Functions | |
std::vector< HcalGenericDetId > | allCells (bool h2_mode) |
std::vector<HcalGenericDetId> @706::allCells | ( | bool | h2_mode | ) | [static] |
Definition at line 37 of file CastorHardcodeCalibrations.cc.
References HcalCastorDetId::EM, HcalCastorDetId::HAD, HLT_VtxMuL3::result, and CastorTopology::valid().
Referenced by CastorHardcodeCalibrations::produceChannelQuality(), HcalHardcodeCalibrations::produceChannelQuality(), HcalHardcodeCalibrations::produceGains(), CastorHardcodeCalibrations::produceGains(), CastorHardcodeCalibrations::produceGainWidths(), HcalHardcodeCalibrations::produceGainWidths(), HcalHardcodeCalibrations::producePedestals(), CastorHardcodeCalibrations::producePedestals(), HcalHardcodeCalibrations::producePedestalWidths(), CastorHardcodeCalibrations::producePedestalWidths(), HcalHardcodeCalibrations::produceQIEData(), CastorHardcodeCalibrations::produceQIEData(), HcalHardcodeCalibrations::produceRespCorrs(), and HcalHardcodeCalibrations::produceZSThresholds().
00037 { 00038 static std::vector<HcalGenericDetId> result; 00039 if (result.size () <= 0) { 00040 00041 CastorTopology castortopology; 00042 HcalCastorDetId cell; 00043 HcalCastorDetId::Section section = HcalCastorDetId::EM; 00044 00045 for(int sector=1; sector<17; sector++) { 00046 for(int module=1; module<3; module++) { 00047 cell = HcalCastorDetId(section, true, sector, module); 00048 if (castortopology.valid(cell)) result.push_back(cell); 00049 cell = HcalCastorDetId(section, false, sector, module); 00050 if (castortopology.valid(cell)) result.push_back(cell); 00051 } 00052 } 00053 00054 section = HcalCastorDetId::HAD; 00055 for(int sector= 1; sector < 17; sector++){ 00056 for(int module=1; module<13; module++) { 00057 cell = HcalCastorDetId(section, true, sector, module); 00058 if(castortopology.valid(cell)) result.push_back(cell); 00059 cell = HcalCastorDetId(section, false, sector, module); 00060 if(castortopology.valid(cell)) result.push_back(cell); 00061 } 00062 } 00063 00064 return result; 00065 } 00066 00067 }