Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Oct 24, 2020
1 parent 003dab9 commit 8c9b605
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SimG4CMS/Calo/src/ECalSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ void ECalSD::initMap() {
int i = 0;
for (auto ite : xtalLMap) {
G4String name("Unknown");
if (ite.first != 0)
if (ite.first != nullptr)
name = (ite.first)->GetName();
edm::LogVerbatim("EcalSim") << " " << i << " " << ite.first << " " << name << " L = " << ite.second;
++i;
Expand Down Expand Up @@ -489,10 +489,10 @@ double ECalSD::getBirkL3(const G4Step* aStep) {
}

std::string ECalSD::getNameNoNS(const std::string& name) {
if (name.find(":") == std::string::npos) {
if (name.find(':') == std::string::npos) {
return name;
} else {
auto n1 = name.find(":") + 1;
auto n1 = name.find(':') + 1;
return name.substr(n1, (name.size() - n1));
}
}

0 comments on commit 8c9b605

Please sign in to comment.