CMS 3D CMS Logo

Functions
BeamHaloAnalyzer.cc File Reference
#include "DQMOffline/JetMET/interface/BeamHaloAnalyzer.h"

Go to the source code of this file.

Functions

int Phi_To_iPhi (float phi)
 

Function Documentation

◆ Phi_To_iPhi()

int Phi_To_iPhi ( float  phi)

Definition at line 8 of file BeamHaloAnalyzer.cc.

References createfilelist::int, and Pi.

Referenced by BeamHaloAnalyzer::analyze().

8  {
9  phi = phi < 0 ? phi + 2. * TMath::Pi() : phi;
10  float phi_degrees = phi * (360.) / (2. * TMath::Pi());
11  int iPhi = (int)((phi_degrees / 5.) + 1.);
12 
13  return iPhi < 73 ? iPhi : 73;
14 }
const double Pi