Skip to content

Commit d72aefd

Browse files
authored
PWGJE: Remove explicit constructor of JetFinder (#4697)
1 parent f5fcfd1 commit d72aefd

1 file changed

Lines changed: 29 additions & 63 deletions

File tree

PWGJE/Core/JetFinder.h

Lines changed: 29 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -50,75 +50,41 @@ class JetFinder
5050

5151
static constexpr float mPion = 0.139; // TDatabasePDG::Instance()->GetParticle(211)->Mass(); //can be removed when pion mass becomes default for unidentified tracks
5252

53-
float phiMin;
54-
float phiMax;
55-
float etaMin;
56-
float etaMax;
57-
58-
float jetR;
59-
float jetPtMin;
60-
float jetPtMax;
61-
float jetPhiMin;
62-
float jetPhiMax;
63-
float jetEtaMin;
64-
float jetEtaMax;
65-
bool jetEtaDefault;
66-
67-
float ghostEtaMin;
68-
float ghostEtaMax;
69-
float ghostArea;
70-
int ghostRepeatN;
71-
double ghostktMean;
72-
float gridScatter;
73-
float ktScatter;
74-
75-
bool isReclustering;
76-
bool isTriggering;
77-
78-
fastjet::JetAlgorithm algorithm;
79-
fastjet::RecombinationScheme recombScheme;
80-
fastjet::Strategy strategy;
81-
fastjet::AreaType areaType;
53+
float phiMin = 0.;
54+
float phiMax = 2. * M_PI;
55+
float etaMin = -.9;
56+
float etaMax = .9;
57+
58+
float jetR = .4;
59+
float jetPtMin = 0.;
60+
float jetPtMax = 1000.;
61+
float jetPhiMin = 0.;
62+
float jetPhiMax = 2. * M_PI;
63+
float jetEtaMin = -99.;
64+
float jetEtaMax = 99.;
65+
bool jetEtaDefault = false;
66+
67+
float ghostEtaMin = -.9;
68+
float ghostEtaMax = .9;
69+
float ghostArea = .005;
70+
int ghostRepeatN = 1;
71+
double ghostktMean = 1.e-100;
72+
float gridScatter = 1.;
73+
float ktScatter = .1;
74+
75+
bool isReclustering = false;
76+
bool isTriggering = false;
77+
78+
fastjet::JetAlgorithm algorithm = fastjet::antikt_algorithm;
79+
fastjet::RecombinationScheme recombScheme = fastjet::E_scheme;
80+
fastjet::Strategy strategy = fastjet::Best;
81+
fastjet::AreaType areaType = fastjet::active_area;
8282
fastjet::GhostedAreaSpec ghostAreaSpec;
8383
fastjet::JetDefinition jetDef;
8484
fastjet::AreaDefinition areaDef;
8585
fastjet::Selector selJets;
8686
fastjet::Selector selGhosts;
8787

88-
/// Default constructor
89-
explicit JetFinder(float eta_Min = -0.9, float eta_Max = 0.9, float phi_Min = 0.0, float phi_Max = 2.0 * M_PI) : phiMin(phi_Min),
90-
phiMax(phi_Max),
91-
etaMin(eta_Min),
92-
etaMax(eta_Max),
93-
jetR(0.4),
94-
jetPtMin(0.0),
95-
jetPtMax(1000.0),
96-
jetPhiMin(phi_Min),
97-
jetPhiMax(phi_Max),
98-
jetEtaMin(-99.0),
99-
jetEtaMax(99.0),
100-
jetEtaDefault(false),
101-
ghostEtaMin(eta_Min),
102-
ghostEtaMax(eta_Max),
103-
ghostArea(0.005),
104-
ghostRepeatN(1),
105-
ghostktMean(1e-100), // is float precise enough?
106-
gridScatter(1.0),
107-
ktScatter(0.1),
108-
isReclustering(false),
109-
isTriggering(false),
110-
algorithm(fastjet::antikt_algorithm),
111-
recombScheme(fastjet::E_scheme),
112-
strategy(fastjet::Best),
113-
areaType(fastjet::active_area)
114-
{
115-
116-
// default constructor
117-
}
118-
119-
/// Default destructor
120-
~JetFinder() = default;
121-
12288
/// Sets the jet finding parameters
12389
void setParams();
12490

0 commit comments

Comments
 (0)