CMS 3D CMS Logo

Enumerations | Functions
GlobalHaloAlgo.cc File Reference
#include "RecoMET/METAlgorithms/interface/GlobalHaloAlgo.h"

Go to the source code of this file.

Enumerations

enum  detectorregion { EB, EE, HB, HE }
 

Functions

int Phi_To_EcaliPhi (float phi)
 
int Phi_To_HcaliPhi (float phi)
 

Enumeration Type Documentation

◆ detectorregion

Enumerator
EB 
EE 
HB 
HE 

Definition at line 15 of file GlobalHaloAlgo.cc.

15 { EB, EE, HB, HE };

Function Documentation

◆ Phi_To_EcaliPhi()

int Phi_To_EcaliPhi ( float  phi)

Definition at line 24 of file GlobalHaloAlgo.cc.

References createfilelist::int, and Pi.

Referenced by GlobalHaloAlgo::Calculate().

24  {
25  phi = phi < 0 ? phi + 2. * TMath::Pi() : phi;
26  float phi_degrees = phi * (360.) / (2. * TMath::Pi());
27  int iPhi = (int)(phi_degrees + 1.);
28 
29  return iPhi < 361 ? iPhi : 360;
30 }
const double Pi

◆ Phi_To_HcaliPhi()

int Phi_To_HcaliPhi ( float  phi)

Definition at line 16 of file GlobalHaloAlgo.cc.

References createfilelist::int, and Pi.

Referenced by GlobalHaloAlgo::Calculate().

16  {
17  phi = phi < 0 ? phi + 2. * TMath::Pi() : phi;
18  float phi_degrees = phi * (360.) / (2. * TMath::Pi());
19  int iPhi = (int)((phi_degrees / 5.) + 1.);
20 
21  return iPhi < 73 ? iPhi : 73;
22 }
const double Pi