Skip to content

Commit

Permalink
Applying code-checks/format
Browse files Browse the repository at this point in the history
  • Loading branch information
borzari committed Dec 20, 2023
1 parent edab588 commit 37baa71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void ShortenedTrackResolution::analyze(edm::Event const &iEvent, edm::EventSetup
}

for (const auto &track : *tracks) {
reco::HitPattern hp = track.hitPattern();
const reco::HitPattern &hp = track.hitPattern();
if (int(int(hp.numberOfValidHits()) - int(hp.numberOfAllHits(reco::HitPattern::TRACK_HITS))) != 0) {
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SingleLongTrackProducer : public edm::stream::EDProducer<> {
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);

private:
virtual void produce(edm::Event &, const edm::EventSetup &) override;
void produce(edm::Event &, const edm::EventSetup &) override;

const edm::EDGetTokenT<std::vector<reco::Track>> tracksToken;
const edm::EDGetTokenT<std::vector<reco::Muon>> muonsToken;
Expand Down Expand Up @@ -71,7 +71,7 @@ void SingleLongTrackProducer::produce(edm::Event &iEvent, const edm::EventSetup
double fitProb = 100;

for (const auto &track : *tracks) {
reco::HitPattern hitpattern = track.hitPattern();
const reco::HitPattern &hitpattern = track.hitPattern();
double dRmin = 10;
double chiNdof = track.normalizedChi2();
double dxy = std::abs(track.dxy(vtx.position()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ namespace reco {
TrajectorySeed seed(state, TrackCandidate::RecHitContainer(), pdir);
TrackCandidate::RecHitContainer ownHits;
ownHits.reserve(hitsEnd - hitsBegin);
reco::HitPattern hp = tk.hitPattern();
const reco::HitPattern &hp = tk.hitPattern();
unsigned int sequLayers = 0;
std::vector<bool> isNotValidVec;
isNotValidVec.clear();
Expand Down

0 comments on commit 37baa71

Please sign in to comment.