File indexing completed on 2023-03-17 11:14:03
0001 #ifndef L1Trigger_TrackTrigger_SensorModule_h
0002 #define L1Trigger_TrackTrigger_SensorModule_h
0003
0004 #include "DataFormats/DetId/interface/DetId.h"
0005
0006 namespace tt {
0007
0008 class Setup;
0009
0010
0011 class SensorModule {
0012 public:
0013 SensorModule(const Setup* setup, const DetId& detId, int dtcId, int modId);
0014 ~SensorModule() {}
0015
0016 enum Type { BarrelPS, Barrel2S, DiskPS, Disk2S, NumTypes };
0017
0018
0019 Type type() const { return type_; }
0020
0021 int dtcId() const { return dtcId_; }
0022
0023 int modId() const { return modId_; }
0024
0025 bool side() const { return side_; }
0026
0027 bool barrel() const { return barrel_; }
0028
0029 bool psModule() const { return psModule_; }
0030
0031 bool flipped() const { return flipped_; }
0032
0033 bool signRow() const { return signRow_; }
0034
0035 bool signCol() const { return signCol_; }
0036
0037 bool signBend() const { return signBend_; }
0038
0039 int numColumns() const { return numColumns_; }
0040
0041 int numRows() const { return numRows_; }
0042
0043 int layerId() const { return layerId_; }
0044
0045 double r() const { return r_; }
0046
0047 double phi() const { return phi_; }
0048
0049 double z() const { return z_; }
0050
0051 double sep() const { return sep_; }
0052
0053 double pitchRow() const { return pitchRow_; }
0054
0055 double pitchCol() const { return pitchCol_; }
0056
0057 double tilt() const { return tilt_; }
0058
0059 double sinTilt() const { return sinTilt_; }
0060
0061 double cosTilt() const { return cosTilt_; }
0062
0063 int encodedR() const { return encodedR_; }
0064
0065 double offsetR() const { return offsetR_; }
0066
0067 double offsetZ() const { return offsetZ_; }
0068
0069 int windowSize() const { return windowSize_; }
0070
0071 double tiltCorrection(double cot) const { return std::abs(tiltCorrectionSlope_ * cot) + tiltCorrectionIntercept_; }
0072
0073 private:
0074 enum TypeTilt { nonBarrel = 0, tiltedMinus = 1, tiltedPlus = 2, flat = 3 };
0075
0076 DetId detId_;
0077
0078 int dtcId_;
0079
0080 int modId_;
0081
0082 bool side_;
0083
0084 bool barrel_;
0085
0086 bool psModule_;
0087
0088 bool flipped_;
0089
0090 bool signRow_;
0091
0092 bool signCol_;
0093
0094 bool signBend_;
0095
0096 int numColumns_;
0097
0098 int numRows_;
0099
0100 int layerId_;
0101
0102 double r_;
0103
0104 double phi_;
0105
0106 double z_;
0107
0108 double sep_;
0109
0110 double pitchRow_;
0111
0112 double pitchCol_;
0113
0114 double tilt_;
0115
0116 double sinTilt_;
0117
0118 double cosTilt_;
0119
0120 Type type_;
0121
0122 int encodedR_;
0123
0124 double offsetR_;
0125
0126 double offsetZ_;
0127
0128 int windowSize_;
0129
0130 double tiltCorrectionSlope_;
0131
0132 double tiltCorrectionIntercept_;
0133 };
0134
0135 }
0136
0137 #endif