Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Jul 18, 2021
1 parent 66cc52a commit e8f389f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Expand Up @@ -34,7 +34,7 @@ class TkAccumulatingSensitiveDetector : public SensitiveTkDetector,
public Observer<const BeginOfJob *> {
public:
TkAccumulatingSensitiveDetector(const std::string &,
const GeometricDet*,
const GeometricDet *,
const SensitiveDetectorCatalog &,
edm::ParameterSet const &,
const SimTrackManager *);
Expand Down
Expand Up @@ -19,8 +19,7 @@
class TkAccumulatingSensitiveDetectorBuilder : public SensitiveDetectorMakerBase {
public:
explicit TkAccumulatingSensitiveDetectorBuilder(edm::ParameterSet const& p, edm::ConsumesCollector cc)
: geomdet_{nullptr},
geomdetToken_{cc.esConsumes<edm::Transition::BeginRun>()} {}
: geomdet_{nullptr}, geomdetToken_{cc.esConsumes<edm::Transition::BeginRun>()} {}

void beginRun(const edm::EventSetup& es) final { geomdet_ = &es.getData(geomdetToken_); }

Expand Down
6 changes: 2 additions & 4 deletions SimG4CMS/Tracker/src/TkAccumulatingSensitiveDetector.cc
Expand Up @@ -39,7 +39,7 @@ static TrackerG4SimHitNumberingScheme& numberingScheme(const GeometricDet& det)
}

TkAccumulatingSensitiveDetector::TkAccumulatingSensitiveDetector(const std::string& name,
const GeometricDet *pDD,
const GeometricDet* pDD,
const SensitiveDetectorCatalog& clg,
edm::ParameterSet const& p,
const SimTrackManager* manager)
Expand Down Expand Up @@ -349,9 +349,7 @@ void TkAccumulatingSensitiveDetector::update(const BeginOfEvent* i) {
mySimHit = nullptr;
}

void TkAccumulatingSensitiveDetector::update(const BeginOfJob* i) {
theNumberingScheme = &(numberingScheme(*pDD_));
}
void TkAccumulatingSensitiveDetector::update(const BeginOfJob* i) { theNumberingScheme = &(numberingScheme(*pDD_)); }

void TkAccumulatingSensitiveDetector::clearHits() {
slaveLowTof.get()->Initialize();
Expand Down

0 comments on commit e8f389f

Please sign in to comment.