#ifndef _CAL_CONSTANTS_HH_ #define _CAL_CONSTANTS_HH_ ////////////////////////////////////////////////////////////////////////// // // Component: CalConstants.hh // Purpose: This header contains simple calorimeter constants. // Old Run1 parameters kept (tempoarily) for backward // compatibility // // Created: 07/05/99 Pierre Savard // History: // ////////////////////////////////////////////////////////////////////////// #include "misc.hh" typedef enum { CEM, PEM, CHA, WHA, PHA, STRIP, CRACK, PPR, MIP, DEFAULT, ERR } Detector; // Number of annuli (ieta) in the Run 2 CDF detector: const int TOWER_NETA = 52; const int TENETA = 52; // Max number of phis in an annulus in the Run 2 CDF detector: const int TOWER_MAX_NPHI = 48; const int TENPHI = 48; // Number of tower types in the Run 2 CDF detector: const int NUM_TOWER_TYPES = 9; const int TENTYP = 9; // total number of TOWE calorimeter cells const int NTOWERS = 1536; const int NCALCELLS = 1536; // Tower type for each iEta: const int TOWER_TYPE[TOWER_NETA] = { 8,8,8,8,7,6,6,6,5,5,5,5,5,5,4,3,2,2, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 2,2,3,4,5,5,5,5,5,5,6,6,6,7,8,8,8,8 }; const int TETTYP[TENETA] = { 8,8,8,8,7,6,6,6,5,5,5,5,5,5,4,3,2,2, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 2,2,3,4,5,5,5,5,5,5,6,6,6,7,8,8,8,8 }; const int TOWER_TYPE5[12] = { 8,9,10,11,12,13,38,39,40,41,42,43 }; // Number of phi cells per tower type: const int TOWER_PHI_SEG[NUM_TOWER_TYPES] = { 24,24,24,24,24,48,24,24,24 }; const int TEPSEG[TENTYP] = { 24,24,24,24,24,48,24,24,24 }; const int CAL_EM_GRANULARITY [NUM_TOWER_TYPES] = {24,24,24,48,48,48,24,24,24}; const int CAL_N_EM_COMPARTMENTS [NUM_TOWER_TYPES] = { 1, 1, 1, 1, 1, 1, 1, 1, 1}; const int CAL_N_HAD_COMPARTMENTS[NUM_TOWER_TYPES] = { 1, 2, 1, 1, 2, 1, 1, 2, 1}; const int CAL_N_EM_PMT [NUM_TOWER_TYPES] = { 2, 2, 2, 4, 4, 2, 2, 2, 0}; const int CAL_N_HAD_PMT [NUM_TOWER_TYPES] = { 2, 4, 2, 2, 4, 2, 2, 2, 0}; #endif // _CAL_CONSTANTS_