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.

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 }

References createfilelist::int, and Pi.

Referenced by GlobalHaloAlgo::Calculate().

◆ Phi_To_HcaliPhi()

int Phi_To_HcaliPhi ( float  phi)

Definition at line 16 of file GlobalHaloAlgo.cc.

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 }

References createfilelist::int, and Pi.

Referenced by GlobalHaloAlgo::Calculate().

EB
Definition: GlobalHaloAlgo.cc:15
HB
Definition: GlobalHaloAlgo.cc:15
PVValHelper::phi
Definition: PVValidationHelpers.h:68
createfilelist.int
int
Definition: createfilelist.py:10
HE
Definition: GlobalHaloAlgo.cc:15
EE
Definition: GlobalHaloAlgo.cc:15
Pi
const double Pi
Definition: CosmicMuonParameters.h:18