CMS 3D CMS Logo

HcalLogicalMap.h
Go to the documentation of this file.
1 #ifndef HcalLogicalMap_h
2 #define HcalLogicalMap_h
3 
6 
7 #include <vector>
8 #include <memory>
9 
10 class HcalTopology;
11 
13 public:
15  std::vector<HBHEHFLogicalMapEntry>&,
16  std::vector<HOHXLogicalMapEntry>&,
17  std::vector<CALIBLogicalMapEntry>&,
18  std::vector<ZDCLogicalMapEntry>&,
19  std::vector<HTLogicalMapEntry>&,
20  std::vector<uint32_t>&,
21  std::vector<uint32_t>&,
22  std::vector<uint32_t>&,
23  std::vector<uint32_t>&,
24  std::vector<uint32_t>&,
25  std::vector<uint32_t>&,
26  std::vector<uint32_t>&,
27  std::vector<uint32_t>&);
28 
30 
31  void checkHashIds();
33  void checkIdFunctions();
34  void printMap(unsigned int mapIOV);
35  std::unique_ptr<HcalElectronicsMap> generateHcalElectronicsMap();
36  const DetId getDetId(const HcalElectronicsId&);
38  uint32_t static makeEntryNumber(bool, int, int);
39 
40 private:
41  void printHBEFMap(FILE* hbefmapfile);
42  void printHOXMap(FILE* hoxmapfile);
43  void printCalibMap(FILE* calibmapfile);
44  void printZDCMap(FILE* zdcmapfile);
45  void printHTMap(FILE* htmapfile);
46 
47  unsigned int mapIOV_;
48 
49  std::vector<HBHEHFLogicalMapEntry> HBHEHFEntries_;
50  std::vector<HOHXLogicalMapEntry> HOHXEntries_;
51  std::vector<CALIBLogicalMapEntry> CALIBEntries_;
52  std::vector<ZDCLogicalMapEntry> ZDCEntries_;
53  std::vector<HTLogicalMapEntry> HTEntries_;
54  std::vector<uint32_t> LinearIndex2Entry_;
55  std::vector<uint32_t> HbHash2Entry_;
56  std::vector<uint32_t> HeHash2Entry_;
57  std::vector<uint32_t> HfHash2Entry_;
58  std::vector<uint32_t> HtHash2Entry_;
59  std::vector<uint32_t> HoHash2Entry_;
60  std::vector<uint32_t> HxCalibHash2Entry_;
61  std::vector<uint32_t> ZdcHash2Entry_;
62 
64 };
65 
66 #endif
HcalLogicalMap::printHOXMap
void printHOXMap(FILE *hoxmapfile)
Definition: HcalLogicalMap.cc:197
HcalElectronicsMap.h
HcalLogicalMap::HBHEHFEntries_
std::vector< HBHEHFLogicalMapEntry > HBHEHFEntries_
Definition: HcalLogicalMap.h:49
HcalLogicalMap::HcalLogicalMap
HcalLogicalMap(const HcalTopology *, std::vector< HBHEHFLogicalMapEntry > &, std::vector< HOHXLogicalMapEntry > &, std::vector< CALIBLogicalMapEntry > &, std::vector< ZDCLogicalMapEntry > &, std::vector< HTLogicalMapEntry > &, std::vector< uint32_t > &, std::vector< uint32_t > &, std::vector< uint32_t > &, std::vector< uint32_t > &, std::vector< uint32_t > &, std::vector< uint32_t > &, std::vector< uint32_t > &, std::vector< uint32_t > &)
Definition: HcalLogicalMap.cc:17
HcalLogicalMap::CALIBEntries_
std::vector< CALIBLogicalMapEntry > CALIBEntries_
Definition: HcalLogicalMap.h:51
HcalLogicalMap::checkIdFunctions
void checkIdFunctions()
Definition: HcalLogicalMap.cc:304
HcalLogicalMap::HbHash2Entry_
std::vector< uint32_t > HbHash2Entry_
Definition: HcalLogicalMap.h:55
HcalTopology
Definition: HcalTopology.h:26
HcalLogicalMap::makeEntryNumber
static uint32_t makeEntryNumber(bool, int, int)
Definition: HcalLogicalMap.cc:66
HcalLogicalMap::HTEntries_
std::vector< HTLogicalMapEntry > HTEntries_
Definition: HcalLogicalMap.h:53
HcalLogicalMap::generateHcalElectronicsMap
std::unique_ptr< HcalElectronicsMap > generateHcalElectronicsMap()
Definition: HcalLogicalMap.cc:160
HcalLogicalMap::HfHash2Entry_
std::vector< uint32_t > HfHash2Entry_
Definition: HcalLogicalMap.h:57
HcalLogicalMap::mapIOV_
unsigned int mapIOV_
Definition: HcalLogicalMap.h:47
HcalLogicalMap::LinearIndex2Entry_
std::vector< uint32_t > LinearIndex2Entry_
Definition: HcalLogicalMap.h:54
HcalLogicalMap::printZDCMap
void printZDCMap(FILE *zdcmapfile)
Definition: HcalLogicalMap.cc:225
HcalLogicalMap::printHTMap
void printHTMap(FILE *htmapfile)
Definition: HcalLogicalMap.cc:239
DetId
Definition: DetId.h:17
HcalLogicalMap::ZdcHash2Entry_
std::vector< uint32_t > ZdcHash2Entry_
Definition: HcalLogicalMap.h:61
HcalLogicalMap::~HcalLogicalMap
~HcalLogicalMap()
Definition: HcalLogicalMap.cc:64
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
HcalFrontEndId
Definition: HcalFrontEndId.h:8
HcalLogicalMap::printMap
void printMap(unsigned int mapIOV)
Definition: HcalLogicalMap.cc:74
HcalLogicalMap::checkHashIds
void checkHashIds()
Definition: HcalLogicalMap.cc:393
HcalLogicalMap::checkElectronicsHashIds
void checkElectronicsHashIds()
Definition: HcalLogicalMap.cc:520
HcalLogicalMap::HOHXEntries_
std::vector< HOHXLogicalMapEntry > HOHXEntries_
Definition: HcalLogicalMap.h:50
HcalLogicalMap::topo_
const HcalTopology * topo_
Definition: HcalLogicalMap.h:63
HcalLogicalMap::HoHash2Entry_
std::vector< uint32_t > HoHash2Entry_
Definition: HcalLogicalMap.h:59
HcalLogicalMap::ZDCEntries_
std::vector< ZDCLogicalMapEntry > ZDCEntries_
Definition: HcalLogicalMap.h:52
HcalLogicalMap::getHcalFrontEndId
const HcalFrontEndId getHcalFrontEndId(const DetId &)
Definition: HcalLogicalMap.cc:269
HcalLogicalMap::HtHash2Entry_
std::vector< uint32_t > HtHash2Entry_
Definition: HcalLogicalMap.h:58
HcalLogicalMap::printCalibMap
void printCalibMap(FILE *calibmapfile)
Definition: HcalLogicalMap.cc:211
HcalLogicalMap::HxCalibHash2Entry_
std::vector< uint32_t > HxCalibHash2Entry_
Definition: HcalLogicalMap.h:60
HcalLogicalMap::printHBEFMap
void printHBEFMap(FILE *hbefmapfile)
Definition: HcalLogicalMap.cc:182
HcalLogicalMap::getDetId
const DetId getDetId(const HcalElectronicsId &)
Definition: HcalLogicalMap.cc:254
HcalLogicalMap::HeHash2Entry_
std::vector< uint32_t > HeHash2Entry_
Definition: HcalLogicalMap.h:56
HcalLogicalMap
Definition: HcalLogicalMap.h:12
HcalMappingEntry.h