/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/L1CSCTrackFinder/interface/CSCTFConstants.h
59 строк
2 KB
Ivan Razumov
[CPP20][L1,UPGRADE] Replace some enums with constexpr ints
26 мар 2024, 13:38
26 мар 2024, 13:38
57f96fb
Код
Авторство
О чём код?
#ifndef L1CSCTrackFinder_CSCTFConstants_h #define L1CSCTrackFinder_CSCTFConstants_h /** * \class CSCTFConstants * \remark Port of ChamberConstants from ORCA * * Static interface to basic chamber constants. */ #include <DataFormats/L1CSCTrackFinder/interface/CSCBitWidths.h> #include <cmath> class CSCTFConstants { public: enum WG_and_Strip { MAX_NUM_WIRES = 119, MAX_NUM_STRIPS = 80, MAX_NUM_STRIPS_7CFEBS = 112, NUM_DI_STRIPS = 40 + 1, // Add 1 to allow for staggering of strips NUM_HALF_STRIPS = 160 + 1, NUM_HALF_STRIPS_7CFEBS = 224 + 1 }; enum Layer_Info { NUM_LAYERS = 6, KEY_LAYER = 4 }; // shouldn't key layer be 3? enum Pattern_Info { NUM_ALCT_PATTERNS = 3, NUM_CLCT_PATTERNS = 8, MAX_CLCT_PATTERNS = 1 << CSCBitWidths::CLCT_PATTERN_BITS }; enum Digis_Info { MAX_DIGIS_PER_ALCT = 10, MAX_DIGIS_PER_CLCT = 8 }; static constexpr int etaBins = 1 << CSCBitWidths::kGlobalEtaBitWidth; enum MPC_stubs { maxStubs = 3 }; // Eta const static double minEta; const static double maxEta; const static double RAD_PER_DEGREE; // where to get PI from? /// The center of the first "perfect" sector in phi. const static double SECTOR1_CENT_DEG; const static double SECTOR1_CENT_RAD; /** * Sector size is 62 degrees. Nowadays (in ORCA6) the largest size * of ideal sectors is 61.37 degrees (it is more than 60 because of * overlaps between sectors), but we leave some more space to handle * movements of the disks of about 8 mm. */ const static double SECTOR_DEG; const static double SECTOR_RAD; // radians // needs BX info and some special station 1 info }; #endif