Skip to content

Commit

Permalink
auto code format (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalin authored Dec 21, 2024
1 parent 8baea33 commit 4b21f59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions L1Trigger/L1TTrackMatch/test/L1TrackObjectNtupleMaker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2302,7 +2302,7 @@ void L1TrackObjectNtupleMaker::analyze(const edm::Event& iEvent, const edm::Even
myFake = 1;

myTP_pdgid = my_tp->pdgId();
if (my_tp->genParticles().size() > 0) {
if (!my_tp->genParticles().empty()) {
myTP_mother_pdgid = my_tp->genParticles().at(0)->mother(0)->pdgId();
}
myTP_pt = my_tp->p4().pt();
Expand Down Expand Up @@ -2365,7 +2365,7 @@ void L1TrackObjectNtupleMaker::analyze(const edm::Event& iEvent, const edm::Even

this_l1track++;
} //end track loop
} //end if SaveAllTracks
} //end if SaveAllTracks

// ----------------------------------------------------------------------------------------------
// loop over (extended) L1 tracks
Expand Down Expand Up @@ -2579,7 +2579,7 @@ void L1TrackObjectNtupleMaker::analyze(const edm::Event& iEvent, const edm::Even
m_trkExt_selected_associated_emulation_foretmiss_index->push_back(this_l1track);
this_l1track++;
} //end track loop
} //end if SaveAllTracks (displaced)
} //end if SaveAllTracks (displaced)

// ----------------------------------------------------------------------------------------------
// loop over tracking particles
Expand Down Expand Up @@ -2829,7 +2829,7 @@ void L1TrackObjectNtupleMaker::analyze(const edm::Event& iEvent, const edm::Even
}

} // end loop over matched L1 tracks
} // end has at least 1 matched L1 track
} // end has at least 1 matched L1 track
// ----------------------------------------------------------------------------------------------

float tmp_matchtrk_pt = -999;
Expand Down Expand Up @@ -3000,7 +3000,7 @@ void L1TrackObjectNtupleMaker::analyze(const edm::Event& iEvent, const edm::Even
}

} // end loop over matched L1 tracks
} // end has at least 1 matched L1 track
} // end has at least 1 matched L1 track
// ----------------------------------------------------------------------------------------------

float tmp_matchtrkExt_pt = -999;
Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/Phase2L1ParticleFlow/plugins/L1MetPfProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ L1MetPfProducer::L1MetPfProducer(const edm::ParameterSet& cfg)
maxCands_(cfg.getParameter<int>("maxCands")),
modelVersion_(cfg.getParameter<std::string>("modelVersion")) {
produces<std::vector<l1t::EtSum>>();
useMlModel_ = (modelVersion_.length() > 0);
useMlModel_ = (!modelVersion_.empty());
if (useMlModel_) {
hls4mlEmulator::ModelLoader loader(modelVersion_);
model = loader.load_model();
Expand Down

0 comments on commit 4b21f59

Please sign in to comment.