Skip to content

Commit 12d7c4c

Browse files
committed
solve the received o2-linter error
1 parent 3232b73 commit 12d7c4c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

PWGLF/Tasks/Resonances/chargedkstaranalysis.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
#include <cmath>
7171
#include <cstdlib>
7272
#include <string>
73+
#include <unordered_map>
74+
#include <unordered_set>
7375
#include <vector>
7476

7577
using namespace o2;
@@ -569,6 +571,10 @@ struct Chargedkstaranalysis {
569571
LOG(info) << "Size of the histograms in chK(892) Analysis Task";
570572
histos.print();
571573
}
574+
575+
std::unordered_set<int64_t> allowedMcIds;
576+
std::unordered_map<int64_t, float> centTruthByAllowed;
577+
572578
float lMultiplicity;
573579
template <typename CollisionType>
574580
float getCentrality(CollisionType const& collision)
@@ -1229,8 +1235,8 @@ struct Chargedkstaranalysis {
12291235

12301236
void processMC(soa::Join<aod::McCollisions, aod::McCentFT0Ms> const& mcCollisions, aod::McParticles& mcParticles, soa::Join<EventCandidates, aod::McCollisionLabels> const& events, MCV0Candidates const& v0s, MCTrackCandidates const& tracks)
12311237
{
1232-
std::unordered_set<int64_t> allowedMcIds;
1233-
std::unordered_map<int64_t, float> centTruthByAllowed;
1238+
allowedMcIds.clear();
1239+
centTruthByAllowed.clear();
12341240

12351241
// To apply event selection and store the collision IDs of reconstructed tracks that pass the selection criteria
12361242
for (const auto& coll : events) {

0 commit comments

Comments
 (0)