5 #ifndef ACTIVEFRACTION_H
6 #define ACTIVEFRACTION_H
11 #define M_PI 3.141592653589793238462643383279502884197
22 const std::vector<std::pair<float,float>>&
getEtaBins( )
const;
23 const std::vector<std::pair<float,float>>&
getPhiBins( )
const;
34 m_etaBins.push_back( std::make_pair(-2.1,-1.75) );
35 m_etaBins.push_back( std::make_pair(-1.75,-1.3) );
36 m_etaBins.push_back( std::make_pair(-1.3,-1.07) );
37 m_etaBins.push_back( std::make_pair(-1.07,-0.65) );
38 m_etaBins.push_back( std::make_pair(-0.65,-0.1) );
39 m_etaBins.push_back( std::make_pair(-0.1,0.) );
40 m_etaBins.push_back( std::make_pair(0.,0.1) );
41 m_etaBins.push_back( std::make_pair(0.1,0.65) );
42 m_etaBins.push_back( std::make_pair(0.65,1.07) );
43 m_etaBins.push_back( std::make_pair(1.07,1.3) );
44 m_etaBins.push_back( std::make_pair(1.3,1.75) );
45 m_etaBins.push_back( std::make_pair(1.75,2.1) );
46 float phiEdgeLow = -1. *
M_PI;
52 std::vector<float> dummyPhiVec(
m_phiBins.size(), 1. );
53 std::vector<std::vector<float> > dummyTable(
m_etaBins.size(), dummyPhiVec );
61 if ( eta > theBin.first && eta <= theBin.second )
break;
72 if ( phi > theBin.first && phi <= theBin.second )
break;
82 if (
etaBin < 0 )
return 1.;
84 if (
phiBin < 0 )
return 1.;