Skip to content

Commit 3150786

Browse files
authored
[PWGCF] debug, fix GFW dictionart problem (#9974)
1 parent b61aafd commit 3150786

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

PWGCF/GenericFramework/Core/GFWWeights.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// or submit itself to any jurisdiction.
1111

1212
#include "GFWWeights.h"
13+
#include "TMath.h"
1314
#include <cstdio>
1415

1516
GFWWeights::GFWWeights() : TNamed("", ""),
@@ -67,7 +68,7 @@ void GFWWeights::init(bool AddData, bool AddMC)
6768
fW_data->SetName("GFWWeights_Data");
6869
fW_data->SetOwner(kTRUE);
6970
const char* tnd = getBinName(0, 0, Form("data_%s", this->GetName()));
70-
fW_data->Add(new TH3D(tnd, ";#varphi;#eta;v_{z}", 60, 0, TwoPI, 64, -1.6, 1.6, 40, -10, 10));
71+
fW_data->Add(new TH3D(tnd, ";#varphi;#eta;v_{z}", 60, 0, TMath::TwoPi(), 64, -1.6, 1.6, 40, -10, 10));
7172
fDataFilled = kTRUE;
7273
}
7374
if (AddMC) {
@@ -108,7 +109,7 @@ void GFWWeights::fill(double phi, double eta, double vz, double pt, double /*cen
108109
TH3D* th3 = reinterpret_cast<TH3D*>(tar->FindObject(getBinName(0, 0, pf))); // pT bin 0, V0M bin 0, since all integrated
109110
if (!th3) {
110111
if (!htype)
111-
tar->Add(new TH3D(getBinName(0, 0, pf), ";#varphi;#eta;v_{z}", 60, 0, TwoPI, 64, -1.6, 1.6, 40, -10, 10)); // 0,0 since all integrated
112+
tar->Add(new TH3D(getBinName(0, 0, pf), ";#varphi;#eta;v_{z}", 60, 0, TMath::TwoPi(), 64, -1.6, 1.6, 40, -10, 10)); // 0,0 since all integrated
112113
th3 = reinterpret_cast<TH3D*>(tar->At(tar->GetEntries() - 1));
113114
}
114115
th3->Fill(htype ? pt : phi, eta, vz, weight);

PWGCF/GenericFramework/Core/GFWWeights.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#define PWGCF_GENERICFRAMEWORK_CORE_GFWWEIGHTS_H_
1818

1919
#include "Framework/Logger.h"
20-
#include "Framework/AnalysisTask.h"
2120

2221
#include "TObjArray.h"
2322
#include "TNamed.h"
@@ -28,8 +27,6 @@
2827
#include "TCollection.h"
2928
#include "TString.h"
3029

31-
using namespace o2::constants::math;
32-
3330
class GFWWeights : public TNamed
3431
{
3532
public:

0 commit comments

Comments
 (0)