CMS 3D CMS Logo

L1MuTriggerScales.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // \class L1MuTriggerScales
4 //
10 //
11 // $Date: 2008/11/24 10:26:31 $
12 // $Revision: 1.5 $
13 //
14 // Original Author :
15 // Hannes Sakulin HEPHY / Vienna
16 //
17 // Migrated to CMSSW:
18 // I. Mikulec
19 //
20 //--------------------------------------------------
21 #ifndef CondFormatsL1TObjects_L1MuTriggerScales_h
22 #define CondFormatsL1TObjects_L1MuTriggerScales_h
23 
25 
26 #include <cmath>
27 #include <iostream>
28 #include <vector>
29 
32 
34 public:
37 
39  bool signedPackingDTEta,
40  int nbinsDTEta,
41  float minDTEta,
42  float maxDTEta,
43  int offsetDTEta,
44 
46  int nbinsCSCEta,
47  float minCSCEta,
48  float maxCSCEta,
49 
50  const std::vector<double>& scaleRPCEta,
53  int nbinsBrlRPCEta,
54  int offsetBrlRPCEta,
57  int nbinsFwdRPCEta,
58  int offsetFwdRPCEta,
59 
61  int nbinsGMTEta,
62  const std::vector<double>& scaleGMTEta,
63 
64  int nbitPackingPhi,
65  bool signedPackingPhi,
66  int nbinsPhi,
67  float minPhi,
68  float maxPhi
69 
70  /* int nbitPackingPt, */
71  /* bool signedPackingPt, */
72  /* int nbinsPt, */
73  /* const std::vector<double>& scalePt */
74 
75  ) {
76  //
77  // Regional Muon Trigger Eta Scales
78  //
79  /* const float rpcetabins[34]= { */
80  /* -2.10, -1.97, -1.85, -1.73, -1.61, -1.48, */
81  /* -1.36, -1.24, -1.14, -1.04, -0.93, -0.83, */
82  /* -0.72, -0.58, -0.44, -0.27, -0.07, */
83  /* 0.07, 0.27, 0.44, 0.58, 0.72, */
84  /* 0.83, 0.93, 1.04, 1.14, 1.24, 1.36, */
85  /* 1.48, 1.61, 1.73, 1.85, 1.97, 2.10}; */
86 
87  // DT
88  //m_RegionalEtaScale[0] = L1MuBinnedScale( 6, true, 64, -1.2, 1.2, 32);
91 
92  // RPC index -16 .. 16, brl RPC
93  // m_RegionalEtaScale[1] = L1MuBinnedScale (6, true, 33, rpcetabins, 16);
96 
97  // CSC
99  // // m_RegionalEtaScale[2] = L1MuSymmetricBinnedScale ( 6, 32, 0.9, 2.5);
100  // m_RegionalEtaScaleCSC = L1MuSymmetricBinnedScale ( 6, 32, 0.9, 2.5);
102 
103  // RPC index -16 .. 16, fwd RPC
104  // m_RegionalEtaScale[3] = L1MuBinnedScale (6, true, 33, rpcetabins, 16);
105  m_RegionalEtaScale[3] =
107 
108  //
109  // Eta scale at GMT output
110  //
111 
112  /* const float gmt_outputetascale[32] = { 0.00, */
113  /* 0.10, 0.20, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, */
114  /* 0.90, 1.00, 1.10, 1.20, 1.30, 1.40, 1.50, 1.60, */
115  /* 1.70, 1.75, 1.80, 1.85, 1.90, 1.95, 2.00, 2.05, */
116  /* 2.10, 2.15, 2.20, 2.25, 2.30, 2.35, 2.40 }; */
117 
118  // m_GMTEtaScale = L1MuSymmetricBinnedScale (6, 31, gmt_outputetascale);
120 
121  //
122  // Phi Scale. Common to all Regioanl Muon Triggers and GMT
123  //
124 
125  // m_PhiScale = L1MuBinnedScale (8, false, 144, 0., 2. * M_PI);
127 
128  //
129  // Pt Scale. Common to all Regioanl Muon Triggers and GMT
130  //
131 
132  // pt scale in GeV
133  // low edges of pt bins
134  /* const float ptscale[33] = { */
135  /* -1., 0.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, */
136  /* 4.5, 5.0, 6.0, 7.0, 8.0, 10.0, 12.0, 14.0, */
137  /* 16.0, 18.0, 20.0, 25.0, 30.0, 35.0, 40.0, 45.0, */
138  /* 50.0, 60.0, 70.0, 80.0, 90.0, 100.0, 120.0, 140.0, 1.E6 }; */
139 
140  // m_PtScale = L1MuBinnedScale ( 5, false, 32, ptscale) ;
141  /* m_PtScale = L1MuBinnedScale ( nbitPackingPt, */
142  /* signedPackingPt, */
143  /* nbinsPt, */
144  /* scalePt ) ; */
145  };
146 
149  // for (int i=0; i<4; i++)
150  // delete m_RegionalEtaScale[i];
151 
152  // delete m_GMTEtaScale;
153  // delete m_PhiScale;
154  // delete m_PtScale;
155  };
156 
158  const L1MuScale* getRegionalEtaScale(int isys) const {
159  if (isys < 0 || isys > 3)
160  edm::LogWarning("ScaleRangeViolation") << "Error in L1MuTriggerScales:: isys out of range: " << isys;
161  if (isys == 2) {
162  return &m_RegionalEtaScaleCSC;
163  } else {
164  return &(m_RegionalEtaScale[isys]);
165  }
166  };
167 
169  const L1MuScale* getGMTEtaScale() const { return &m_GMTEtaScale; };
170 
173 
175  const L1MuScale* getPhiScale() const { return &m_PhiScale; };
176 
179 
180  /* /// get the Pt scale */
181  /* const L1MuScale* getPtScale() const { return &m_PtScale;}; */
182 
183 private:
184  L1MuBinnedScale m_RegionalEtaScale[4]; // 2=csc will be empty
188  // L1MuBinnedScale m_PtScale;
189 
191 };
192 
193 #endif
L1MuTriggerScales_cfi.signedPackingFwdRPCEta
signedPackingFwdRPCEta
Definition: L1MuTriggerScales_cfi.py:26
L1MuTriggerScales_cfi.signedPackingPhi
signedPackingPhi
Definition: L1MuTriggerScales_cfi.py:37
MessageLogger.h
L1MuTriggerScales::getGMTEtaScale
const L1MuScale * getGMTEtaScale() const
get the GMT eta scale
Definition: L1MuTriggerScales.h:169
L1MuScale
Definition: L1MuScale.h:38
L1MuTriggerScales::m_PhiScale
L1MuBinnedScale m_PhiScale
Definition: L1MuTriggerScales.h:187
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1MuTriggerScales::setGMTEtaScale
void setGMTEtaScale(const L1MuSymmetricBinnedScale &scale)
set the GMT eta scale
Definition: L1MuTriggerScales.h:172
L1MuTriggerScales_cfi.scaleRPCEta
scaleRPCEta
Definition: L1MuTriggerScales_cfi.py:14
L1MuTriggerScales_cfi.maxDTEta
maxDTEta
Definition: L1MuTriggerScales_cfi.py:8
L1MuTriggerScales::~L1MuTriggerScales
virtual ~L1MuTriggerScales()
destructor
Definition: L1MuTriggerScales.h:148
L1MuTriggerScales::m_RegionalEtaScale
L1MuBinnedScale m_RegionalEtaScale[4]
Definition: L1MuTriggerScales.h:178
L1MuTriggerScales_cfi.nbitPackingGMTEta
nbitPackingGMTEta
Definition: L1MuTriggerScales_cfi.py:29
HLT_2018_cff.minPhi
minPhi
Definition: HLT_2018_cff.py:51486
L1MuTriggerScales_cfi.nbinsCSCEta
nbinsCSCEta
Definition: L1MuTriggerScales_cfi.py:11
L1MuTriggerScales::getPhiScale
const L1MuScale * getPhiScale() const
get the phi scale
Definition: L1MuTriggerScales.h:175
L1MuScale.h
HLT_2018_cff.maxPhi
maxPhi
Definition: HLT_2018_cff.py:51498
L1MuTriggerScales_cfi.minCSCEta
minCSCEta
Definition: L1MuTriggerScales_cfi.py:12
L1MuTriggerScales_cfi.offsetFwdRPCEta
offsetFwdRPCEta
Definition: L1MuTriggerScales_cfi.py:28
L1MuTriggerScales::getRegionalEtaScale
const L1MuScale * getRegionalEtaScale(int isys) const
get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)
Definition: L1MuTriggerScales.h:158
L1MuTriggerScales_cfi.nbitPackingCSCEta
nbitPackingCSCEta
Definition: L1MuTriggerScales_cfi.py:10
L1MuTriggerScales::setPhiScale
void setPhiScale(const L1MuBinnedScale &scale)
set the phi scale
Definition: L1MuTriggerScales.h:178
L1MuTriggerScales_cfi.nbitPackingFwdRPCEta
nbitPackingFwdRPCEta
Definition: L1MuTriggerScales_cfi.py:25
L1MuTriggerScales_cfi.signedPackingBrlRPCEta
signedPackingBrlRPCEta
Definition: L1MuTriggerScales_cfi.py:22
L1MuTriggerScales::L1MuTriggerScales
L1MuTriggerScales(int nbitPackingDTEta, bool signedPackingDTEta, int nbinsDTEta, float minDTEta, float maxDTEta, int offsetDTEta, int nbitPackingCSCEta, int nbinsCSCEta, float minCSCEta, float maxCSCEta, const std::vector< double > &scaleRPCEta, int nbitPackingBrlRPCEta, bool signedPackingBrlRPCEta, int nbinsBrlRPCEta, int offsetBrlRPCEta, int nbitPackingFwdRPCEta, bool signedPackingFwdRPCEta, int nbinsFwdRPCEta, int offsetFwdRPCEta, int nbitPackingGMTEta, int nbinsGMTEta, const std::vector< double > &scaleGMTEta, int nbitPackingPhi, bool signedPackingPhi, int nbinsPhi, float minPhi, float maxPhi)
Definition: L1MuTriggerScales.h:38
edm::LogWarning
Definition: MessageLogger.h:141
L1MuTriggerScales_cfi.nbinsGMTEta
nbinsGMTEta
Definition: L1MuTriggerScales_cfi.py:30
L1MuTriggerScales::L1MuTriggerScales
L1MuTriggerScales()
constructor
Definition: L1MuTriggerScales.h:36
Scenarios_cff.scale
scale
Definition: Scenarios_cff.py:2186
L1MuTriggerScales_cfi.nbitPackingPhi
nbitPackingPhi
Definition: L1MuTriggerScales_cfi.py:36
L1MuTriggerScales_cfi.nbitPackingBrlRPCEta
nbitPackingBrlRPCEta
Definition: L1MuTriggerScales_cfi.py:21
Serializable.h
L1MuTriggerScales_cfi.nbinsBrlRPCEta
nbinsBrlRPCEta
Definition: L1MuTriggerScales_cfi.py:23
L1MuTriggerScales
Definition: L1MuTriggerScales.h:33
L1MuBinnedScale
Definition: L1MuScale.h:93
L1MuTriggerScales_cfi.offsetBrlRPCEta
offsetBrlRPCEta
Definition: L1MuTriggerScales_cfi.py:24
L1MuTriggerScales_cfi.offsetDTEta
offsetDTEta
Definition: L1MuTriggerScales_cfi.py:9
L1MuSymmetricBinnedScale
Definition: L1MuScale.h:236
L1MuTriggerScales_cfi.signedPackingDTEta
signedPackingDTEta
Definition: L1MuTriggerScales_cfi.py:5
L1MuTriggerScales_cfi.minDTEta
minDTEta
Definition: L1MuTriggerScales_cfi.py:7
L1MuTriggerScales::m_GMTEtaScale
L1MuSymmetricBinnedScale m_GMTEtaScale
Definition: L1MuTriggerScales.h:186
L1MuTriggerScales_cfi.nbitPackingDTEta
nbitPackingDTEta
Definition: L1MuTriggerScales_cfi.py:4
L1MuTriggerScales_cfi.maxCSCEta
maxCSCEta
Definition: L1MuTriggerScales_cfi.py:13
L1MuTriggerScales_cfi.nbinsFwdRPCEta
nbinsFwdRPCEta
Definition: L1MuTriggerScales_cfi.py:27
L1MuTriggerScales_cfi.scaleGMTEta
scaleGMTEta
Definition: L1MuTriggerScales_cfi.py:31
L1MuTriggerScales_cfi.nbinsPhi
nbinsPhi
Definition: L1MuTriggerScales_cfi.py:38
L1MuTriggerScales::m_RegionalEtaScaleCSC
L1MuSymmetricBinnedScale m_RegionalEtaScaleCSC
Definition: L1MuTriggerScales.h:185
L1MuTriggerScales_cfi.nbinsDTEta
nbinsDTEta
Definition: L1MuTriggerScales_cfi.py:6