CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
PhysicalEtAdder.cc File Reference
#include "L1Trigger/L1TCalorimeter/plugins/PhysicalEtAdder.h"
#include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
#include "CondFormats/DataRecord/interface/L1JetEtScaleRcd.h"
#include "CondFormats/DataRecord/interface/L1HtMissScaleRcd.h"
#include "CondFormats/DataRecord/interface/L1EmEtScaleRcd.h"
#include "DataFormats/L1CaloTrigger/interface/L1CaloEmCand.h"
#include "DataFormats/L1CaloTrigger/interface/L1CaloRegion.h"
#include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
#include "DataFormats/L1Trigger/interface/BXVector.h"
#include "DataFormats/L1Trigger/interface/EtSum.h"
#include "DataFormats/L1TCalorimeter/interface/CaloEmCand.h"
#include "DataFormats/L1TCalorimeter/interface/CaloRegion.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include <vector>

Go to the source code of this file.

Functions

 DEFINE_FWK_MODULE (l1t::PhysicalEtAdder)
 
double getPhysicalEta (int etaIndex)
 
double getPhysicalPhi (int phiIndex)
 

Function Documentation

DEFINE_FWK_MODULE ( l1t::PhysicalEtAdder  )
double getPhysicalEta ( int  etaIndex)

Definition at line 228 of file PhysicalEtAdder.cc.

Referenced by l1t::PhysicalEtAdder::produce().

229 {
230  const double rgnEtaValues[11] = {
231  0.174, // HB and inner HE bins are 0.348 wide
232  0.522,
233  0.870,
234  1.218,
235  1.566,
236  1.956, // Last two HE bins are 0.432 and 0.828 wide
237  2.586,
238  3.250, // HF bins are 0.5 wide
239  3.750,
240  4.250,
241  4.750
242  };
243  if(etaIndex < 11) {
244  return -rgnEtaValues[-(etaIndex - 10)]; // 0-10 are negative eta values
245  }
246  else if (etaIndex < 22) {
247  return rgnEtaValues[etaIndex - 11]; // 11-21 are positive eta values
248  }
249  return -9;
250 }
double getPhysicalPhi ( int  phiIndex)

Definition at line 252 of file PhysicalEtAdder.cc.

References M_PI.

Referenced by l1t::PhysicalEtAdder::produce().

253 {
254  if (phiIndex < 10)
255  return 2. * M_PI * phiIndex / 18.;
256  if (phiIndex < 18)
257  return -M_PI + 2. * M_PI * (phiIndex - 9) / 18.;
258  return -9;
259 }
#define M_PI