Skip to content

Commit 738579c

Browse files
author
Lucia Anna Tarasovicova
committed
fix code
1 parent 28e0a60 commit 738579c

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎ALICE3/TableProducer/OTF/onTheFlyTracker.cxx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
#include <map>
9999
#include <memory>
100100
#include <string>
101-
#include <string_view>
102101
#include <utility>
103102
#include <vector>
104103

‎ALICE3/TableProducer/alice3TrackingTranslator.cxx‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "ALICE3/DataModel/OTFCollision.h"
2020
#include "ALICE3/DataModel/collisionAlice3.h"
2121
#include "ALICE3/DataModel/tracksAlice3.h"
22-
#include "Common/Core/RecoDecay.h"
2322
#include "Common/DataModel/TrackSelectionTables.h"
2423

2524
#include <Framework/AnalysisDataModel.h>
@@ -130,7 +129,7 @@ struct Alice3TrackingTranslator {
130129
}
131130
Long64_t getEntries() const { return mTree->GetEntries(); }
132131
TFile mFile;
133-
TTree* mTree;
132+
TTree* mTree{nullptr};
134133
};
135134

136135
struct ParticleStruct : public FileStruct {
@@ -433,7 +432,7 @@ struct Alice3TrackingTranslator {
433432
std::map<Key, int> barcodeToGlobalIdx;
434433
std::map<int, std::vector<float>> globalToVertexPosition;
435434
std::map<int, int> GlobalIdxToMotherIdx;
436-
std::map<int, int> GlobalIdxSecVertexRadiusIncoming;
435+
std::map<int, float> GlobalIdxSecVertexRadiusIncoming;
437436
std::map<int, int> GlobalIdxToPDGCode;
438437
std::map<int, int> GlobalToLocalIdx;
439438
std::map<int, std::vector<int>> GlobalIdxToDaughterIdxs;
@@ -497,20 +496,20 @@ struct Alice3TrackingTranslator {
497496
float secondaryVertexRadius = -1.0f;
498497
int globalIdx = firstIdxThisEvent + static_cast<int>(iPart);
499498
int motherIdx = -1;
500-
if (GlobalIdxToMotherIdx.find(globalIdx) != GlobalIdxToMotherIdx.end()) {
499+
if (GlobalIdxToMotherIdx.contains(globalIdx)) {
501500
motherIdx = GlobalIdxToMotherIdx[globalIdx];
502501
}
503502
int firstDaughter = -1;
504503
int secondDaughter = -1;
505-
if (GlobalIdxToDaughterIdxs.find(globalIdx) != GlobalIdxToDaughterIdxs.end()) {
504+
if (GlobalIdxToDaughterIdxs.contains(globalIdx)) {
506505
const auto& daughters = GlobalIdxToDaughterIdxs[globalIdx];
507-
if (daughters.size() > 0) {
506+
if (!daughters.empty()) {
508507
firstDaughter = daughters[0];
509508
}
510509
if (daughters.size() > 1) {
511510
secondDaughter = daughters[1];
512511
}
513-
if (globalToVertexPosition.find(globalIdx) != globalToVertexPosition.end()) {
512+
if (globalToVertexPosition.contains(globalIdx)) {
514513
const auto& vertexPos = globalToVertexPosition[globalIdx];
515514
secondaryVertexRadius = std::hypot(vertexPos[0] * 0.1, vertexPos[1] * 0.1);
516515
}
@@ -760,17 +759,17 @@ struct Alice3TrackingTranslator {
760759
}
761760
};
762761

763-
o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const& cfgc)
762+
o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const& context)
764763
{
765764
o2::framework::WorkflowSpec w;
766-
if (cfgc.options().hasOption("aod-file")) {
767-
std::string inputFile = cfgc.options().get<std::string>("aod-file");
765+
if (context.options().hasOption("aod-file")) {
766+
auto inputFile = context.options().get<std::string>("aod-file");
768767
if (!inputFile.empty()) {
769768
LOG(info) << " " << inputFile;
770769
TString tinputFile(inputFile.c_str());
771770
inputPath = gSystem->DirName(tinputFile);
772771
}
773772
}
774-
w.push_back(adaptAnalysisTask<Alice3TrackingTranslator>(cfgc));
773+
w.push_back(adaptAnalysisTask<Alice3TrackingTranslator>(context));
775774
return w;
776775
}

‎ALICE3/TableProducer/alice3strangenessFinder.cxx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#include <ReconstructionDataFormats/TrackParametrization.h>
4949

5050
#include <TH1.h>
51+
#include <TH2.h>
5152
#include <TLorentzVector.h>
5253
#include <TPDGCode.h>
5354

‎ALICE3/Tasks/alice3Strangeness.cxx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
///
1919

2020
#include "PWGLF/DataModel/LFStrangenessTables.h"
21+
#include "Common/Core/RecoDecay.h"
2122

2223
#include "ALICE3/DataModel/OTFCollision.h"
2324
#include "ALICE3/DataModel/OTFStrangeness.h"

0 commit comments

Comments
 (0)