Skip to content

Commit

Permalink
Make variables const
Browse files Browse the repository at this point in the history
  • Loading branch information
cvuosalo committed Feb 4, 2022
1 parent 69e2db8 commit 2265366
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Geometry/CSCGeometry/test/stubs/CSCGeometryAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ class CSCGeometryAnalyzer : public edm::one::EDAnalyzer<> {
const int dashedLineWidth_;
const std::string dashedLine_;
const std::string myName_;
edm::ESGetToken<CSCGeometry, MuonGeometryRecord> ddToken_;
const edm::ESGetToken<CSCGeometry, MuonGeometryRecord> ddToken_;
};

CSCGeometryAnalyzer::CSCGeometryAnalyzer(const edm::ParameterSet& iConfig)
: dashedLineWidth_(194), dashedLine_(std::string(dashedLineWidth_, '-')), myName_("CSCGeometryAnalyzer") {
ddToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
}
: dashedLineWidth_(194),
dashedLine_(std::string(dashedLineWidth_, '-')),
myName_("CSCGeometryAnalyzer"),
ddToken_(esConsumes<CSCGeometry, MuonGeometryRecord>()) {}

CSCGeometryAnalyzer::~CSCGeometryAnalyzer() {}

Expand All @@ -45,7 +46,7 @@ void CSCGeometryAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetu
std::cout << "start " << dashedLine_ << std::endl;
std::cout << "pi = " << dPi << ", radToDeg = " << radToDeg << std::endl;

edm::ESTransientHandle<CSCGeometry> pDD = iSetup.getTransientHandle(ddToken_);
const edm::ESTransientHandle<CSCGeometry> pDD = iSetup.getTransientHandle(ddToken_);
std::cout << " Geometry node for CSCGeom is " << &(*pDD) << std::endl;
std::cout << " I have " << pDD->detTypes().size() << " detTypes" << std::endl;
std::cout << " I have " << pDD->detUnits().size() << " detUnits" << std::endl;
Expand Down

0 comments on commit 2265366

Please sign in to comment.