Skip to content

Commit e648360

Browse files
author
Preet Pati
committed
Converting integer mults into double
1 parent f668ad6 commit e648360

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/corrFit.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ struct CorrFit {
993993
}
994994

995995
template <typename TTracks>
996-
void trackCounter(const TTracks& tracks, int& multiplicity) // function to count the number of tracks in the event and fill the histogram
996+
void trackCounter(const TTracks& tracks, double& multiplicity) // function to count the number of tracks in the event and fill the histogram
997997
{
998998
double nTracksCorrected = 0;
999999
float weightNch = 1.0f;
@@ -1152,7 +1152,7 @@ struct CorrFit {
11521152
}
11531153

11541154
template <CorrelationContainer::CFStep step, typename TTracks, typename TFT0s>
1155-
void fillCorrelationsTPCFT0(const TTracks& tracks1, TFT0s const& ft0, float posZ, int system, int multiplicity, int corType, float eventWeight) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
1155+
void fillCorrelationsTPCFT0(const TTracks& tracks1, TFT0s const& ft0, float posZ, int system, double multiplicity, int corType, float eventWeight) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
11561156
{
11571157

11581158
int fSampleIndex = static_cast<int>(gRandom->Uniform(0.0, cfgSampleSize));
@@ -1237,7 +1237,7 @@ struct CorrFit {
12371237
}
12381238

12391239
template <CorrelationContainer::CFStep step, typename TFT0s>
1240-
void fillCorrelationsFT0AFT0C(TFT0s const& ft0Col1, TFT0s const& ft0Col2, float posZ, int system, int multiplicity, float eventWeight) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
1240+
void fillCorrelationsFT0AFT0C(TFT0s const& ft0Col1, TFT0s const& ft0Col2, float posZ, int system, double multiplicity, float eventWeight) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
12411241
{
12421242
int fSampleIndex = static_cast<int>(gRandom->Uniform(0.0, cfgSampleSize));
12431243

@@ -1283,7 +1283,7 @@ struct CorrFit {
12831283
}
12841284

12851285
template <CorrelationContainer::CFStep step, typename TTracks, typename TTracksAssoc>
1286-
void fillCorrelations(const TTracks& tracks1, const TTracksAssoc& tracks2, float posZ, int system, int multiplicity, int magneticField) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
1286+
void fillCorrelations(const TTracks& tracks1, const TTracksAssoc& tracks2, float posZ, int system, double multiplicity, int magneticField) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
12871287
{
12881288

12891289
int fSampleIndex = static_cast<int>(gRandom->Uniform(0.0, cfgSampleSize));
@@ -1427,7 +1427,7 @@ struct CorrFit {
14271427

14281428
fillYield(collision, tracks);
14291429

1430-
int multiplicity = tracks.size();
1430+
double multiplicity = static_cast<double>(tracks.size());
14311431

14321432
if (cfgQaCheck) {
14331433
registry.fill(HIST("Nch"), multiplicity);
@@ -1495,7 +1495,7 @@ struct CorrFit {
14951495
loadCorrection(bc.timestamp());
14961496
float eventWeight = 1.0f;
14971497

1498-
int multiplicity = tracks1.size();
1498+
double multiplicity = static_cast<double>(tracks.size());
14991499

15001500
if (cfgStrictTrackCounter) {
15011501
trackCounter(tracks1, multiplicity);
@@ -1545,7 +1545,7 @@ struct CorrFit {
15451545

15461546
const auto& ft0 = collision.foundFT0();
15471547

1548-
int multiplicity = tracks.size();
1548+
double multiplicity = static_cast<double>(tracks.size());
15491549

15501550
if (cfgQaCheck) {
15511551
registry.fill(HIST("Nch"), multiplicity);
@@ -1611,7 +1611,7 @@ struct CorrFit {
16111611
float eventWeight = 1.0f;
16121612

16131613
const auto& ft0 = collision2.foundFT0();
1614-
int multiplicity = tracks1.size();
1614+
double multiplicity = static_cast<double>(tracks.size());
16151615

16161616
if (cfgStrictTrackCounter) {
16171617
trackCounter(tracks1, multiplicity);
@@ -1663,7 +1663,7 @@ struct CorrFit {
16631663

16641664
registry.fill(HIST("eventcount"), SameEvent); // because its same event i put it in the 1 bin
16651665

1666-
int multiplicity = tracks.size();
1666+
double multiplicity = static_cast<double>(tracks.size());
16671667

16681668
if (cfgQaCheck) {
16691669
registry.fill(HIST("Nch"), multiplicity);
@@ -1731,7 +1731,7 @@ struct CorrFit {
17311731
const auto& ft0Col1 = collision1.foundFT0();
17321732
const auto& ft0Col2 = collision2.foundFT0();
17331733

1734-
int multiplicity = tracks1.size();
1734+
double multiplicity = static_cast<double>(tracks.size());
17351735

17361736
if (cfgStrictTrackCounter) {
17371737
trackCounter(tracks1, multiplicity);
@@ -1775,7 +1775,7 @@ struct CorrFit {
17751775

17761776
fillYield(collision, tracks);
17771777

1778-
int multiplicity = tracks.size();
1778+
double multiplicity = static_cast<double>(tracks.size());
17791779

17801780
if (cfgQaCheck) {
17811781
registry.fill(HIST("Nch"), multiplicity);
@@ -1837,7 +1837,7 @@ struct CorrFit {
18371837

18381838
loadCorrection(bc.timestamp());
18391839

1840-
int multiplicity = tracks1.size();
1840+
double multiplicity = static_cast<double>(tracks.size());
18411841

18421842
if (cfgStrictTrackCounter) {
18431843
trackCounter(tracks1, multiplicity);

PWGCF/TwoParticleCorrelations/Tasks/corrReso.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ struct CorrReso {
10231023
}
10241024

10251025
template <typename TTracks>
1026-
void trackCounter(const TTracks& tracks, int& multiplicity) // function to count the number of tracks in the event and fill the histogram
1026+
void trackCounter(const TTracks& tracks, double& multiplicity) // function to count the number of tracks in the event and fill the histogram
10271027
{
10281028
double nTracksCorrected = 0;
10291029
float weightNch = 1.0f;
@@ -1358,7 +1358,7 @@ struct CorrReso {
13581358

13591359
fillYield(collision, tracks);
13601360

1361-
int multiplicity = tracks.size();
1361+
double multiplicity = static_cast<double>(tracks.size());
13621362

13631363
if (cfgQaCheck)
13641364
registry.fill(HIST("Nch"), multiplicity);
@@ -1427,7 +1427,7 @@ struct CorrReso {
14271427
loadCorrection(bc.timestamp());
14281428
float eventWeight = 1.0f;
14291429

1430-
int multiplicity = tracks1.size();
1430+
double multiplicity = static_cast<double>(tracks.size());
14311431

14321432
if (cfgStrictTrackCounter) {
14331433
trackCounter(tracks1, multiplicity);
@@ -1480,7 +1480,7 @@ struct CorrReso {
14801480

14811481
const auto& ft0 = collision.foundFT0();
14821482

1483-
int multiplicity = tracks.size();
1483+
double multiplicity = static_cast<double>(tracks.size());
14841484

14851485
if (cfgQaCheck)
14861486
registry.fill(HIST("Nch"), multiplicity);
@@ -1547,7 +1547,7 @@ struct CorrReso {
15471547
float eventWeight = 1.0f;
15481548

15491549
const auto& ft0 = collision2.foundFT0();
1550-
int multiplicity = tracks1.size();
1550+
double multiplicity = static_cast<double>(tracks1.size());
15511551

15521552
if (cfgStrictTrackCounter) {
15531553
trackCounter(tracks1, multiplicity);

0 commit comments

Comments
 (0)