Back to home page

Project CMSSW displayed by LXR

 
 

    


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   // representation of an outer tracker sensormodule
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     // module type (BarrelPS, Barrel2S, DiskPS, Disk2S)
0019     Type type() const { return type_; }
0020     // dtc id [0-215]
0021     int dtcId() const { return dtcId_; }
0022     // module on dtc id [0-71]
0023     int modId() const { return modId_; }
0024     // +z or -z
0025     bool side() const { return side_; }
0026     // barrel or endcap
0027     bool barrel() const { return barrel_; }
0028     // Pixel-Strip or 2Strip module
0029     bool psModule() const { return psModule_; }
0030     // main sensor inside or outside
0031     bool flipped() const { return flipped_; }
0032     // TTStub row needs flip of sign
0033     bool signRow() const { return signRow_; }
0034     // TTStub col needs flip of sign
0035     bool signCol() const { return signCol_; }
0036     // TTStub bend needs flip of sign
0037     bool signBend() const { return signBend_; }
0038     // number of columns [2S=2,PS=8]
0039     int numColumns() const { return numColumns_; }
0040     // number of rows [2S=8*127,PS=8*120]
0041     int numRows() const { return numRows_; }
0042     // layer id [1-6,11-15]
0043     int layerId() const { return layerId_; }
0044     // module radius in cm
0045     double r() const { return r_; }
0046     // module phi w.r.t. detector region centre in rad
0047     double phi() const { return phi_; }
0048     // module z in cm
0049     double z() const { return z_; }
0050     // sensor separation in cm
0051     double sep() const { return sep_; }
0052     // sensor pitch in cm [strip=.009,pixel=.01]
0053     double pitchRow() const { return pitchRow_; }
0054     // sensor length in cm [strip=5,pixel=.15625]
0055     double pitchCol() const { return pitchCol_; }
0056     // module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
0057     double tilt() const { return tilt_; }
0058     // sinus of module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
0059     double sin() const { return sin_; }
0060     // cosinus of module tilt measured w.r.t. beam axis (+-1=endcap), tk layout measures w.r.t. radial axis
0061     double cos() const { return cos_; }
0062     // encoded radius of disk2S stubs, used in Hybrid
0063     int encodedR() const { return encodedR_; }
0064     // encoded layer id [0-3]
0065     int encodedLayerId() const { return encodedLayerId_; }
0066     // stub radius offset for barrelPS, barrel2S, used in Hybrid
0067     double offsetR() const { return offsetR_; }
0068     // stub z offset for diskPS, disk2S, used in Hybrid
0069     double offsetZ() const { return offsetZ_; }
0070     // bend window size in half strip units
0071     int windowSize() const { return windowSize_; }
0072 
0073   private:
0074     // cmssw det id
0075     DetId detId_;
0076     // dtc id [0-215]
0077     int dtcId_;
0078     // module on dtc id [0-71]
0079     int modId_;
0080     // +z or -z
0081     bool side_;
0082     // barrel or endcap
0083     bool barrel_;
0084     // Pixel-Strip or 2Strip module
0085     bool psModule_;
0086     // main sensor inside or outside
0087     bool flipped_;
0088     // TTStub row needs flip of sign
0089     bool signRow_;
0090     // TTStub col needs flip of sign
0091     bool signCol_;
0092     // TTStub bend needs flip of sign
0093     bool signBend_;
0094     // number of columns [2S=2,PS=8]
0095     int numColumns_;
0096     // number of rows [2S=8*127,PS=8*120]
0097     int numRows_;
0098     // layer id [1-6,11-15]
0099     int layerId_;
0100     // module radius in cm
0101     double r_;
0102     // module phi w.r.t. detector region centre in rad
0103     double phi_;
0104     // module z in cm
0105     double z_;
0106     // sensor separation in cm
0107     double sep_;
0108     // sensor pitch in cm [strip=.009,pixel=.01]
0109     double pitchRow_;
0110     // sensor length in cm [strip=5,pixel=.15625]
0111     double pitchCol_;
0112     // module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
0113     double tilt_;
0114     // sinus of module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
0115     double sin_;
0116     // cosinus of module tilt measured w.r.t. beam axis (+-1=endcap), tk layout measures w.r.t. radial axis
0117     double cos_;
0118     // module type (barrelPS, barrel2S, diskPS, disk2S)
0119     Type type_;
0120     // encoded radius of disk2S stubs, used in Hybrid
0121     int encodedR_;
0122     // encoded layer id [0-3]
0123     int encodedLayerId_;
0124     // stub radius offset for barrelPS, barrel2S, used in Hybrid
0125     double offsetR_;
0126     // stub z offset for diskPS, disk2S, used in Hybrid
0127     double offsetZ_;
0128     // bend window size in half strip units
0129     int windowSize_;
0130   };
0131 
0132 }  // namespace trackerDTC
0133 
0134 #endif