#include <memory>
#include <iostream>
#include "FWCore/Framework/interface/ValidityInterval.h"
#include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "CalibCalorimetry/HcalAlgos/interface/HcalDbHardcode.h"
#include "CondFormats/HcalObjects/interface/HcalPedestals.h"
#include "CondFormats/HcalObjects/interface/HcalPedestalWidths.h"
#include "CondFormats/HcalObjects/interface/HcalGains.h"
#include "CondFormats/HcalObjects/interface/HcalGainWidths.h"
#include "CondFormats/HcalObjects/interface/HcalElectronicsMap.h"
#include "CondFormats/HcalObjects/interface/HcalChannelQuality.h"
#include "CondFormats/HcalObjects/interface/HcalQIEData.h"
#include "CondFormats/DataRecord/interface/HcalPedestalsRcd.h"
#include "CondFormats/DataRecord/interface/HcalPedestalWidthsRcd.h"
#include "CondFormats/DataRecord/interface/HcalGainsRcd.h"
#include "CondFormats/DataRecord/interface/HcalGainWidthsRcd.h"
#include "CondFormats/DataRecord/interface/HcalElectronicsMapRcd.h"
#include "CondFormats/DataRecord/interface/HcalChannelQualityRcd.h"
#include "CondFormats/DataRecord/interface/HcalQIEDataRcd.h"
#include "CondFormats/DataRecord/interface/HcalRespCorrsRcd.h"
#include "CondFormats/DataRecord/interface/HcalZSThresholdsRcd.h"
#include "Geometry/ForwardGeometry/interface/ZdcTopology.h"
#include "Geometry/CaloTopology/interface/HcalTopology.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "HcalHardcodeCalibrations.h"
Go to the source code of this file.
Functions | |
std::vector< HcalGenericDetId > | allCells (bool h2_mode) |
std::vector<HcalGenericDetId> @804::allCells | ( | bool | h2_mode | ) | [static] |
Definition at line 45 of file HcalHardcodeCalibrations.cc.
References HcalZDCDetId::EM, eta, HcalZDCDetId::HAD, HcalZDCDetId::LUM, phi, HLT_VtxMuL3::result, HcalTopology::valid(), and ZdcTopology::valid().
00045 { 00046 static std::vector<HcalGenericDetId> result; 00047 if (result.size () <= 0) { 00048 HcalTopology hcaltopology(h2_mode); 00049 for (int eta = -50; eta < 50; eta++) { 00050 for (int phi = 0; phi < 100; phi++) { 00051 for (int depth = 1; depth < 5; depth++) { 00052 for (int det = 1; det < 5; det++) { 00053 HcalDetId cell ((HcalSubdetector) det, eta, phi, depth); 00054 if (hcaltopology.valid(cell)) result.push_back (cell); 00055 } 00056 } 00057 } 00058 } 00059 ZdcTopology zdctopology; 00060 HcalZDCDetId zcell; 00061 HcalZDCDetId::Section section = HcalZDCDetId::EM; 00062 for(int depth= 1; depth < 6; depth++){ 00063 zcell = HcalZDCDetId(section, true, depth); 00064 if(zdctopology.valid(zcell)) result.push_back(zcell); 00065 zcell = HcalZDCDetId(section, false, depth); 00066 if(zdctopology.valid(zcell)) result.push_back(zcell); 00067 } 00068 section = HcalZDCDetId::HAD; 00069 for(int depth= 1; depth < 5; depth++){ 00070 zcell = HcalZDCDetId(section, true, depth); 00071 if(zdctopology.valid(zcell)) result.push_back(zcell); 00072 zcell = HcalZDCDetId(section, false, depth); 00073 if(zdctopology.valid(zcell)) result.push_back(zcell); 00074 } 00075 section = HcalZDCDetId::LUM; 00076 for(int depth= 1; depth < 3; depth++){ 00077 zcell = HcalZDCDetId(section, true, depth); 00078 if(zdctopology.valid(zcell)) result.push_back(zcell); 00079 zcell = HcalZDCDetId(section, false, depth); 00080 if(zdctopology.valid(zcell)) result.push_back(zcell); 00081 } 00082 } 00083 return result; 00084 }