Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Apr 18, 2022
1 parent 211d4c2 commit 39c7c83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions Geometry/HGCalCommonData/interface/HGCalCassette.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@

class HGCalCassette {
public:
HGCalCassette(int cassette, const std::vector<double>& shifts) {
setParameter(cassette, shifts);
}
HGCalCassette(int cassette, const std::vector<double>& shifts) { setParameter(cassette, shifts); }
HGCalCassette() {}

void setParameter(int cassette, const std::vector<double>& shifts);
Expand Down
5 changes: 3 additions & 2 deletions Geometry/HGCalCommonData/src/HGCalCassette.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ std::pair<double, double> HGCalCassette::getShift(int layer, int zside, int cass
int loc = cassette_ * (layer - 1) + locc;
std::pair<double, double> xy = std::make_pair(shifts_[loc] * cos_[locc], shifts_[loc] * sin_[locc]);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "HGCalCassette::getShift: Layer " << layer << " zside " << zside << " cassette " << cassette << " Loc " << locc << ":" << loc << " shift " << xy.first << ":" << xy.second;
edm::LogVerbatim("HGCalGeom") << "HGCalCassette::getShift: Layer " << layer << " zside " << zside << " cassette "
<< cassette << " Loc " << locc << ":" << loc << " shift " << xy.first << ":"
<< xy.second;
#endif
return xy;
}

0 comments on commit 39c7c83

Please sign in to comment.