CMS 3D CMS Logo

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

◆ Phi_To_iPhi()

int Phi_To_iPhi ( float  phi)

Definition at line 10 of file BeamHaloAnalyzer.cc.

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

References createfilelist::int, and Pi.

Referenced by BeamHaloAnalyzer::analyze().

PVValHelper::phi
Definition: PVValidationHelpers.h:68
createfilelist.int
int
Definition: createfilelist.py:10
Pi
const double Pi
Definition: CosmicMuonParameters.h:18