Skip to content

Commit

Permalink
Minor changes (i.e. adding comments, removing commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Erich Varnes committed Jul 15, 2024
1 parent 9d36ee4 commit 8dea544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions RecFCCeeCalorimeter/src/components/CaloTowerToolFCCee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ void CaloTowerToolFCCee::towersNumber(int& nTheta, int& nPhi) {
// Maximum theta & phi of the calorimeter system
m_phiMax = *std::max_element(listPhiMax.begin(), listPhiMax.end());
m_thetaMax = *std::max_element(listThetaMax.begin(), listThetaMax.end());
debug() << "Detector limits: phiMax " << m_phiMax << " thetaMax " << m_thetaMax << endmsg;

// very small number (epsilon) substructed from the edges to ensure correct division
float epsilon = 0.0001;
Expand Down Expand Up @@ -296,7 +297,6 @@ uint CaloTowerToolFCCee::idTheta(float aTheta) const {
// aPhi Position of the calorimeter cell in phi
uint CaloTowerToolFCCee::idPhi(float aPhi) const {
uint id = floor((aPhi + m_phiMax) / m_deltaPhiTower);
// uint id = floor(aPhi / m_deltaPhiTower);
return id;
}

Expand Down Expand Up @@ -350,7 +350,6 @@ void CaloTowerToolFCCee::CellsIntoTowers(std::vector<std::vector<float>>& aTower
iTheta = idTheta(cellTheta);
iPhi = idPhi(cellPhi);
aTowers[iTheta][phiNeighbour(iPhi)] +=
// cell.getEnergy() * sin(segmentation->theta(cell.getCellID()));
cell.getEnergy() * sin(cellTheta);

if (fillTowersCells) {
Expand Down
2 changes: 1 addition & 1 deletion RecFCCeeCalorimeter/src/components/CaloTowerToolFCCee.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CaloTowerToolFCCee : public GaudiTool, virtual public ITowerToolThetaModul
/** This is where the cell info is filled into towers
* @param[in] aTowers Calorimeter towers.
* @param[in] aCells Calorimeter cells collection.
* @param[in] aSegmentation Segmentation of the calorimeter
* @param[in] fillTowerCells If true, make a list of the cells in each tower
*/
void CellsIntoTowers(std::vector<std::vector<float>>& aTowers, const edm4hep::CalorimeterHitCollection* aCells,
bool fillTowersCells);
Expand Down

0 comments on commit 8dea544

Please sign in to comment.