Skip to content

Commit 40592ce

Browse files
authored
Add files via upload
1 parent 70f464a commit 40592ce

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

PWGCF/Flow/Tasks/pidFlowPtCorr.cxx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct PidFlowPtCorr {
109109
O2_DEFINE_CONFIGURABLE(cfgEfficiencyPath, std::vector<std::string>, (std::vector<std::string>{"PathtoRef"}), "CCDB path to efficiency object")
110110
O2_DEFINE_CONFIGURABLE(cfgRunNumbers, std::vector<int>, (std::vector<int>{544095, 544098, 544116, 544121, 544122, 544123, 544124}), "Preconfigured run numbers")
111111
// number of runs used in the data, make sure the number is bigger than the vectorsize above
112-
O2_DEFINE_CONFIGURABLE(cfgNumberOfRuns, int, 7, "number of runs in the data");
112+
O2_DEFINE_CONFIGURABLE(cfgNumberOfRuns, double, 7, "number of runs in the data");
113113

114114
// switch
115115
O2_DEFINE_CONFIGURABLE(cfgDoAccEffCorr, bool, false, "do acc and eff corr")
@@ -287,7 +287,7 @@ struct PidFlowPtCorr {
287287
// hist for NUA
288288
registry.add("correction/hRunNumberPhiEtaVertex", "", {HistType::kTHnSparseF, {{cfgNumberOfRuns, 0, cfgNumberOfRuns}, cfgaxisPhi, cfgaxisEta, cfgaxisVertex}});
289289
// set "correction/hRunNumberPhiEtaVertex" axis0 label
290-
for (int idx = 1; idx <= runNumbers.size(); idx++) {
290+
for (uint64_t idx = 1; idx <= runNumbers.size(); idx++) {
291291
registry.get<THnSparse>(HIST("correction/hRunNumberPhiEtaVertex"))->GetAxis(0)->SetBinLabel(idx, std::to_string(runNumbers[idx - 1]).c_str());
292292
}
293293
// end set "correction/hRunNumberPhiEtaVertex" axis0 label
@@ -795,7 +795,6 @@ struct PidFlowPtCorr {
795795
void processData(AodCollisions::iterator const& collision, aod::BCsWithTimestamps const&, AodTracks const& tracks)
796796
{
797797
// init
798-
o2::aod::ITSResponse itsResponse;
799798
int nTot = tracks.size();
800799
float nMultTPC = collision.multTPC();
801800
auto bc = collision.bc_as<aod::BCsWithTimestamps>();
@@ -1033,9 +1032,7 @@ struct PidFlowPtCorr {
10331032
void fillCorrectionGraph(AodCollisions::iterator const& collision, aod::BCsWithTimestamps const&, AodTracks const& tracks)
10341033
{
10351034
// init
1036-
o2::aod::ITSResponse itsResponse;
10371035
int nTot = tracks.size();
1038-
float nMultTPC = collision.multTPC();
10391036
auto bc = collision.bc_as<aod::BCsWithTimestamps>();
10401037
int runNumber = bc.runNumber();
10411038
double interactionRate = rateFetcher.fetch(ccdb.service, bc.timestamp(), runNumber, "ZNC hadronic") * 1.e-3;
@@ -1057,7 +1054,7 @@ struct PidFlowPtCorr {
10571054
// loop the vector, find the place to put (phi eta Vz)
10581055
// if the run number is new, create one
10591056
int matchedPosition = -1;
1060-
for (int idxPosition = 0; idxPosition < this->runNumbers.size(); idxPosition++) {
1057+
for (uint64_t idxPosition = 0; idxPosition < this->runNumbers.size(); idxPosition++) {
10611058
if (this->runNumbers[idxPosition] == runNumber) {
10621059
matchedPosition = idxPosition;
10631060
break;
@@ -1100,7 +1097,6 @@ struct PidFlowPtCorr {
11001097
// cut and correction
11011098
o2::aod::ITSResponse itsResponse;
11021099
int nTot = tracks.size();
1103-
float nMultTPC = collision.multTPC();
11041100
auto bc = collision.bc_as<aod::BCsWithTimestamps>();
11051101
int runNumber = bc.runNumber();
11061102
double interactionRate = rateFetcher.fetch(ccdb.service, bc.timestamp(), runNumber, "ZNC hadronic") * 1.e-3;

0 commit comments

Comments
 (0)