CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ProcConfigurationBase.h
Go to the documentation of this file.
1 /*
2  * ProcConfigurationBase.h
3  *
4  * Created on: Jan 30, 2019
5  * Author: Karol Bunkowski kbunkow@cern.ch
6  */
7 
8 #ifndef L1T_OmtfP1_PROCCONFIGURATIONBASE_H_
9 #define L1T_OmtfP1_PROCCONFIGURATIONBASE_H_
11 
13 public:
15  virtual ~ProcConfigurationBase();
16 
20  virtual void configureFromEdmParameterSet(const edm::ParameterSet& edmParameterSet);
21 
22  virtual unsigned int nPhiBins() const = 0;
23 
24  virtual double hwPtToGev(int hwPt) const = 0;
25 
27  virtual int ptGevToHw(double ptGev) const = 0;
28 
29  //processor internal phi scale
30  virtual int getProcScalePhi(double phiRad, double procPhiZeroRad = 0) const = 0;
31 
32  virtual int etaToHwEta(double eta) const = 0;
33 
34  //returns address for the pdf LUTs
35  virtual unsigned int ptHwToPtBin(int ptHw) const { return 0; }
36 
37  virtual unsigned int ptGeVToPtBin(float ptGeV) const { return 0; }
38 
39  //returns address for the pdf LUTs
40  virtual unsigned int etaHwToEtaBin(int etaHw) const { return 0; }
41 
42  virtual int foldPhi(int phi) const;
43 
44  virtual unsigned int nLayers() const = 0;
45 
46  virtual bool isBendingLayer(unsigned int iLayer) const = 0;
47 
48  virtual unsigned int getBxToProcess() const { return 1; }
49 
50  virtual int cscLctCentralBx() const { return cscLctCentralBx_; }
51 
52  virtual void setCscLctCentralBx(int lctCentralBx) { this->cscLctCentralBx_ = lctCentralBx; }
53 
55 
58  }
59 
60  virtual unsigned int getRpcMaxClusterCnt() const { return rpcMaxClusterCnt; }
61 
62  virtual void setRpcMaxClusterCnt(unsigned int rpcMaxClusterCnt = 2) { this->rpcMaxClusterCnt = rpcMaxClusterCnt; }
63 
64  virtual unsigned int getRpcMaxClusterSize() const { return rpcMaxClusterSize; }
65 
66  virtual void setRpcMaxClusterSize(unsigned int rpcMaxClusterSize = 4) { this->rpcMaxClusterSize = rpcMaxClusterSize; }
67 
68  virtual int getMinDtPhiQuality() const { return minDtPhiQuality; }
69 
71 
72  virtual int getMinDtPhiBQuality() const { return minDtPhiBQuality; }
73 
75 
76  virtual bool getFixCscGeometryOffset() const { return fixCscGeometryOffset; }
77 
79  return this->fixCscGeometryOffset = fixCscGeometryOffset;
80  }
81 
82 private:
83  int cscLctCentralBx_ = 8; //CSCConstants::LCT_CENTRAL_BX;
84 
85  //parameters of the RpcClusterization
86  unsigned int rpcMaxClusterSize = 3;
87  unsigned int rpcMaxClusterCnt = 2;
88 
90  // if true no cluster is return if there is more clusters then maxClusterCnt (counted regardless of the size)
91 
92  int minDtPhiQuality = 2;
93 
94  int minDtPhiBQuality = 2; //used on the top of the minDtPhiQuality
95 
96  bool fixCscGeometryOffset = false;
97 };
98 
99 #endif /* L1T_OmtfP1_PROCCONFIGURATIONBASE_H_ */
virtual bool setFixCscGeometryOffset(bool fixCscGeometryOffset)
virtual void setMinDtPhiBQuality(int minDtPhiBQuality=2)
virtual int getMinDtPhiBQuality() const
virtual void setRpcMaxClusterSize(unsigned int rpcMaxClusterSize=4)
virtual void configureFromEdmParameterSet(const edm::ParameterSet &edmParameterSet)
virtual int etaToHwEta(double eta) const =0
virtual int ptGevToHw(double ptGev) const =0
uGMT pt scale conversion: [0GeV, 0.5GeV) = 1 [0.5GeV, 1 Gev) = 2
virtual unsigned int nPhiBins() const =0
virtual bool getFixCscGeometryOffset() const
virtual unsigned int getRpcMaxClusterCnt() const
virtual bool getRpcDropAllClustersIfMoreThanMax() const
virtual void setMinDtPhiQuality(int minDtPhiQuality=2)
virtual unsigned int getBxToProcess() const
virtual unsigned int ptHwToPtBin(int ptHw) const
virtual void setCscLctCentralBx(int lctCentralBx)
virtual bool isBendingLayer(unsigned int iLayer) const =0
virtual int foldPhi(int phi) const
virtual int cscLctCentralBx() const
virtual unsigned int nLayers() const =0
virtual unsigned int etaHwToEtaBin(int etaHw) const
virtual int getMinDtPhiQuality() const
virtual void setRpcMaxClusterCnt(unsigned int rpcMaxClusterCnt=2)
virtual int getProcScalePhi(double phiRad, double procPhiZeroRad=0) const =0
virtual unsigned int getRpcMaxClusterSize() const
virtual unsigned int ptGeVToPtBin(float ptGeV) const
virtual void setRpcDropAllClustersIfMoreThanMax(bool rpcDropAllClustersIfMoreThanMax=true)
virtual double hwPtToGev(int hwPt) const =0