Skip to content

Commit ee4dd18

Browse files
mvolklmvolkl
authored andcommitted
changed double to float
1 parent d3ae063 commit ee4dd18

File tree

2 files changed

+31
-29
lines changed

2 files changed

+31
-29
lines changed

PWGHF/TableProducer/candidateCreatorLb.cxx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ struct HfCandidateCreatorLb {
4141
Produces<aod::HfCandLbBase> rowCandidateBase;
4242

4343
// vertexing
44-
Configurable<double> bz{"bz", 20., "magnetic field"};
44+
Configurable<float> bz{"bz", 20., "magnetic field"};
4545
Configurable<bool> propagateToPCA{"propagateToPCA", true, "create tracks version propagated to PCA"};
4646
Configurable<bool> useAbsDCA{"useAbsDCA", false, "Minimise abs. distance rather than chi2"};
4747
Configurable<bool> useWeightedFinalPCA{"useWeightedFinalPCA", false, "Recalculate vertex position using track covariances, effective only if useAbsDCA is true"};
48-
Configurable<double> maxR{"maxR", 200., "reject PCA's above this radius"};
49-
Configurable<double> maxDZIni{"maxDZIni", 4., "reject (if>0) PCA candidate if tracks DZ exceeds threshold"};
50-
Configurable<double> minParamChange{"minParamChange", 1.e-3, "stop iterations if largest change of any Lb is smaller than this"};
51-
Configurable<double> minRelChi2Change{"minRelChi2Change", 0.9, "stop iterations is chi2/chi2old > this"};
48+
Configurable<float> maxR{"maxR", 200., "reject PCA's above this radius"};
49+
Configurable<float> maxDZIni{"maxDZIni", 4., "reject (if>0) PCA candidate if tracks DZ exceeds threshold"};
50+
Configurable<float> minParamChange{"minParamChange", 1.e-3, "stop iterations if largest change of any Lb is smaller than this"};
51+
Configurable<float> minRelChi2Change{"minRelChi2Change", 0.9, "stop iterations is chi2/chi2old > this"};
5252
// selection
53-
Configurable<double> ptPionMin{"ptPionMin", 0.5, "minimum pion pT threshold (GeV/c)"};
53+
Configurable<float> ptPionMin{"ptPionMin", 0.5, "minimum pion pT threshold (GeV/c)"};
5454
Configurable<int> selectionFlagLc{"selectionFlagLc", 1, "Selection Flag for Lc"};
55-
Configurable<double> yCandMax{"yCandMax", -1., "max. cand. rapidity"};
55+
Configurable<float> yCandMax{"yCandMax", -1., "max. cand. rapidity"};
5656

5757
o2::vertexing::DCAFitterN<2> df2; // 2-prong vertex fitter
5858
o2::vertexing::DCAFitterN<3> df3; // 3-prong vertex fitter (to rebuild Lc vertex)
@@ -247,10 +247,7 @@ struct HfCandidateCreatorLbExpressions {
247247
Spawns<aod::HfCandLbExt> rowCandidateLb;
248248

249249
void init(InitContext const&) {}
250-
};
251250

252-
/// Performs MC matching.
253-
struct HfCandidateCreatorLbMc {
254251
Produces<aod::HfCandLbMcRec> rowMcMatchRec;
255252
Produces<aod::HfCandLbMcGen> rowMcMatchGen;
256253

@@ -311,14 +308,19 @@ struct HfCandidateCreatorLbMc {
311308
rowMcMatchGen(flag, origin);
312309
}
313310
}
314-
PROCESS_SWITCH(HfCandidateCreatorLbMc, processMc, "Process MC", false);
311+
PROCESS_SWITCH(HfCandidateCreatorLbExpressions, processMc, "Process MC", false);
315312
};
316313

314+
/// Performs MC matching.
315+
/*struct HfCandidateCreatorLbMc {
316+
317+
};*/
318+
317319
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
318320
{
319321
WorkflowSpec workflow{
320322
adaptAnalysisTask<HfCandidateCreatorLb>(cfgc),
321-
adaptAnalysisTask<HfCandidateCreatorLbExpressions>(cfgc),
322-
adaptAnalysisTask<HfCandidateCreatorLbMc>(cfgc)};
323+
adaptAnalysisTask<HfCandidateCreatorLbExpressions>(cfgc)};
324+
//adaptAnalysisTask<HfCandidateCreatorLbMc>(cfgc)};
323325
return workflow;
324326
}

PWGHF/TableProducer/candidateSelectorLbToLcPi.cxx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@ using namespace o2::analysis;
3131
struct HfCandidateSelectorLbToLcPi {
3232
Produces<aod::HfSelLbToLcPi> hfSelLbToLcPiCandidate;
3333

34-
Configurable<double> ptCandMin{"ptCandMin", 0., "Lower bound of candidate pT"};
35-
Configurable<double> ptCandMax{"ptCandMax", 50., "Upper bound of candidate pT"};
34+
Configurable<float> ptCandMin{"ptCandMin", 0., "Lower bound of candidate pT"};
35+
Configurable<float> ptCandMax{"ptCandMax", 50., "Upper bound of candidate pT"};
3636
// TPC PID
37-
Configurable<double> ptPidTpcMin{"ptPidTpcMin", 0.15, "Lower bound of track pT for TPC PID"};
38-
Configurable<double> ptPidTpcMax{"ptPidTpcMax", 10., "Upper bound of track pT for TPC PID"};
39-
Configurable<double> nSigmaTpcMax{"nSigmaTpcMax", 5., "Nsigma cut on TPC only"};
40-
Configurable<double> nSigmaTpcCombinedMax{"nSigmaTpcCombinedMax", 5., "Nsigma cut on TPC combined with TOF"};
37+
Configurable<float> ptPidTpcMin{"ptPidTpcMin", 0.15, "Lower bound of track pT for TPC PID"};
38+
Configurable<float> ptPidTpcMax{"ptPidTpcMax", 10., "Upper bound of track pT for TPC PID"};
39+
Configurable<float> nSigmaTpcMax{"nSigmaTpcMax", 5., "Nsigma cut on TPC only"};
40+
Configurable<float> nSigmaTpcCombinedMax{"nSigmaTpcCombinedMax", 5., "Nsigma cut on TPC combined with TOF"};
4141
// TOF PID
42-
Configurable<double> ptPidTofMin{"ptPidTofMin", 0.15, "Lower bound of track pT for TOF PID"};
43-
Configurable<double> ptPidTofMax{"ptPidTofMax", 10., "Upper bound of track pT for TOF PID"};
44-
Configurable<double> nSigmaTofMax{"nSigmaTofMax", 5., "Nsigma cut on TOF only"};
45-
Configurable<double> nSigmaTofCombinedMax{"nSigmaTofCombinedMax", 5., "Nsigma cut on TOF combined with TPC"};
42+
Configurable<float> ptPidTofMin{"ptPidTofMin", 0.15, "Lower bound of track pT for TOF PID"};
43+
Configurable<float> ptPidTofMax{"ptPidTofMax", 10., "Upper bound of track pT for TOF PID"};
44+
Configurable<float> nSigmaTofMax{"nSigmaTofMax", 5., "Nsigma cut on TOF only"};
45+
Configurable<float> nSigmaTofCombinedMax{"nSigmaTofCombinedMax", 5., "Nsigma cut on TOF combined with TPC"};
4646
// topological cuts
4747
Configurable<std::vector<double>> binsPt{"binsPt", std::vector<double>{hf_cuts_lb_to_lc_pi::vecBinsPt}, "pT bin limits"};
48-
Configurable<double> impactParameterMaximum{"impactParameterMaximum", 0.2, "Maximum impact parameter for single tracks"};
49-
Configurable<double> maxDecayLengthError{"maxDecayLengthError", 0.015, "decay length error quality selection"};
50-
Configurable<double> maxDecayLengthXYError{"maxDecayLengthXYError", 0.01, "decay length xy error quality selection"};
48+
Configurable<float> impactParameterMaximum{"impactParameterMaximum", 0.2, "Maximum impact parameter for single tracks"};
49+
Configurable<float> maxDecayLengthError{"maxDecayLengthError", 0.015, "decay length error quality selection"};
50+
Configurable<float> maxDecayLengthXYError{"maxDecayLengthXYError", 0.01, "decay length xy error quality selection"};
5151
Configurable<LabeledArray<double>> cuts{"cuts", {hf_cuts_lb_to_lc_pi::cuts[0], hf_cuts_lb_to_lc_pi::nBinsPt, hf_cuts_lb_to_lc_pi::nCutVars, hf_cuts_lb_to_lc_pi::labelsPt, hf_cuts_lb_to_lc_pi::labelsCutVar}, "Lb0 candidate selection per pT bin"};
5252
Configurable<int> selectionFlagLc{"selectionFlagLc", 1, "Selection Flag for Lc+"};
5353

@@ -165,9 +165,9 @@ struct HfCandidateSelectorLbToLcPi {
165165
auto track0 = candLc.prong0_as<aod::Tracks>();
166166
auto track1 = candLc.prong1_as<aod::Tracks>();
167167
auto track2 = candLc.prong2_as<aod::Tracks>();
168-
double reso0 = candLc.errorImpactParameter0();
169-
double reso1 = candLc.errorImpactParameter1();
170-
double reso2 = candLc.errorImpactParameter2();
168+
float reso0 = candLc.errorImpactParameter0();
169+
float reso1 = candLc.errorImpactParameter1();
170+
float reso2 = candLc.errorImpactParameter2();
171171
if (!passesImpactParameterResolution(track0.pt(), reso0) || !passesImpactParameterResolution(track1.pt(), reso1) || !passesImpactParameterResolution(track2.pt(), reso2) || !passesImpactParameterResolution(trackPi.pt(), hfCandLb.errorImpactParameter1())) {
172172
hfSelLbToLcPiCandidate(statusLb);
173173
continue;

0 commit comments

Comments
 (0)