Skip to content

Commit

Permalink
code checks, code formats and fix nomenclature
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Dec 14, 2020
1 parent 92ddba2 commit 65cdaec
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 17 deletions.
8 changes: 4 additions & 4 deletions Alignment/APEEstimation/plugins/ApeEstimator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2571,14 +2571,14 @@ bool ApeEstimator::isHit2D(const TrackingRecHit& hit) const {
const ProjectedSiStripRecHit2D* pH = static_cast<const ProjectedSiStripRecHit2D*>(&hit);
return (this->isHit2D(pH->originalHit())); // depends on original...
} else {
edm::LogError("UnknownType") << "@SUB=AlignmentTrackSelector::isHit2D"
<< "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
edm::LogError("UnknownType") << "@SUB=ApeEstimator::isHit2D"
<< "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
return false;
}
}
} else { // not tracker??
edm::LogWarning("DetectorMismatch") << "@SUB=AlignmentTrackSelector::isHit2D"
edm::LogWarning("DetectorMismatch") << "@SUB=ApeEstimator::isHit2D"
<< "Hit not in tracker with 'official' dimension >=2.";
return true; // dimension() >= 2 so accept that...
}
Expand Down
3 changes: 0 additions & 3 deletions Alignment/CommonAlignmentProducer/plugins/LSNumberFilter.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#include "FWCore/Framework/interface/stream/EDFilter.h"

#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESHandle.h"

#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,8 @@ bool AlignmentTrackSelector::isHit2D(const TrackingRecHit& hit) const {
return (countStereoHitAs2D_ && this->isHit2D(pH->originalHit())); // depends on original...
} else {
edm::LogError("UnknownType") << "@SUB=AlignmentTrackSelector::isHit2D"
<< "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
<< "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Alignment/OfflineValidation/plugins/DMRChecker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1795,8 +1795,8 @@ class DMRChecker : public edm::one::EDAnalyzer<edm::one::SharedResources> {
return (countStereoHitAs2D_ && this->isHit2D(pH->originalHit())); // depends on original...
} else {
edm::LogError("UnknownType") << "@SUB=DMRChecker::isHit2D"
<< "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
<< "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1172,8 +1172,8 @@ class GeneralPurposeTrackAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchR
return (countStereoHitAs2D_ && this->isHit2D(pH->originalHit())); // depends on original...
} else {
edm::LogError("UnknownType") << "@SUB=GeneralPurposeTrackAnalyzer::isHit2D"
<< "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
<< "Tracker hit not in pixel, neither SiStripRecHit[12]D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1173,16 +1173,16 @@ bool PrimaryVertexValidation::isHit2D(const TrackingRecHit& hit, const PVValHelp
else if (dynamic_cast<const ProjectedSiStripRecHit2D*>(&hit))
return false; // crazy hit...
else {
edm::LogError("UnknownType") << "@SUB=AlignmentTrackSelector::isHit2D"
<< "Tracker hit not in pixel and neither SiStripRecHit2D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
edm::LogError("UnknownType") << "@SUB=PrimaryVertexValidation::isHit2D"
<< "Tracker hit not in pixel and neither SiStripRecHit2D nor "
<< "SiStripMatchedRecHit2D nor ProjectedSiStripRecHit2D.";
return false;
}
} else {
return false;
}
} else { // not tracker??
edm::LogWarning("DetectorMismatch") << "@SUB=AlignmentTrackSelector::isHit2D"
edm::LogWarning("DetectorMismatch") << "@SUB=PrimaryVertexValidation::isHit2D"
<< "Hit not in tracker with 'official' dimension >=2.";
return true; // dimension() >= 2 so accept that...
}
Expand Down

0 comments on commit 65cdaec

Please sign in to comment.