CMS 3D CMS Logo

HcalLogicalMap.h
Go to the documentation of this file.
1 #ifndef HcalLogicalMap_h
2 #define HcalLogicalMap_h
3 
6 #include <vector>
7 class HcalTopology;
8 
10  public:
11 
13  std::vector<HBHEHFLogicalMapEntry>&,
14  std::vector<HOHXLogicalMapEntry>&,
15  std::vector<CALIBLogicalMapEntry>&,
16  std::vector<ZDCLogicalMapEntry>&,
17  std::vector<HTLogicalMapEntry>&,
18  std::vector<uint32_t>&,
19  std::vector<uint32_t>&,
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 
27  ~HcalLogicalMap( );
28 
29  void checkHashIds();
31  void checkIdFunctions();
32  void printMap( unsigned int mapIOV );
34  const DetId getDetId(const HcalElectronicsId&);
36  uint32_t static makeEntryNumber(bool,int,int);
37 
38  private:
39 
40  void printHBEFMap( FILE* hbefmapfile );
41  void printHOXMap( FILE* hoxmapfile );
42  void printCalibMap( FILE* calibmapfile );
43  void printZDCMap( FILE* zdcmapfile );
44  void printHTMap( FILE* htmapfile );
45 
46  unsigned int mapIOV_;
47 
48  std::vector<HBHEHFLogicalMapEntry> HBHEHFEntries_;
49  std::vector<HOHXLogicalMapEntry> HOHXEntries_;
50  std::vector<CALIBLogicalMapEntry> CALIBEntries_;
51  std::vector<ZDCLogicalMapEntry> ZDCEntries_;
52  std::vector<HTLogicalMapEntry> HTEntries_;
53  std::vector<uint32_t> LinearIndex2Entry_;
54  std::vector<uint32_t> HbHash2Entry_;
55  std::vector<uint32_t> HeHash2Entry_;
56  std::vector<uint32_t> HfHash2Entry_;
57  std::vector<uint32_t> HtHash2Entry_;
58  std::vector<uint32_t> HoHash2Entry_;
59  std::vector<uint32_t> HxCalibHash2Entry_;
60  std::vector<uint32_t> ZdcHash2Entry_;
61 
63 };
64 
65 #endif
static uint32_t makeEntryNumber(bool, int, int)
void printCalibMap(FILE *calibmapfile)
std::vector< uint32_t > HeHash2Entry_
void printHTMap(FILE *htmapfile)
std::vector< HBHEHFLogicalMapEntry > HBHEHFEntries_
void printHOXMap(FILE *hoxmapfile)
void printZDCMap(FILE *zdcmapfile)
std::vector< uint32_t > HbHash2Entry_
std::vector< uint32_t > LinearIndex2Entry_
std::vector< uint32_t > HoHash2Entry_
std::vector< uint32_t > ZdcHash2Entry_
const HcalTopology * topo_
unsigned int mapIOV_
HcalElectronicsMap generateHcalElectronicsMap()
void checkElectronicsHashIds()
std::vector< HTLogicalMapEntry > HTEntries_
void printMap(unsigned int mapIOV)
const HcalFrontEndId getHcalFrontEndId(const DetId &)
Definition: DetId.h:18
std::vector< HOHXLogicalMapEntry > HOHXEntries_
void printHBEFMap(FILE *hbefmapfile)
std::vector< uint32_t > HtHash2Entry_
std::vector< CALIBLogicalMapEntry > CALIBEntries_
const DetId getDetId(const HcalElectronicsId &)
std::vector< ZDCLogicalMapEntry > ZDCEntries_
std::vector< uint32_t > HxCalibHash2Entry_
std::vector< uint32_t > HfHash2Entry_
Readout chain identification for Hcal.
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 > &)