CMS 3D CMS Logo

CaloParamsHelper.h
Go to the documentation of this file.
1 // CaloParamsHelper.h
2 // Author: R. Alex Barbieri
3 //
4 // Wrapper class for CaloParams and Et scales
5 
6 #include <iostream>
7 
9 
15 
16 #ifndef CaloParamsHelper_h
17 #define CaloParamsHelper_h
18 
19 namespace l1t {
20 
21  class CaloParamsHelper : public CaloParams {
22 
23  public:
24  // DO NOT ADD ENTRIES ANYWHERE BUT DIRECTLY BEFORE "NUM_CALOPARAMNODES"
25  // DO NOT CHANGE NUMERICAL VALUES OF ANY ALREADY EXISTING FIELDS, YOU CAN ONLY EXTEND, AT THE END.
26  enum { regionPUS=0,
63  };
64 
68 
69 
70 
71  bool isValidForStage1() const {return true; }
72  bool isValidForStage2() const {return (version_ >= 2); }
73 
74  L1CaloEtScale emScale() const { return emScale_; }
76  L1CaloEtScale jetScale() const { return jetScale_; }
82 
83  // towers
84  double towerLsbH() const { return towerp_.lsbH_; }
85  double towerLsbE() const { return towerp_.lsbE_; }
86  double towerLsbSum() const { return towerp_.lsbSum_; }
87  int towerNBitsH() const { return towerp_.nBitsH_; }
88  int towerNBitsE() const { return towerp_.nBitsE_; }
89  int towerNBitsSum() const { return towerp_.nBitsSum_; }
90  int towerNBitsRatio() const { return towerp_.nBitsRatio_; }
91  int towerMaskE() const { return towerp_.maskE_; }
92  int towerMaskH() const { return towerp_.maskH_; }
93  int towerMaskSum() const { return towerp_.maskSum_; }
94  int towerMaskRatio() const { return towerp_.maskRatio_; }
95  bool doTowerEncoding() const { return towerp_.doEncoding_; }
96 
97  void setTowerLsbH(double lsb) { towerp_.lsbH_ = lsb; }
98  void setTowerLsbE(double lsb) { towerp_.lsbE_ = lsb; }
99  void setTowerLsbSum(double lsb) { towerp_.lsbSum_ = lsb; }
100  void setTowerNBitsH(int n) { towerp_.nBitsH_ = n; towerp_.maskH_ = std::pow(2,n)-1; }
101  void setTowerNBitsE(int n) { towerp_.nBitsE_ = n; towerp_.maskE_ = std::pow(2,n)-1; }
104  void setTowerEncoding(bool doit) { towerp_.doEncoding_ = doit; }
105 
106 
107  // regions
108  double regionLsb() const { return regionLsb_; }
109  std::string const& regionPUSType() const { return pnode_[regionPUS].type_; }
110  std::vector<double> const& regionPUSParams() const { return pnode_[regionPUS].dparams_; }
111  l1t::LUT* regionPUSLUT() {return &pnode_[regionPUS].LUT_; }
112  l1t::LUT const* regionPUSLUT() const {return &pnode_[regionPUS].LUT_; }
113 
114  int regionPUSValue(int PUM0, int eta) const
115  {
116  int puSub = ceil(regionPUSParams()[18*eta+PUM0]*2);
117  return puSub;
118  }
119 
120  void setRegionLsb(double lsb) { regionLsb_ = lsb; }
122  void setRegionPUSParams(const std::vector<double> & params) { pnode_[regionPUS].dparams_ = params; }
123  void setRegionPUSLUT(const l1t::LUT & lut) { pnode_[regionPUS].LUT_ = lut; }
124 
125  int pileUpTowerThreshold() const {return pnode_[PUTowerThreshold].iparams_[0]; }
127  pnode_[PUTowerThreshold].iparams_.resize(1);
128  pnode_[PUTowerThreshold].iparams_[0] = thresh;
129  }
130 
131  // EG
132  int egEtaCut() const {
133  if (pnode_[egPUS].version_ ==1)
134  return pnode_[egPUS].iparams_[0];
135  else
136  return 0;
137  }
138  double egLsb() const { return egp_.lsb_; }
139  double egSeedThreshold() const { return egp_.seedThreshold_; }
140  double egNeighbourThreshold() const { return egp_.neighbourThreshold_; }
141  double egHcalThreshold() const { return egp_.hcalThreshold_; }
142  l1t::LUT* egTrimmingLUT() { return &pnode_[egTrimming].LUT_; }
143  l1t::LUT const* egTrimmingLUT() const { return &pnode_[egTrimming].LUT_; }
144  double egMaxHcalEt() const { return egp_.maxHcalEt_; }
145  double egMaxPtHOverE() const {return egp_.maxPtHOverE_;}
147  l1t::LUT const* egMaxHOverELUT() const { return &pnode_[egMaxHOverE].LUT_; }
149  l1t::LUT const* egCompressShapesLUT() const { return &pnode_[egCompressShapes].LUT_; }
150  l1t::LUT* egShapeIdLUT() { return &pnode_[egShapeId].LUT_; }
151  l1t::LUT const* egShapeIdLUT() const { return &pnode_[egShapeId].LUT_; }
156  unsigned egBypassEGVetos() const { return pnode_[egBypassEGVetosFlag].uparams_[0]; }
157  unsigned egBypassExtHOverE() const { return pnode_[egBypassExtHoE].uparams_[0]; }
158  unsigned egBypassShape() const {
159  if(pnode_[egBypassShapeFlag].uparams_.empty()) return 0;
160  else return pnode_[egBypassShapeFlag].uparams_[0];
161  }
162  unsigned egBypassECALFG() const {
163  if(pnode_[egBypassECALFGFlag].uparams_.empty()) return 0;
164  else return pnode_[egBypassECALFGFlag].uparams_[0];
165  }
166  unsigned egBypassHoE() const {
167  if(pnode_[egBypassHoEFlag].uparams_.empty()) return 0;
168  else return pnode_[egBypassHoEFlag].uparams_[0];
169  }
170 
171  int egHOverEcutBarrel() const {return pnode_[egHOverEBarrel].iparams_[0]; }
172  int egHOverEcutEndcap() const {return pnode_[egHOverEEndcap].iparams_[0]; }
173 
177  const std::string & egPUSType() const { return pnode_[egPUS].type_; }
178  const std::vector<double> & egPUSParams() const { return pnode_[egPUS].dparams_; }
179  double egPUSParam(int ipar) const { return pnode_[egPUS].dparams_.at(ipar); }
180 
181  std::string const& egIsolationType() const { return pnode_[egIsolation].type_; }
182  l1t::LUT const* egIsolationLUT() const { return &pnode_[egIsolation].LUT_; }
184  l1t::LUT const* egIsolationLUT2() const { return &pnode_[egIsolation2].LUT_; }
186  std::string const& egCalibrationType() const { return pnode_[egCalibration].type_; }
187  std::vector<double> const& egCalibrationParams() const { return pnode_[egCalibration].dparams_; }
188  l1t::LUT const* egCalibrationLUT() const { return &pnode_[egCalibration].LUT_; }
190 
191  void setEgEtaCut(int mask) {
192  pnode_[egPUS].iparams_.resize(1);
193  pnode_[egPUS].iparams_[0] = mask;
194  }
195  void setEgLsb(double lsb) { egp_.lsb_ = lsb; }
199  void setEgTrimmingLUT(const l1t::LUT & lut) { pnode_[egTrimming].LUT_ = lut; }
200  void setEgMaxHcalEt(double cut) { egp_.maxHcalEt_ = cut; }
202  void setEgMaxHOverELUT(const l1t::LUT & lut) { pnode_[egMaxHOverE].LUT_ = lut; }
204  void setEgShapeIdLUT(const l1t::LUT & lut) { pnode_[egShapeId].LUT_ = lut; }
205  void setEgMinPtJetIsolation(int cutValue) { egp_.minPtJetIsolation_ = cutValue; }
206  void setEgMaxPtJetIsolation(int cutValue) { egp_.maxPtJetIsolation_ = cutValue; }
207  void setEgMinPtHOverEIsolation(int cutValue) { egp_.minPtHOverEIsolation_ = cutValue; }
208  void setEgMaxPtHOverEIsolation(int cutValue) { egp_.maxPtHOverEIsolation_ = cutValue; }
209  void setEgBypassEGVetos(unsigned flag) {
210  pnode_[egBypassEGVetosFlag].uparams_.resize(1);
211  pnode_[egBypassEGVetosFlag].uparams_[0] = flag;
212  }
213  void setEgBypassExtHOverE(unsigned flag) {
214  pnode_[egBypassExtHoE].uparams_.resize(1);
215  pnode_[egBypassExtHoE].uparams_[0] = flag;
216  }
217  void setEgBypassShape(unsigned flag) {
218  pnode_[egBypassShapeFlag].uparams_.resize(1);
219  pnode_[egBypassShapeFlag].uparams_[0] = flag;
220  }
221  void setEgBypassECALFG(unsigned flag) {
222  pnode_[egBypassECALFGFlag].uparams_.resize(1);
223  pnode_[egBypassECALFGFlag].uparams_[0] = flag;
224  }
225  void setEgBypassHoE(unsigned flag) {
226  pnode_[egBypassHoEFlag].uparams_.resize(1);
227  pnode_[egBypassHoEFlag].uparams_[0] = flag;
228  }
230  pnode_[egHOverEBarrel].iparams_.resize(1);
231  pnode_[egHOverEBarrel].iparams_[0] = cut;
232  }
234  pnode_[egHOverEEndcap].iparams_.resize(1);
235  pnode_[egHOverEEndcap].iparams_[0] = cut;
236  }
237 
238  void setEgIsoAreaNrTowersEta(unsigned iEgIsoAreaNrTowersEta){egp_.isoAreaNrTowersEta_=iEgIsoAreaNrTowersEta;}
239  void setEgIsoAreaNrTowersPhi(unsigned iEgIsoAreaNrTowersPhi){egp_.isoAreaNrTowersPhi_=iEgIsoAreaNrTowersPhi;}
240  void setEgIsoVetoNrTowersPhi(unsigned iEgIsoVetoNrTowersPhi){egp_.isoVetoNrTowersPhi_=iEgIsoVetoNrTowersPhi;}
242  void setEgPUSParams(const std::vector<double> & params) { pnode_[egPUS].dparams_ = params; }
244  void setEgIsolationLUT(const l1t::LUT & lut) { pnode_[egIsolation].LUT_ = lut; }
247  void setEgCalibrationParams(std::vector<double> params) { pnode_[egCalibration].dparams_ = params; }
249 
250  // - recently imported:
251  std::string const& egShapeIdType() const { return pnode_[egShapeId].type_; }
253  unsigned egShapeIdVersion() const { return pnode_[egShapeId].version_; }
254  void setEgShapeIdVersion(unsigned version) { pnode_[egShapeId].version_ = version; }
255  unsigned egCalibrationVersion() const { return pnode_[egCalibration].version_; }
257 
258  // tau
259  int tauRegionMask() const {
260  if (pnode_[tauPUS].version_ ==1)
261  return pnode_[tauPUS].iparams_[0];
262  else
263  return 0;
264  }
265  double tauLsb() const { return taup_.lsb_; }
266  double tauSeedThreshold() const { return taup_.seedThreshold_; }
268  double tauMaxPtTauVeto() const { return taup_.maxPtTauVeto_;}
270  double tauMaxJetIsolationB() const { return taup_.maxJetIsolationB_; }
271  double tauMaxJetIsolationA() const { return taup_.maxJetIsolationA_; }
272  int isoTauEtaMin() const { return taup_.isoEtaMin_; }
273  int isoTauEtaMax() const { return taup_.isoEtaMax_; }
274  std::string tauPUSType() const { return pnode_[tauPUS].type_; }
275  const std::vector<double> & tauPUSParams() const { return pnode_[tauPUS].dparams_; }
276  double tauPUSParam(int ipar) const { return pnode_[tauPUS].dparams_.at(ipar); }
277 
279  l1t::LUT const* tauIsolationLUT() const { return &pnode_[tauIsolation].LUT_; }
281  l1t::LUT const* tauIsolationLUT2() const { return &pnode_[tauIsolation2].LUT_; }
284 
285  std::string const& tauCalibrationType() const { return pnode_[tauCalibration].type_; }
286  std::vector<double> const& tauCalibrationParams() const { return pnode_[tauCalibration].dparams_; }
288  l1t::LUT const* tauCalibrationLUT() const { return &pnode_[tauCalibration].LUT_; }
290  l1t::LUT const* tauCompressLUT() const { return &pnode_[tauCompress].LUT_; }
291 
292  l1t::LUT const* tauEtToHFRingEtLUT() const { return &pnode_[tauEtToHFRingEt].LUT_; }
294 
298 
299  void setTauRegionMask(int mask) {
300  pnode_[tauPUS].iparams_.resize(1);
301  pnode_[tauPUS].iparams_[0] = mask;
302  }
303  void setTauLsb(double lsb) { taup_.lsb_ = lsb; }
309  void setTauMaxJetIsolationA(double cutValue) { taup_.maxJetIsolationA_ = cutValue; }
316 
318  void setTauIsoAreaNrTowersEta(unsigned iTauIsoAreaNrTowersEta){taup_.isoAreaNrTowersEta_=iTauIsoAreaNrTowersEta;}
319  void setTauIsoAreaNrTowersPhi(unsigned iTauIsoAreaNrTowersPhi){taup_.isoAreaNrTowersPhi_=iTauIsoAreaNrTowersPhi;}
320  void setTauIsoVetoNrTowersPhi(unsigned iTauIsoVetoNrTowersPhi){taup_.isoVetoNrTowersPhi_=iTauIsoVetoNrTowersPhi;}
321 
322  void setTauCalibrationParams(std::vector<double> params) { pnode_[tauCalibration].dparams_ = params; }
324  void setTauCompressLUT(const l1t::LUT & lut) { pnode_[tauCompress].LUT_ = lut; }
325  void setTauPUSParams(const std::vector<double> & params) { pnode_[tauPUS].dparams_ = params; }
326 
328 
329  // jets
330  double jetLsb() const { return jetp_.lsb_; }
331  double jetSeedThreshold() const { return jetp_.seedThreshold_; }
333  int jetRegionMask() const {
334  if (pnode_[jetPUS].version_ ==1)
335  return pnode_[jetPUS].iparams_[0];
336  else
337  return 0;
338  }
339 
340  unsigned jetBypassPUS() const { return pnode_[jetBypassPUSFlag].uparams_[0]; }
341  unsigned jetPUSUsePhiRing() const {
342  if(pnode_[jetPUSUsePhiRingFlag].uparams_.empty()) return 0;
343  else return pnode_[jetPUSUsePhiRingFlag].uparams_[0];
344  }
345 
346 
347  std::string jetPUSType() const { return pnode_[jetPUS].type_; }
348  std::vector<double> const& jetPUSParams() const { return pnode_[jetPUS].dparams_; }
349  std::string const& jetCalibrationType() const { return pnode_[jetCalibration].type_; }
350  std::vector<double> const& jetCalibrationParams() const { return pnode_[jetCalibration].dparams_; }
351 
353  l1t::LUT const* jetCalibrationLUT() const { return &pnode_[jetCalibration].LUT_; }
355  l1t::LUT const* jetCompressPtLUT() const { return &pnode_[jetCompressPt].LUT_; }
357  l1t::LUT const* jetCompressEtaLUT() const { return &pnode_[jetCompressEta].LUT_; }
358 
359  void setJetLsb(double lsb) { jetp_.lsb_ = lsb; }
362  void setJetRegionMask(int mask) {
363  pnode_[jetPUS].iparams_.resize(1);
364  pnode_[jetPUS].iparams_[0] = mask;
365  }
367  void setJetPUSParams(std::vector<double> params) { pnode_[jetPUS].dparams_ = params; }
369  void setJetCalibrationParams(std::vector<double> params) { pnode_[jetCalibration].dparams_ = params; }
373  void setJetBypassPUS(unsigned flag) {
374  pnode_[jetBypassPUSFlag].uparams_.resize(1);
375  pnode_[jetBypassPUSFlag].uparams_[0] = flag;
376  }
377  void setJetPUSUsePhiRing(unsigned flag) {
378  pnode_[jetPUSUsePhiRingFlag].uparams_.resize(1);
379  pnode_[jetPUSUsePhiRingFlag].uparams_[0] = flag;
380  }
381 
382  // sums
383 
384  double etSumLsb() const { return etSumLsb_; }
385  int etSumEtaMin(unsigned isum) const;
386  int etSumEtaMax(unsigned isum) const;
387  double etSumEtThreshold(unsigned isum) const;
388  unsigned etSumBypassMetPUS() const { return pnode_[etSumBypassMetPUSFlag].uparams_[0]; }
389  unsigned etSumBypassEttPUS() const { return pnode_[etSumBypassEttPUSFlag].uparams_[0]; }
390  unsigned etSumBypassEcalSumPUS() const { return pnode_[etSumBypassEcalSumPUSFlag].uparams_[0]; }
391  std::string const& etSumMetPUSType() const { return pnode_[etSumMetPUS].type_; }
392  std::string const& etSumEttPUSType() const { return pnode_[etSumEttPUS].type_; }
393  std::string const& etSumEcalSumPUSType() const { return pnode_[etSumEcalSumPUS].type_; }
394  std::string const& metCalibrationType() const { return pnode_[metCalibration].type_; }
395  std::string const& metHFCalibrationType() const { return pnode_[metHFCalibration].type_; }
398 
400  l1t::LUT const* etSumMetPUSLUT() const { return &pnode_[etSumMetPUS].LUT_; }
402  l1t::LUT const* etSumEttPUSLUT() const { return &pnode_[etSumEttPUS].LUT_; }
404  l1t::LUT const* etSumEcalSumPUSLUT() const { return &pnode_[etSumEcalSumPUS].LUT_; }
406  l1t::LUT const* metCalibrationLUT() const { return &pnode_[metCalibration].LUT_; }
408  l1t::LUT const* metHFCalibrationLUT() const { return &pnode_[metHFCalibration].LUT_; }
410  l1t::LUT const* etSumEttCalibrationLUT() const { return &pnode_[etSumEttCalibration].LUT_; }
414  l1t::LUT const* metPhiCalibrationLUT() const { return &pnode_[metPhiCalibration].LUT_; }
416  l1t::LUT const* metHFPhiCalibrationLUT() const { return &pnode_[metHFPhiCalibration].LUT_; }
417 
418  void setEtSumLsb(double lsb) { etSumLsb_ = lsb; }
419  void setEtSumEtaMin(unsigned isum, int eta);
420  void setEtSumEtaMax(unsigned isum, int eta);
421  void setEtSumEtThreshold(unsigned isum, double thresh);
429  void setEtSumBypassMetPUS(unsigned flag) {
430  pnode_[etSumBypassMetPUSFlag].uparams_.resize(1);
431  pnode_[etSumBypassMetPUSFlag].uparams_[0] = flag;
432  }
433  void setEtSumBypassEttPUS(unsigned flag) {
434  pnode_[etSumBypassEttPUSFlag].uparams_.resize(1);
435  pnode_[etSumBypassEttPUSFlag].uparams_[0] = flag;
436  }
437  void setEtSumBypassEcalSumPUS(unsigned flag) {
438  pnode_[etSumBypassEcalSumPUSFlag].uparams_.resize(1);
439  pnode_[etSumBypassEcalSumPUSFlag].uparams_[0] = flag;
440  }
441 
442 
443  void setEtSumMetPUSLUT(const l1t::LUT & lut) { pnode_[etSumMetPUS].LUT_ = lut; }
444  void setEtSumEttPUSLUT(const l1t::LUT & lut) { pnode_[etSumEttPUS].LUT_ = lut; }
452 
453  // HI centrality
454  int centralityRegionMask() const {
455  if(pnode_[hiCentrality].version_ == 1)
456  return pnode_[hiCentrality].iparams_[0] ;
457  else
458  return 0;
459  }
460  std::vector<int> minimumBiasThresholds() const {
461  if(pnode_[hiCentrality].version_ == 1 && pnode_[hiCentrality].iparams_.size()==5) {
462  std::vector<int> newVec;
463  for(int i = 0; i<4; i++) {
464  newVec.push_back(pnode_[hiCentrality].iparams_.at(i+1));
465  }
466  return newVec;
467  } else {
468  std::vector<int> newVec;
469  return newVec;
470  }
471  }
472  l1t::LUT * centralityLUT() { return &pnode_[hiCentrality].LUT_; }
473  l1t::LUT const* centralityLUT() const { return &pnode_[hiCentrality].LUT_; }
475  pnode_[hiCentrality].iparams_.resize(5);
476  pnode_[hiCentrality].iparams_[0] = mask;
477  }
478  void setMinimumBiasThresholds(std::vector<int> thresholds) {
479  pnode_[hiCentrality].iparams_.resize(5);
480  for(int i = 0; i<4; i++) {
481  pnode_[hiCentrality].iparams_[i+1] = thresholds.at(i);
482  }
483  }
484  void setCentralityLUT(const l1t::LUT & lut) { pnode_[hiCentrality].LUT_ = lut; }
485 
486  // HI Q2
487  l1t::LUT * q2LUT() { return &pnode_[hiQ2].LUT_; }
488  l1t::LUT const* q2LUT() const { return &pnode_[hiQ2].LUT_; }
489  void setQ2LUT(const l1t::LUT & lut) { pnode_[hiQ2].LUT_ = lut; }
490 
491  // HI parameters
492  double etSumCentLower(unsigned centClass) const {
493  if (pnode_[etSumCentralityLower].dparams_.size()>centClass)
494  return pnode_[etSumCentralityLower].dparams_.at(centClass);
495  else return 0.;
496  }
497  double etSumCentUpper(unsigned centClass) const {
498  if (pnode_[etSumCentralityUpper].dparams_.size()>centClass)
499  return pnode_[etSumCentralityUpper].dparams_.at(centClass);
500  else return 0.;
501  }
502  void setEtSumCentLower(unsigned centClass, double loBound){
503  if (pnode_[etSumCentralityLower].dparams_.size()<=centClass)
504  pnode_[etSumCentralityLower].dparams_.resize(centClass+1);
505  pnode_[etSumCentralityLower].dparams_.at(centClass) = loBound;
506  }
507  void setEtSumCentUpper(unsigned centClass, double upBound) {
508  if (pnode_[etSumCentralityUpper].dparams_.size()<=centClass)
509  pnode_[etSumCentralityUpper].dparams_.resize(centClass+1);
510  pnode_[etSumCentralityUpper].dparams_.at(centClass) = upBound;
511  }
512 
513  // Layer 1 LUT specification
514  std::vector<double> const& layer1ECalScaleFactors() const { return pnode_[layer1ECal].dparams_; }
515  std::vector<double> const& layer1HCalScaleFactors() const { return pnode_[layer1HCal].dparams_; }
516  std::vector<double> const& layer1HFScaleFactors() const { return pnode_[layer1HF ].dparams_; }
517  std::vector<int> const& layer1ECalScaleETBins() const { return pnode_[layer1ECal].iparams_; }
518  std::vector<int> const& layer1HCalScaleETBins() const { return pnode_[layer1HCal].iparams_; }
519  std::vector<int> const& layer1HFScaleETBins() const { return pnode_[layer1HF ].iparams_; }
520  std::vector<unsigned> const& layer1ECalScalePhiBins() const { return pnode_[layer1ECal].uparams_; }
521  std::vector<unsigned> const& layer1HCalScalePhiBins() const { return pnode_[layer1HCal].uparams_; }
522  std::vector<unsigned> const& layer1HFScalePhiBins() const { return pnode_[layer1HF ].uparams_; }
523  void setLayer1ECalScaleFactors(std::vector<double> params) { pnode_[layer1ECal].dparams_ = std::move(params); }
524  void setLayer1HCalScaleFactors(std::vector<double> params) { pnode_[layer1HCal].dparams_ = std::move(params); }
525  void setLayer1HFScaleFactors(std::vector<double> params) { pnode_[layer1HF ].dparams_ = std::move(params); }
526  void setLayer1ECalScaleETBins(std::vector<int> params) { pnode_[layer1ECal].iparams_ = std::move(params); }
527  void setLayer1HCalScaleETBins(std::vector<int> params) { pnode_[layer1HCal].iparams_ = std::move(params); }
528  void setLayer1HFScaleETBins(std::vector<int> params) { pnode_[layer1HF ].iparams_ = std::move(params); }
529  void setLayer1ECalScalePhiBins(std::vector<unsigned> params) { pnode_[layer1ECal].uparams_ = std::move(params); }
530  void setLayer1HCalScalePhiBins(std::vector<unsigned> params) { pnode_[layer1HCal].uparams_ = std::move(params); }
531  void setLayer1HFScalePhiBins(std::vector<unsigned> params) { pnode_[layer1HF ].uparams_ = std::move(params); }
532 
533  std::vector<unsigned> const& layer1SecondStageLUT() const { return pnode_[layer1HOverE].uparams_; }
534  void setLayer1SecondStageLUT(const std::vector<unsigned>& lut) { pnode_[layer1HOverE].uparams_ = lut; }
535 
536  void setNode(int pos, const Node &n){ pnode_[pos] = n; }
537  const std::vector<Node>& getNodes(void) const { return pnode_; }
538 
539  private:
544  friend std::ostream & operator<<(std::ostream &os, const CaloParamsHelper& h);
545  };
546 
547  std::ostream & operator<<(std::ostream &os, const l1t::CaloParamsHelper& p);
548 
549 }
550 
551 
552 
553 #endif
554 
void setEtSumEtaMax(unsigned isum, int eta)
std::string const & etSumEcalSumCalibrationType() const
void setEtSumEcalSumCalibrationLUT(const l1t::LUT &lut)
void setEtSumEcalSumPUSType(std::string type)
friend std::ostream & operator<<(std::ostream &os, const CaloParamsHelper &h)
const std::string & egPUSType() const
int egMinPtHOverEIsolation() const
std::string const & regionPUSType() const
type
Definition: HCALResponse.h:21
bool doTowerEncoding() const
const std::vector< double > & tauPUSParams() const
void setMetPhiCalibrationLUT(const l1t::LUT &lut)
void setTauMaxJetIsolationA(double cutValue)
L1CaloEtScale jetScale() const
l1t::LUT const * jetCompressPtLUT() const
int centralityRegionMask() const
void setEgCalibrationVersion(unsigned version)
void setCentralityLUT(const l1t::LUT &lut)
void setLayer1HFScaleFactors(std::vector< double > params)
double tauMaxJetIsolationB() const
void setIsoTauEtaMax(int value)
void setTauMinPtJetIsolationB(double limit)
l1t::LUT * jetCalibrationLUT()
L1CaloEtScale HtMissScale() const
void setRegionPUSType(std::string type)
void setEtSumBypassMetPUS(unsigned flag)
l1t::LUT const * tauIsolationLUT() const
std::vector< unsigned > const & layer1SecondStageLUT() const
void setEgNeighbourThreshold(double thresh)
std::vector< int > const & layer1HFScaleETBins() const
void setEgMinPtHOverEIsolation(int cutValue)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
EgParams egp_
Definition: CaloParams.h:214
void setEgLsb(double lsb)
void setJetCalibrationParams(std::vector< double > params)
void setTauEtToHFRingEtLUT(const l1t::LUT &lut)
l1t::LUT * metCalibrationLUT()
void setTauCalibrationLUT(const l1t::LUT &lut)
double tauMaxPtTauVeto() const
std::vector< double > const & regionPUSParams() const
void setTauLsb(double lsb)
std::string const & etSumEttPUSType() const
std::string jetPUSType() const
std::vector< double > const & layer1ECalScaleFactors() const
double tauMinPtJetIsolationB() const
void setTauIsolationLUT(const l1t::LUT &lut)
void setJetCalibrationLUT(const l1t::LUT &lut)
void setEtSumBypassEcalSumPUS(unsigned flag)
void setTauNeighbourThreshold(double thresh)
void setEgMaxPtJetIsolation(int cutValue)
l1t::LUT const * egShapeIdLUT() const
double tauNeighbourThreshold() const
double etSumLsb() const
void setEtSumMetPUSLUT(const l1t::LUT &lut)
void setEgHOverEcutEndcap(int cut)
l1t::LUT * metHFPhiCalibrationLUT()
double etSumEtThreshold(unsigned isum) const
void setEgHcalThreshold(double thresh)
l1t::LUT const * metCalibrationLUT() const
void setTauIsoAreaNrTowersPhi(unsigned iTauIsoAreaNrTowersPhi)
int egMinPtJetIsolation() const
double egMaxHcalEt() const
bool isValidForStage2() const
std::vector< Node > pnode_
Definition: CaloParams.h:207
void setJetScale(L1CaloEtScale jetScale)
std::string const & jetCalibrationType() const
unsigned jetBypassPUS() const
unsigned egIsoAreaNrTowersPhi() const
l1t::LUT const * egIsolationLUT2() const
int egHOverEcutBarrel() const
unsigned tauIsoAreaNrTowersPhi() const
void setEgBypassExtHOverE(unsigned flag)
void setEtSumEttCalibrationLUT(const l1t::LUT &lut)
void setLayer1ECalScalePhiBins(std::vector< unsigned > params)
std::vector< unsigned > const & layer1ECalScalePhiBins() const
void setCentralityRegionMask(int mask)
TowerParams towerp_
Definition: CaloParams.h:209
delete x;
Definition: CaloConfig.h:22
std::string const & etSumEttCalibrationType() const
double isum
void setJetCompressEtaLUT(const l1t::LUT &lut)
l1t::LUT const * etSumEcalSumPUSLUT() const
unsigned tauIsoAreaNrTowersEta() const
l1t::LUT const * metPhiCalibrationLUT() const
int etSumEtaMax(unsigned isum) const
l1t::LUT * tauTrimmingShapeVetoLUT()
int towerNBitsSum() const
void setHfRingScale(L1CaloEtScale HfRingScale)
l1t::LUT const * metHFCalibrationLUT() const
L1CaloEtScale HfRingScale() const
void setTauIsoAreaNrTowersEta(unsigned iTauIsoAreaNrTowersEta)
void setEgCalibrationLUT(const l1t::LUT &lut)
unsigned egBypassShape() const
int egMaxPtHOverEIsolation() const
void setRegionPUSLUT(const l1t::LUT &lut)
void setLayer1HCalScalePhiBins(std::vector< unsigned > params)
std::string const & etSumEcalSumPUSType() const
unsigned egCalibrationVersion() const
void setEgShapeIdLUT(const l1t::LUT &lut)
L1CaloEtScale HtMissScale_
double regionLsb_
Definition: CaloParams.h:212
void setHtMissScale(L1CaloEtScale HtMissScale)
void setEtSumEttPUSLUT(const l1t::LUT &lut)
unsigned etSumBypassEttPUS() const
std::vector< int > const & layer1ECalScaleETBins() const
unsigned egBypassEGVetos() const
l1t::LUT const * egIsolationLUT() const
void setJetCompressPtLUT(const l1t::LUT &lut)
l1t::LUT const * egMaxHOverELUT() const
void setEgHOverEcutBarrel(int cut)
l1t::LUT * egCompressShapesLUT()
double egSeedThreshold() const
void setEtSumEcalSumCalibrationType(std::string type)
unsigned etSumBypassMetPUS() const
std::vector< double > const & jetCalibrationParams() const
void setEgBypassECALFG(unsigned flag)
void setEtSumEtaMin(unsigned isum, int eta)
l1t::LUT const * egCalibrationLUT() const
l1t::LUT * tauIsolationLUT2()
void setEtSumCentLower(unsigned centClass, double loBound)
std::vector< double > const & jetPUSParams() const
void setTauMaxPtTauVeto(double limit)
std::string const & etSumMetPUSType() const
std::string const & egIsolationType() const
void setRegionLsb(double lsb)
void setJetCalibrationType(std::string type)
unsigned jetPUSUsePhiRing() const
l1t::LUT const * centralityLUT() const
unsigned egIsoVetoNrTowersPhi() const
void setEtSumMetPUSType(std::string type)
void setJetPUSUsePhiRing(unsigned flag)
JetParams jetp_
Definition: CaloParams.h:216
l1t::LUT const * jetCalibrationLUT() const
void setTowerLsbH(double lsb)
unsigned egShapeIdVersion() const
void setLayer1HCalScaleFactors(std::vector< double > params)
std::vector< int > minimumBiasThresholds() const
std::vector< int > const & layer1HCalScaleETBins() const
void setEgMinPtJetIsolation(int cutValue)
int etSumEtaMin(unsigned isum) const
l1t::LUT const * egCompressShapesLUT() const
void setEgBypassEGVetos(unsigned flag)
void setEtSumCentUpper(unsigned centClass, double upBound)
void setEgIsolationLUT2(const l1t::LUT &lut)
double jetLsb() const
void setTauCompressLUT(const l1t::LUT &lut)
l1t::LUT const * regionPUSLUT() const
void setLayer1HCalScaleETBins(std::vector< int > params)
std::vector< unsigned > const & layer1HCalScalePhiBins() const
std::string const & metHFCalibrationType() const
int pileUpTowerThreshold() const
int regionPUSValue(int PUM0, int eta) const
l1t::LUT * tauEtToHFRingEtLUT()
std::string const & tauCalibrationType() const
void setPileUpTowerThreshold(int thresh)
double tauLsb() const
void setEtSumEtThreshold(unsigned isum, double thresh)
int egMaxPtJetIsolation() const
void setNode(int pos, const Node &n)
void setTauPUSType(std::string type)
std::string tauPUSType() const
void setEgPUSType(std::string type)
void setLayer1ECalScaleETBins(std::vector< int > params)
Definition: value.py:1
l1t::LUT const * q2LUT() const
double regionLsb() const
l1t::LUT * egIsolationLUT2()
void setTauSeedThreshold(double thresh)
void setTowerEncoding(bool doit)
l1t::LUT * jetCompressPtLUT()
void setTauMaxJetIsolationB(double limit)
void setTauCalibrationType(std::string type)
double egHcalThreshold() const
l1t::LUT const * metHFPhiCalibrationLUT() const
l1t::LUT const * etSumMetPUSLUT() const
void setEgIsoAreaNrTowersPhi(unsigned iEgIsoAreaNrTowersPhi)
void setEgBypassShape(unsigned flag)
std::vector< double > const & layer1HCalScaleFactors() const
l1t::LUT const * etSumEttCalibrationLUT() const
double egNeighbourThreshold() const
void setJetNeighbourThreshold(double thresh)
double egPUSParam(int ipar) const
void setEgShapeIdVersion(unsigned version)
void setTauRegionMask(int mask)
void setJetRegionMask(int mask)
void setEgEtaCut(int mask)
void setJetPUSParams(std::vector< double > params)
void setEgMaxHcalEt(double cut)
unsigned version_
Definition: CaloParams.h:205
std::string const & egShapeIdType() const
l1t::LUT * etSumEcalSumCalibrationLUT()
std::vector< double > const & tauCalibrationParams() const
Definition: LUT.h:29
TauParams taup_
Definition: CaloParams.h:215
void setLayer1SecondStageLUT(const std::vector< unsigned > &lut)
l1t::LUT const * tauCalibrationLUT() const
double jetNeighbourThreshold() const
void setLayer1HFScalePhiBins(std::vector< unsigned > params)
l1t::LUT * metHFCalibrationLUT()
void setJetLsb(double lsb)
double egMaxPtHOverE() const
l1t::LUT const * tauIsolationLUT2() const
unsigned egBypassHoE() const
L1CaloEtScale HfRingScale_
void setTauPUSParams(const std::vector< double > &params)
double etSumCentUpper(unsigned centClass) const
unsigned etSumBypassEcalSumPUS() const
void setLayer1HFScaleETBins(std::vector< int > params)
void setEtSumEttCalibrationType(std::string type)
void setQ2LUT(const l1t::LUT &lut)
const std::vector< Node > & getNodes(void) const
std::string const & egCalibrationType() const
double tauPUSParam(int ipar) const
void setEtSumBypassEttPUS(unsigned flag)
double etSumLsb_
Definition: CaloParams.h:221
void setEgMaxHOverELUT(const l1t::LUT &lut)
int towerNBitsRatio() const
void setEgCalibrationParams(std::vector< double > params)
l1t::LUT const * tauCompressLUT() const
void setTauCalibrationParams(std::vector< double > params)
int egHOverEcutEndcap() const
l1t::LUT * egCalibrationLUT()
void setMinimumBiasThresholds(std::vector< int > thresholds)
unsigned egBypassExtHOverE() const
void setMetCalibrationType(std::string type)
void setJetSeedThreshold(double thresh)
double tauSeedThreshold() const
void setMetHFCalibrationType(std::string type)
l1t::LUT const * etSumEttPUSLUT() const
l1t::LUT const * tauEtToHFRingEtLUT() const
l1t::LUT const * tauTrimmingShapeVetoLUT() const
l1t::LUT const * jetCompressEtaLUT() const
void setEgMaxPtHOverE(double thresh)
void setLayer1ECalScaleFactors(std::vector< double > params)
void setEgTrimmingLUT(const l1t::LUT &lut)
void setEmScale(L1CaloEtScale emScale)
unsigned egBypassECALFG() const
double towerLsbSum() const
void setRegionPUSParams(const std::vector< double > &params)
int towerMaskRatio() const
unsigned tauIsoVetoNrTowersPhi() const
l1t::LUT * tauCalibrationLUT()
std::vector< double > const & layer1HFScaleFactors() const
void setEgIsolationLUT(const l1t::LUT &lut)
void setEgMaxPtHOverEIsolation(int cutValue)
void setTauIsolationLUT2(const l1t::LUT &lut)
void setJetBypassPUS(unsigned flag)
void setTauTrimmingShapeVetoLUT(const l1t::LUT &lut)
void setMetHFPhiCalibrationLUT(const l1t::LUT &lut)
double towerLsbE() const
void setEgBypassHoE(unsigned flag)
void setMetHFCalibrationLUT(const l1t::LUT &lut)
void setEtSumEttPUSType(std::string type)
void setEgSeedThreshold(double thresh)
void setTauIsoVetoNrTowersPhi(unsigned iTauIsoVetoNrTowersPhi)
l1t::LUT * etSumEttCalibrationLUT()
void setMetCalibrationLUT(const l1t::LUT &lut)
void setJetPUSType(std::string type)
void setEgIsoVetoNrTowersPhi(unsigned iEgIsoVetoNrTowersPhi)
void setEtSumLsb(double lsb)
double jetSeedThreshold() const
void setEgIsoAreaNrTowersEta(unsigned iEgIsoAreaNrTowersEta)
l1t::LUT * tauIsolationLUT()
l1t::LUT const * etSumEcalSumCalibrationLUT() const
void setEgShapeIdType(std::string type)
void setIsoTauEtaMin(int value)
void setTowerLsbSum(double lsb)
std::vector< unsigned > const & layer1HFScalePhiBins() const
l1t::LUT * jetCompressEtaLUT()
std::vector< double > const & egCalibrationParams() const
void setEgPUSParams(const std::vector< double > &params)
void setTowerLsbE(double lsb)
l1t::LUT * metPhiCalibrationLUT()
double etSumCentLower(unsigned centClass) const
std::string const & metCalibrationType() const
bool isValidForStage1() const
unsigned egIsoAreaNrTowersEta() const
l1t::LUT * etSumEcalSumPUSLUT()
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
def move(src, dest)
Definition: eostools.py:511
void setEgCalibrationType(std::string type)
const std::vector< double > & egPUSParams() const
void setEtSumEcalSumPUSLUT(const l1t::LUT &lut)
void setEgCompressShapesLUT(const l1t::LUT &lut)
double tauMaxJetIsolationA() const
void setTowerNBitsRatio(int n)
L1CaloEtScale emScale() const
l1t::LUT const * egTrimmingLUT() const
void setEgIsolationType(std::string type)
double towerLsbH() const