You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: PWGCF/GenericFramework/GFW.h
+30-31
Original file line number
Diff line number
Diff line change
@@ -18,26 +18,25 @@ If used, modified, or distributed, please aknowledge the author of this code.
18
18
*/
19
19
#ifndef PWGCF_GENERICFRAMEWORK_GFW_H_
20
20
#definePWGCF_GENERICFRAMEWORK_GFW_H_
21
+
21
22
#include"GFWCumulant.h"
22
23
#include"GFWPowerArray.h"
23
24
#include<vector>
24
25
#include<string>
25
26
#include<utility>
26
27
#include<algorithm>
27
28
#include<complex>
28
-
using std::complex;
29
-
using std::string;
30
-
using std::vector;
29
+
31
30
classGFW
32
31
{
33
32
public:
34
33
structRegion {
35
34
int Nhar, NpT;
36
-
vector<int> NparVec{};
35
+
std::vector<int> NparVec{};
37
36
double EtaMin = -999;
38
37
double EtaMax = -999;
39
38
int BitMask = 1;
40
-
string rName = "";
39
+
std::string rName = "";
41
40
bool powsDefined = false;
42
41
booloperator<(const Region& a) const
43
42
{
@@ -46,47 +45,47 @@ class GFW
46
45
voidPrintStructure() { printf("%s: eta [%f.. %f].", rName.c_str(), EtaMin, EtaMax); }
47
46
};
48
47
structCorrConfig {
49
-
vector<vector<int>> Regs{};
50
-
vector<vector<int>> Hars{};
51
-
vector<int> Overlap;
52
-
vector<int> ptInd;
48
+
std::vector<std::vector<int>> Regs{};
49
+
std::vector<std::vector<int>> Hars{};
50
+
std::vector<int> Overlap;
51
+
std::vector<int> ptInd;
53
52
bool pTDif = false;
54
-
string Head = "";
53
+
std::string Head = "";
55
54
};
56
55
GFW();
57
56
~GFW();
58
-
vector<Region> fRegions;
59
-
vector<GFWCumulant> fCumulants;
60
-
voidAddRegion(string refName, double lEtaMin, double lEtaMax, int lNpT, int BitMask);
61
-
voidAddRegion(string refName, vector<int> lNparVec, double lEtaMin, double lEtaMax, int lNpT, int BitMask);// Legacy
62
-
voidAddRegion(string refName, int lNhar, int lNpar, double lEtaMin, double lEtaMax, int lNpT, int BitMask); // Legacy support, all powers are the same
63
-
voidAddRegion(string refName, int lNhar, int* lNparVec, double lEtaMin, double lEtaMax, int lNpT, int BitMask); // Legacy support, array instead of a vector
57
+
std::vector<Region> fRegions;
58
+
std::vector<GFWCumulant> fCumulants;
59
+
voidAddRegion(std::string refName, double lEtaMin, double lEtaMax, int lNpT, int BitMask);
60
+
voidAddRegion(std::string refName, std::vector<int> lNparVec, double lEtaMin, double lEtaMax, int lNpT, int BitMask); // Legacy
61
+
voidAddRegion(std::string refName, int lNhar, int lNpar, double lEtaMin, double lEtaMax, int lNpT, int BitMask);// Legacy support, all powers are the same
62
+
voidAddRegion(std::string refName, int lNhar, int* lNparVec, double lEtaMin, double lEtaMax, int lNpT, int BitMask);// Legacy support, array instead of a vector
64
63
intCreateRegions();
65
64
voidFill(double eta, int ptin, double phi, double weight, int mask, double secondWeight = -1);
0 commit comments