Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TowerInfoDefs.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TowerInfoDefs.h
1 #ifndef CALOBASE_TOWERINFODEFS_H
2 #define CALOBASE_TOWERINFODEFS_H
3 
4 #include "RawTowerDefs.h"
5 
6 
7 namespace TowerInfoDefs
8 {
9 
10  unsigned int encode_emcal(const unsigned int towerIndex);
11  unsigned int encode_emcal (const unsigned int etabin, const unsigned int phibin);
12  unsigned int decode_emcal(const unsigned int tower_key);
13 
14  unsigned int encode_hcal(const unsigned int towerIndex);
15  unsigned int encode_hcal (const unsigned int etabin, const unsigned int phibin);
16  unsigned int decode_hcal(const unsigned int tower_key);
17 
18  unsigned int encode_epd(const unsigned int towerIndex);
19  unsigned int encode_epd (const unsigned int arm, const unsigned int rbin, const unsigned int phibin);
20  unsigned int decode_epd(const unsigned int tower_key);
21 
22 
23 
24 
25  unsigned int get_epd_arm(unsigned int key);
26  unsigned int get_epd_sector(unsigned int key);
27  unsigned int get_epd_rbin(unsigned int key);
28  unsigned int get_epd_phibin(unsigned int key);
29  unsigned int getCaloTowerPhiBin(const unsigned int key);
30  unsigned int getCaloTowerEtaBin(const unsigned int key) ;
31 
32  int get_zdc_side(const unsigned int key) ;
33  unsigned int get_zdc_module_index(const unsigned int key);
34  int get_smd_side(const unsigned int key);
35  int get_smd_xy(const unsigned int key);
36  int get_smd_finger_index(const unsigned int key);
37 
38  unsigned int get_mbd_arm(const unsigned int key);
39  unsigned int get_mbd_side(const unsigned int key); // side is same as arm
40  unsigned int get_mbd_type(const unsigned int key); // 0 for time 1 for charge
41  unsigned int get_mbd_channel(const unsigned int key);
42 
43 
44  unsigned int encode_zdc(const unsigned int towerIndex);
45  unsigned int encode_smd(const unsigned int towerIndex);
46  unsigned int decode_smd(const unsigned int key);
47  unsigned int decode_zdc(const unsigned int key);
48 
49  unsigned int encode_mbd(const unsigned int towerIndex);
50  unsigned int decode_mbd(const unsigned int key);
51 
52 
53  RawTowerDefs::keytype get_emcal_geokey_at_channel(const unsigned int towerIndex);
54  RawTowerDefs::keytype get_hcalin_geokey_at_channel(const unsigned int towerIndex) ;
55  RawTowerDefs::keytype get_hcalout_geokey_at_channel(const unsigned int towerIndex) ;
56 
57 
58 
59 }
60 #endif