CMS 3D CMS Logo

Classes | Namespaces | Enumerations | Variables
constants.h File Reference
#include <cstdint>
#include <vector>
#include <cmath>

Go to the source code of this file.

Classes

struct  cmsdt::bx_sl_vector
 
struct  cmsdt::LATQ_TYPE
 
struct  cmsdt::metaPrimitive
 
struct  cmsdt::PARTIAL_LATQ_TYPE
 

Namespaces

 cmsdt
 

Enumerations

enum  cmsdt::algo { cmsdt::Standard = 0, cmsdt::PseudoBayes = 1, cmsdt::HoughTrans = 2 }
 
enum  cmsdt::LATERAL_CASES { cmsdt::LEFT = 0, cmsdt::RIGHT, cmsdt::NONE }
 
enum  cmsdt::MP_QUALITY {
  cmsdt::NOPATH = 0, cmsdt::LOWQ = 1, cmsdt::CLOWQ = 2, cmsdt::HIGHQ = 3,
  cmsdt::CHIGHQ = 4, cmsdt::LOWLOWQ = 6, cmsdt::HIGHLOWQ = 7, cmsdt::HIGHHIGHQ = 8
}
 
enum  cmsdt::RPC_QUALITY {
  cmsdt::NORPC = 0, cmsdt::RPC_TIME, cmsdt::RPC_ONLY, cmsdt::RPC_HIT,
  cmsdt::RPC_CONFIRM, cmsdt::RPC_ASSOCIATE
}
 
enum  cmsdt::scenario { cmsdt::MC = 0, cmsdt::DATA = 1, cmsdt::SLICE_TEST = 2 }
 

Variables

constexpr int cmsdt::BX_PER_FRAME = 2
 
constexpr int cmsdt::BX_SHIFT = 20
 
constexpr int cmsdt::CELL_HEIGHT = 13
 
constexpr int cmsdt::CELL_LENGTH = 42
 
constexpr float cmsdt::CELL_SEMIHEIGHT = 6.5
 
constexpr int cmsdt::CELL_SEMILENGTH = 21
 
constexpr int cmsdt::CH_CENTER_TO_MID_SL_X2 = 470
 
constexpr int cmsdt::CHI2RES_CONV = 1000000
 
constexpr int cmsdt::COEFF_WIDTH_COR_POSITION = 15
 
constexpr int cmsdt::COEFF_WIDTH_COR_SLOPE = 15
 
constexpr int cmsdt::COEFF_WIDTH_COR_T0 = 15
 
constexpr int cmsdt::COEFF_WIDTH_SL2_POSITION = 15
 
constexpr int cmsdt::COEFF_WIDTH_SL_POSITION = 18
 
constexpr int cmsdt::COEFF_WIDTH_SL_SLOPE = 18
 
constexpr int cmsdt::COEFF_WIDTH_SL_T0 = 15
 
constexpr int cmsdt::DIV_SHR_BITS_POS = 21
 
constexpr int cmsdt::DIV_SHR_BITS_SLOPE = 21
 
constexpr int cmsdt::DIV_SHR_BITS_SLOPE_XHH = 18
 
constexpr int cmsdt::DIV_SHR_BITS_T0 = 16
 
constexpr float cmsdt::DRIFT_SPEED = 0.0542
 
constexpr int cmsdt::DRIFT_SPEED_X4 = 889
 
constexpr int cmsdt::DTDD_MULT = 445
 
constexpr int cmsdt::DTDD_PREADD = 9
 
constexpr int cmsdt::DTDD_SHIFTR_BITS = 13
 
constexpr int cmsdt::FSEG_POS_DISCARD_LSB = 9
 
constexpr int cmsdt::FSEG_POS_SIZE = WIDTH_FULL_POS - FSEG_POS_DISCARD_LSB
 
constexpr int cmsdt::FSEG_SLOPE_DISCARD_LSB = 9
 
constexpr int cmsdt::FSEG_SLOPE_SIZE = WIDTH_FULL_SLOPE - FSEG_SLOPE_DISCARD_LSB
 
constexpr int cmsdt::FSEG_T0_BX_LSB = 2
 
constexpr int cmsdt::FSEG_T0_DISCARD_LSB = 5
 
constexpr int cmsdt::FSEG_T0_SIZE = FSEG_T0_BX_LSB + (5 - FSEG_T0_DISCARD_LSB)
 
constexpr int cmsdt::GENERIC_COEFF_WIDTH = 20
 
constexpr int cmsdt::INCREASED_RES_POS = 4
 
constexpr int cmsdt::INCREASED_RES_POS_POW = 16
 
constexpr int cmsdt::INCREASED_RES_SLOPE = 12
 
constexpr int cmsdt::INCREASED_RES_SLOPE_POW = 4096
 
constexpr int cmsdt::INCREASED_RES_SLOPE_XHH = 4
 
constexpr int cmsdt::INCREASED_RES_T0 = 0
 
constexpr float cmsdt::KRES_CONV = 65536. / 2
 
constexpr int cmsdt::LAT_MSB_BITS = 6
 
constexpr int cmsdt::LAT_P0_3H = 24
 
constexpr int cmsdt::LAT_P0_4H = 1
 
constexpr int cmsdt::LAT_P1_3H = 27
 
constexpr int cmsdt::LAT_P1_4H = 31
 
constexpr int cmsdt::LAT_P2_3H = 30
 
constexpr int cmsdt::LAT_P2_4H = 40
 
constexpr int cmsdt::LAT_TOTAL_BITS = 9
 
constexpr int cmsdt::LHC_CLK_FREQ = 25
 
constexpr int cmsdt::MAX_BX_FOR_COR = 2
 
constexpr int cmsdt::MAX_BX_IDX = 3564
 
constexpr int cmsdt::MAX_FRAME_DIF = 8
 
constexpr int cmsdt::MAX_PRIM_FOR_COR = 12
 
constexpr int cmsdt::MAX_PRIM_PER_BX_FOR_COR = 6
 
constexpr int cmsdt::MAX_VALUE_OF_TIME = (LHC_CLK_FREQ * MAX_BX_IDX + 5000)
 
constexpr float cmsdt::MAXDRIFT = 387
 
constexpr float cmsdt::MAXDRIFTTDC = 496
 
constexpr int cmsdt::N_COEFFS = 8
 
constexpr int cmsdt::NUM_CELL_COMB = 3
 
constexpr int cmsdt::NUM_CELLS_PER_BLOCK = 10
 
constexpr int cmsdt::NUM_CH_PER_LAYER = 100
 
constexpr int cmsdt::NUM_LATERALITIES = 16
 
constexpr int cmsdt::NUM_LAYERS = 4
 
constexpr int cmsdt::NUM_LAYERS_2SL = 8
 
constexpr int cmsdt::NUM_SUPERLAYERS = 3
 
constexpr int cmsdt::PATHFINDER_INPUT_HITS_LIMIT = 8
 
constexpr int cmsdt::PAYLOAD_ENTRIES = 9
 
constexpr int cmsdt::PHI_B_SHL_BITS = 7
 
constexpr double cmsdt::PHI_CONV = 0.5235988
 
constexpr int cmsdt::PHI_LUT_A_BITS = 12
 
constexpr int cmsdt::PHI_LUT_ADDR_WIDTH = 12
 
constexpr int cmsdt::PHI_LUT_B_BITS = 20
 
constexpr int cmsdt::PHI_MULT_SHR_BITS = 10
 
constexpr int cmsdt::PHI_PHIB_RES_DIFF_BITS = 6
 
constexpr int cmsdt::PHI_SIZE = 17
 
constexpr int cmsdt::PHIB_B_SHL_BITS = 7
 
constexpr int cmsdt::PHIB_LUT_A_BITS = 10
 
constexpr int cmsdt::PHIB_LUT_ADDR_WIDTH = 9
 
constexpr int cmsdt::PHIB_LUT_B_BITS = 16
 
constexpr int cmsdt::PHIB_MULT_SHR_BITS = 10
 
constexpr int cmsdt::PHIB_SIZE = 11
 
constexpr float cmsdt::PHIBRES_CONV = 4096. / 2.
 
constexpr float cmsdt::PHIRES_CONV = 65536. / 0.5
 
constexpr int cmsdt::PRECISSION_COR_POSITION = 15
 
constexpr int cmsdt::PRECISSION_COR_SLOPE = 15
 
constexpr int cmsdt::PRECISSION_COR_T0 = 15
 
constexpr int cmsdt::PRECISSION_SL_POSITION = 13
 
constexpr int cmsdt::PRECISSION_SL_SLOPE = 13
 
constexpr int cmsdt::PRECISSION_SL_T0 = 13
 
constexpr int cmsdt::PROD_RESIZE_COR_POSITION = 30
 
constexpr int cmsdt::PROD_RESIZE_COR_SLOPE = 29
 
constexpr int cmsdt::PROD_RESIZE_COR_T0 = 30
 
constexpr int cmsdt::PROD_RESIZE_SL2_POSITION = 27
 
constexpr int cmsdt::PROD_RESIZE_SL_POSITION = 30
 
constexpr int cmsdt::PROD_RESIZE_SL_SLOPE = 30
 
constexpr int cmsdt::PROD_RESIZE_SL_T0 = 28
 
constexpr int cmsdt::SIZE_SEEKT_BUFFER = 32
 
constexpr int cmsdt::SL1_CELLS_OFFSET = 48
 
constexpr int cmsdt::SLFILT_MAX_SEG1T0_TO_SEG2ARRIVAL = 24
 
constexpr float cmsdt::SLOPE_LSB = ((float)CELL_SEMILENGTH / MAXDRIFTTDC) * (1) / (CELL_SEMIHEIGHT * 16.)
 
constexpr int cmsdt::T0_CUT_TOLERANCE = 0
 
constexpr int cmsdt::TANPSI_SIZE = 15
 
constexpr int cmsdt::TDCTIME_REDUCED_SIZE = 10
 
constexpr int cmsdt::TIME_TO_TDC_COUNTS = 32
 
constexpr int cmsdt::TOTAL_BTI = 100
 
constexpr int cmsdt::TOTAL_CHANNELS = (NUM_LAYERS * NUM_CH_PER_LAYER)
 
constexpr float cmsdt::VERT_PHI1_PHI3 = 23.5
 
constexpr int cmsdt::VERT_PHI1_PHI3_INV = 558
 
constexpr int cmsdt::WIDTH_COARSED_TIME = 12
 
constexpr int cmsdt::WIDTH_DIFBX = 5
 
constexpr int cmsdt::WIDTH_FULL_CHI2 = 16
 
constexpr int cmsdt::WIDTH_FULL_POS = 17
 
constexpr int cmsdt::WIDTH_FULL_SLOPE = 14
 
constexpr int cmsdt::WIDTH_FULL_TIME = 17
 
constexpr int cmsdt::WIDTH_POS_SLOPE_CORR = 9
 
constexpr int cmsdt::WIREPOS_NORM_LSB_IGNORED = 9
 
constexpr int cmsdt::WIREPOS_WIDTH = 17
 
constexpr double cmsdt::X_POS_L3 = 0.65
 
constexpr double cmsdt::X_POS_L4 = 1.95
 
constexpr int cmsdt::X_SIZE = 18
 
constexpr int cmsdt::XI_COR_WIDTH = 14
 
constexpr int cmsdt::XI_SL_WIDTH = 12
 
constexpr float cmsdt::Z_POS_SL = 11.75
 
constexpr float cmsdt::Z_SHIFT_MB4 = -1.8
 
constexpr float cmsdt::ZRES_CONV = 65536. / 1500