17 static const double Pi = TMath::Pi();
24 for(
int i=0;
i<nEtaRegions;
i++) {
34 for(
int iReg=0; iReg<nEtaRegions; iReg++) {
35 double startEta = etaBreakPts[iReg];
36 double endEta = etaBreakPts[iReg+1];
37 double regSize = endEta - startEta;
41 for(
int iBin=0; iBin<
nEtaBins[iReg]; iBin++) {
53 std::cerr <<
"ERROR: Bin array not in correct order. Make sure breakPoints array\n"
54 <<
"is in ascending order" << std::endl;
65 for(
int i=0;
i<nPhiRegions;
i++) {
73 for(
int iReg=0; iReg<nPhiRegions; iReg++) {
74 double startPhi = phiBreakPts[iReg];
75 double endPhi = phiBreakPts[iReg+1];
76 double regSize = endPhi - startPhi;
80 for(
int iBin=0; iBin<
nPhiBins[iReg]; iBin++) {
92 std::cerr <<
"ERROR: Bin array not in correct order. Make sure breakPoints array\n"
93 <<
"is in ascending order" << std::endl;
102 double phiBreakPtsArray[2] = {-Pi,Pi};
116 for (
size_t i=0;
i<etaSize;++
i) {
123 std::cerr <<
"ERROR: Bin array not in correct order. Make sure breakPoints array\n"
124 <<
"is in ascending order" << std::endl;