Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:25

0001 #ifndef L1CSCTrackFinder_CSCTFConstants_h
0002 #define L1CSCTrackFinder_CSCTFConstants_h
0003 
0004 /**
0005  * \class CSCTFConstants
0006  * \remark Port of ChamberConstants from ORCA
0007  *
0008  * Static interface to basic chamber constants.
0009  */
0010 #include <DataFormats/L1CSCTrackFinder/interface/CSCBitWidths.h>
0011 #include <cmath>
0012 
0013 class CSCTFConstants {
0014 public:
0015   enum WG_and_Strip {
0016     MAX_NUM_WIRES = 119,
0017     MAX_NUM_STRIPS = 80,
0018     MAX_NUM_STRIPS_7CFEBS = 112,
0019     NUM_DI_STRIPS = 40 + 1,  // Add 1 to allow for staggering of strips
0020     NUM_HALF_STRIPS = 160 + 1,
0021     NUM_HALF_STRIPS_7CFEBS = 224 + 1
0022   };
0023 
0024   enum Layer_Info { NUM_LAYERS = 6, KEY_LAYER = 4 };  // shouldn't key layer be 3?
0025 
0026   enum Pattern_Info {
0027     NUM_ALCT_PATTERNS = 3,
0028     NUM_CLCT_PATTERNS = 8,
0029     MAX_CLCT_PATTERNS = 1 << CSCBitWidths::CLCT_PATTERN_BITS
0030   };
0031 
0032   enum Digis_Info { MAX_DIGIS_PER_ALCT = 10, MAX_DIGIS_PER_CLCT = 8 };
0033 
0034   static constexpr int etaBins = 1 << CSCBitWidths::kGlobalEtaBitWidth;
0035 
0036   enum MPC_stubs { maxStubs = 3 };
0037 
0038   // Eta
0039   const static double minEta;
0040   const static double maxEta;
0041 
0042   const static double RAD_PER_DEGREE;  // where to get PI from?
0043 
0044   /// The center of the first "perfect" sector in phi.
0045   const static double SECTOR1_CENT_DEG;
0046   const static double SECTOR1_CENT_RAD;
0047 
0048   /**
0049    * Sector size is 62 degrees.  Nowadays (in ORCA6) the largest size
0050    * of ideal sectors is 61.37 degrees (it is more than 60 because of
0051    * overlaps between sectors), but we leave some more space to handle
0052    * movements of the disks of about 8 mm.
0053    */
0054   const static double SECTOR_DEG;
0055   const static double SECTOR_RAD;  // radians
0056   // needs BX info and some special station 1 info
0057 };
0058 
0059 #endif