CSCTFConstants

Digis_Info

Layer_Info

MPC_stubs

Pattern_Info

WG_and_Strip

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
#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