CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
BeamHaloAnalyzer.cc File Reference
#include "DQMOffline/JetMET/interface/BeamHaloAnalyzer.h"
#include "FWCore/ServiceRegistry/interface/Service.h"

Go to the source code of this file.

Functions

int Phi_To_iPhi (float phi)
 

Function Documentation

int Phi_To_iPhi ( float  phi)

Definition at line 9 of file BeamHaloAnalyzer.cc.

References Pi.

Referenced by BeamHaloAnalyzer::analyze().

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