Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions PWGJE/Tasks/bjetTaggingGNN.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@
using MCDSVTable = aod::MCDSecondaryVertex3Prongs;

template <typename AnyCollision, typename AnalysisJet, typename AnyTracks>
int analyzeJetTrackInfo(AnyCollision const& /*collision*/, AnalysisJet const& analysisJet, AnyTracks const& /*allTracks*//*, int8_t jetFlavor = 0, double weight = 1.0*/)
int analyzeJetTrackInfo(AnyCollision const& /*collision*/, AnalysisJet const& analysisJet, AnyTracks const& /*allTracks*/ /*, int8_t jetFlavor = 0, double weight = 1.0*/)
{
int nTracks = 0;
for (auto& constituent : analysisJet.template tracks_as<AnyTracks>()) {

Check warning on line 200 in PWGJE/Tasks/bjetTaggingGNN.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.

if (constituent.pt() < trackPtMin) {
continue;
Expand All @@ -211,7 +211,7 @@
}

template <typename AnalysisJet, typename SecondaryVertices>
SecondaryVertices::iterator analyzeJetSVInfo(AnalysisJet const& analysisJet, SecondaryVertices const& allSVs, bool& checkSV/*, int8_t jetFlavor = 0, double weight = 1.0*/)
SecondaryVertices::iterator analyzeJetSVInfo(AnalysisJet const& analysisJet, SecondaryVertices const& allSVs, bool& checkSV /*, int8_t jetFlavor = 0, double weight = 1.0*/)
{
using SVType = typename SecondaryVertices::iterator;

Expand Down Expand Up @@ -332,10 +332,10 @@

int8_t jetFlavor = analysisJet.origin();

int nTracks = analyzeJetTrackInfo(collision, analysisJet, allTracks/*, jetFlavor, weight*/);
int nTracks = analyzeJetTrackInfo(collision, analysisJet, allTracks /*, jetFlavor, weight*/);

int nNppTracks = 0;
for (auto& constituent : analysisJet.template tracks_as<JetTracksMCDwID>()) {

Check warning on line 338 in PWGJE/Tasks/bjetTaggingGNN.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if (!constituent.has_mcParticle() || !constituent.template mcParticle_as<aod::JetParticles>().isPhysicalPrimary() || constituent.pt() < trackPtMin) {
++nNppTracks;
}
Expand All @@ -347,7 +347,7 @@

bool checkSV;
// auto sv = jettaggingutilities::jetFromProngMaxDecayLength<MCDSVTable>(analysisJet, prongChi2PCAMin, prongChi2PCAMax, prongsigmaLxyMax, prongIPxyMin, prongIPxyMax, false, &checkSV);
auto sv = analyzeJetSVInfo(analysisJet, allSVs, checkSV/*, jetFlavor, weight*/);
auto sv = analyzeJetSVInfo(analysisJet, allSVs, checkSV /*, jetFlavor, weight*/);

if (checkSV) {
mSV = sv.m();
Expand Down
Loading