@@ -30,7 +30,6 @@ boostHisto EMCALCalibExtractor::buildHitAndEnergyMeanScaled(double emin, double
3030{
3131 // create the output histogram
3232 boostHisto eSumHistoScaled = boost::histogram::make_histogram (boost::histogram::axis::regular<>(100 , 0 , 100 , " t-texp" ), boost::histogram::axis::integer<>(0 , mNcells , " CELL ID" ));
33-
3433 // create a slice for each cell with energies ranging from emin to emax
3534 auto hEnergyCol = boost::histogram::make_histogram (boost::histogram::axis::regular<>(100 , 0 , 100 ., " t-texp" ));
3635 auto hEnergyRow = boost::histogram::make_histogram (boost::histogram::axis::regular<>(250 , 0 , 250 ., " t-texp" ));
@@ -47,9 +46,8 @@ boostHisto EMCALCalibExtractor::buildHitAndEnergyMeanScaled(double emin, double
4746
4847 for (int cellID = 0 ; cellID < mNcells ; cellID++) {
4948 auto tempSlice = boost::histogram::algorithm::reduce (cellAmplitude, boost::histogram::algorithm::shrink (cellID, cellID), boost::histogram::algorithm::shrink (emin, emax));
50- auto geo = Geometry::GetInstance ();
5149 // (0 - row, 1 - column)
52- auto position = geo ->GlobalRowColFromIndex (cellID);
50+ auto position = mGeometry ->GlobalRowColFromIndex (cellID);
5351 int row = std::get<0 >(position);
5452 int col = std::get<1 >(position);
5553
@@ -101,9 +99,8 @@ boostHisto EMCALCalibExtractor::buildHitAndEnergyMeanScaled(double emin, double
10199
102100 // Scale each cell by the deviation of the mean of the column and the global mean
103101 for (int iCell = 0 ; iCell < mNcells ; iCell++) {
104- auto geo = Geometry::GetInstance ();
105102 // (0 - row, 1 - column)
106- auto position = geo ->GlobalRowColFromIndex (iCell);
103+ auto position = mGeometry ->GlobalRowColFromIndex (iCell);
107104 int col = std::get<1 >(position);
108105 if (hEnergyCol.at (col) > 0 .) {
109106 // will need to change the 100 depending on the number of energy bins we end up having
@@ -115,9 +112,8 @@ boostHisto EMCALCalibExtractor::buildHitAndEnergyMeanScaled(double emin, double
115112
116113 // Scale each cell by the deviation of the mean of the row and the global mean
117114 for (int iCell = 0 ; iCell < mNcells ; iCell++) {
118- auto geo = Geometry::GetInstance ();
119115 // (0 - row, 1 - column)
120- auto position = geo ->GlobalRowColFromIndex (iCell);
116+ auto position = mGeometry ->GlobalRowColFromIndex (iCell);
121117 int row = std::get<0 >(position);
122118 if (hEnergyRow.at (row) > 0 .) {
123119 // will need to change the 100 depending on the number of energy bins we end up having
0 commit comments