|
10 | 10 | // or submit itself to any jurisdiction. |
11 | 11 |
|
12 | 12 | #include "GFWWeights.h" |
| 13 | +#include "TMath.h" |
13 | 14 | #include <cstdio> |
14 | 15 |
|
15 | 16 | GFWWeights::GFWWeights() : TNamed("", ""), |
@@ -67,7 +68,7 @@ void GFWWeights::init(bool AddData, bool AddMC) |
67 | 68 | fW_data->SetName("GFWWeights_Data"); |
68 | 69 | fW_data->SetOwner(kTRUE); |
69 | 70 | 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)); |
71 | 72 | fDataFilled = kTRUE; |
72 | 73 | } |
73 | 74 | if (AddMC) { |
@@ -108,7 +109,7 @@ void GFWWeights::fill(double phi, double eta, double vz, double pt, double /*cen |
108 | 109 | TH3D* th3 = reinterpret_cast<TH3D*>(tar->FindObject(getBinName(0, 0, pf))); // pT bin 0, V0M bin 0, since all integrated |
109 | 110 | if (!th3) { |
110 | 111 | 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 |
112 | 113 | th3 = reinterpret_cast<TH3D*>(tar->At(tar->GetEntries() - 1)); |
113 | 114 | } |
114 | 115 | th3->Fill(htype ? pt : phi, eta, vz, weight); |
|
0 commit comments