Skip to content

Commit 1c107ed

Browse files
author
Sunanda
committed
Code check
1 parent d86f808 commit 1c107ed

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

SimG4CMS/Calo/interface/CaloSD.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class CaloSD : public SensitiveCaloDetector,
114114
inline void setNumberCheckedHits(int val) { nCheckedHits = val; }
115115

116116
bool isItFineCalo(const G4VTouchable* touch);
117+
117118
private:
118119
void storeHit(CaloG4Hit*);
119120
bool saveHit(CaloG4Hit*);

SimG4CMS/Calo/interface/EcalDumpGeometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class EcalDumpGeometry {
2828

2929
private:
3030
void dumpTouch(G4VPhysicalVolume *pv, unsigned int leafDepth);
31-
std::string noRefl(const std::string& name);
31+
std::string noRefl(const std::string &name);
3232

3333
EcalBarrelNumberingScheme ebNumbering_;
3434
EcalEndcapNumberingScheme eeNumbering_;

SimG4CMS/Calo/src/CaloSD.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ CaloSD::CaloSD(const std::string& name,
139139
edm::LogVerbatim("CaloSim") << "CaloSD::Loads information for " << fineDetectors_.size() << " fine detectors";
140140
unsigned int k(0);
141141
for (const auto& detector : fineDetectors_) {
142-
edm::LogVerbatim("CaloSim") << "Detector[" << k << "] " << detector.name << " at level " << detector.level << " pointer to LV: " << detector.lv;
142+
edm::LogVerbatim("CaloSim") << "Detector[" << k << "] " << detector.name << " at level " << detector.level
143+
<< " pointer to LV: " << detector.lv;
143144
}
144145
#endif
145146
} else {
@@ -309,9 +310,11 @@ bool CaloSD::isItFineCalo(const G4VTouchable* touch) {
309310
ok = (lv == detector.lv);
310311
#ifdef EDM_ML_DEBUG
311312
std::string name = (lv == 0) ? "Unknown" : lv->GetName();
312-
edm::LogVerbatim("CaloSim") << "CaloSD: volume " << name1 << ":" << detector.name << " at Level " << detector.level << " Flag " << ok;
313+
edm::LogVerbatim("CaloSim") << "CaloSD: volume " << name1 << ":" << detector.name << " at Level "
314+
<< detector.level << " Flag " << ok;
313315
#endif
314-
if (ok) break;
316+
if (ok)
317+
break;
315318
}
316319
}
317320
return ok;

SimG4CMS/Calo/src/EcalDumpGeometry.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ void EcalDumpGeometry::dumpTouch(G4VPhysicalVolume* pv, unsigned int leafDepth)
116116
fHistory_.BackLevel();
117117
}
118118

119-
std::string EcalDumpGeometry::noRefl(const std::string & name) {
119+
std::string EcalDumpGeometry::noRefl(const std::string& name) {
120120
if (name.find("_refl") == std::string::npos) {
121121
return name;
122122
} else {
123123
size_t n = name.size();
124-
return name.substr(0, n-5);
124+
return name.substr(0, n - 5);
125125
}
126126
}

0 commit comments

Comments
 (0)