File indexing completed on 2021-02-14 13:30:38
0001 #ifndef L1Trigger_TrackerDTC_SensorModule_h
0002 #define L1Trigger_TrackerDTC_SensorModule_h
0003
0004 #include "DataFormats/DetId/interface/DetId.h"
0005
0006 namespace trackerDTC {
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 sin() const { return sin_; }
0060
0061 double cos() const { return cos_; }
0062
0063 int encodedR() const { return encodedR_; }
0064
0065 int encodedLayerId() const { return encodedLayerId_; }
0066
0067 double offsetR() const { return offsetR_; }
0068
0069 double offsetZ() const { return offsetZ_; }
0070
0071 int windowSize() const { return windowSize_; }
0072
0073 private:
0074
0075 DetId detId_;
0076
0077 int dtcId_;
0078
0079 int modId_;
0080
0081 bool side_;
0082
0083 bool barrel_;
0084
0085 bool psModule_;
0086
0087 bool flipped_;
0088
0089 bool signRow_;
0090
0091 bool signCol_;
0092
0093 bool signBend_;
0094
0095 int numColumns_;
0096
0097 int numRows_;
0098
0099 int layerId_;
0100
0101 double r_;
0102
0103 double phi_;
0104
0105 double z_;
0106
0107 double sep_;
0108
0109 double pitchRow_;
0110
0111 double pitchCol_;
0112
0113 double tilt_;
0114
0115 double sin_;
0116
0117 double cos_;
0118
0119 Type type_;
0120
0121 int encodedR_;
0122
0123 int encodedLayerId_;
0124
0125 double offsetR_;
0126
0127 double offsetZ_;
0128
0129 int windowSize_;
0130 };
0131
0132 }
0133
0134 #endif