Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider the following formatting changes to #8202 #43

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions PWGDQ/Core/CutsLibrary.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,22 @@ AnalysisCompositeCut* o2::aod::dqcuts::GetCompositeCut(const char* cutName)
return cut;
}

if (!nameStr.compare("trackCut_compareDQEMframework")) { // cut setting to check least common factor between reduced data sets of PWGEM and PWGDQ
cut->AddCut(GetAnalysisCut("lmeeStandardKine"));
cut->AddCut(GetAnalysisCut("trackQuality_compareDQEMframework"));
cut->AddCut(GetAnalysisCut("trackDCA1cm"));
AnalysisCompositeCut* cut_tpc_nSigma = new AnalysisCompositeCut("pid_TPCnSigma", "pid_TPCnSigma", kTRUE);
cut_tpc_nSigma->AddCut(GetAnalysisCut("lmee_commonDQEM_PID_TPC"));

AnalysisCompositeCut* cut_tof_nSigma = new AnalysisCompositeCut("pid_TOFnSigma", "pid_TOFnSigma", kTRUE);
cut_tof_nSigma->AddCut(GetAnalysisCut("lmee_commonDQEM_PID_TOF"));

AnalysisCompositeCut* cut_pid_OR = new AnalysisCompositeCut("e_NSigma", "e_NSigma", kFALSE);
cut_pid_OR->AddCut(cut_tpc_nSigma);
cut_pid_OR->AddCut(cut_tof_nSigma);
return cut;
}

// -------------------------------------------------------------------------------------------------
// lmee pair cuts

Expand Down Expand Up @@ -3801,6 +3817,17 @@ AnalysisCut* o2::aod::dqcuts::GetAnalysisCut(const char* cutName)
return cut;
}

if (!nameStr.compare("trackQuality_compareDQEMframework")) { // cut setting to check least common factor between reduced data sets of PWGEM and PWGDQ
cut->AddCut(VarManager::kIsSPDfirst, 0.5, 1.5);
cut->AddCut(VarManager::kITSchi2, 0.0, 5.0);
cut->AddCut(VarManager::kITSncls, 4.5, 7.5);
cut->AddCut(VarManager::kTPCchi2, 0.0, 4.0);
cut->AddCut(VarManager::kTPCnclsCR, 80.0, 161.);
cut->AddCut(VarManager::kTPCnCRoverFindCls, 0.8, 1e+10);
cut->AddCut(VarManager::kTPCncls, 90.0, 170.);
return cut;
}

if ((!nameStr.compare("TightGlobalTrackRun3")) || (!nameStr.compare("lmeeQCTrackCuts"))) {
cut->AddCut(VarManager::kIsSPDfirst, 0.5, 1.5);
cut->AddCut(VarManager::kTPCchi2, 0.0, 4.0);
Expand Down Expand Up @@ -4049,6 +4076,12 @@ AnalysisCut* o2::aod::dqcuts::GetAnalysisCut(const char* cutName)
return cut;
}

if (!nameStr.compare("trackDCA1cm")) { // cut setting to check least common factor between reduced data sets of PWGEM and PWGDQ
cut->AddCut(VarManager::kTrackDCAxy, -1.0, 1.0);
cut->AddCut(VarManager::kTrackDCAz, -1.0, 1.0);
return cut;
}

if (!nameStr.compare("dcaCut1_ionut")) {
cut->AddCut(VarManager::kTrackDCAxy, -0.5, 0.5);
cut->AddCut(VarManager::kTrackDCAz, -0.5, 0.5);
Expand Down Expand Up @@ -4409,6 +4442,21 @@ AnalysisCut* o2::aod::dqcuts::GetAnalysisCut(const char* cutName)
return cut;
}

if (!nameStr.compare("lmee_commonDQEM_PID_TPC")) { // cut setting to check least common factor between reduced data sets of PWGEM and PWGDQ
cut->AddCut(VarManager::kTPCnSigmaEl, -2.5, 3., false, VarManager::kPin, 0.0, 1e+10, false);
cut->AddCut(VarManager::kTPCnSigmaPi, -1e12, 3.5, true, VarManager::kPin, 0.0, 1e+10, false);
cut->AddCut(VarManager::kTPCnSigmaKa, -3., 3., true, VarManager::kPin, 0.0, 1e+10, false);
cut->AddCut(VarManager::kTPCnSigmaPr, -3., 3., true, VarManager::kPin, 0.0, 1e+10, false);
return cut;
}

if (!nameStr.compare("lmee_commonDQEM_PID_TOF")) { // cut setting to check least common factor between reduced data sets of PWGEM and PWGDQ
cut->AddCut(VarManager::kTPCnSigmaEl, -2.5, 3., false, VarManager::kPin, 0.0, 1e+10, false);
cut->AddCut(VarManager::kTPCnSigmaPi, -3., 3.5, true, VarManager::kPin, 0.0, 1e+10, false);
cut->AddCut(VarManager::kTOFnSigmaEl, -3., 3., false, VarManager::kPin, 0.3, 1e+10, false);
return cut;
}

std::vector<TString> vecPIDcase;
vecPIDcase.emplace_back(""); // without post calibration
vecPIDcase.emplace_back("_Corr"); // case of using post calibrated PID spectra
Expand Down
2 changes: 2 additions & 0 deletions PWGDQ/Core/VarManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ void VarManager::SetDefaultVarNames()
fgVariableUnits[kTPCncls] = "";
fgVariableNames[kTPCnclsCR] = "TPC #cls crossed rows";
fgVariableUnits[kTPCnclsCR] = "";
fgVariableNames[kTPCnCRoverFindCls] = "TPC crossed rows over findable cls";
fgVariableUnits[kTPCnCRoverFindCls] = "";
fgVariableNames[kTPCchi2] = "TPC chi2";
fgVariableUnits[kTPCchi2] = "";
fgVariableNames[kTPCsignal] = "TPC dE/dx";
Expand Down
2 changes: 2 additions & 0 deletions PWGDQ/Core/VarManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ class VarManager : public TObject
kTPCncls,
kITSClusterMap,
kTPCnclsCR,
kTPCnCRoverFindCls,
kTPCchi2,
kTPCsignal,
kTPCsignalRandomized,
Expand Down Expand Up @@ -2033,6 +2034,7 @@ void VarManager::FillTrack(T const& track, float* values)
values[kTPCchi2] = track.tpcChi2NCl();
values[kTrackLength] = track.length();
values[kTPCnclsCR] = track.tpcNClsCrossedRows();
values[kTPCnCRoverFindCls] = track.tpcCrossedRowsOverFindableCls();
values[kTRDPattern] = track.trdPattern();

values[kTPCsignal] = track.tpcSignal();
Expand Down
2 changes: 1 addition & 1 deletion PWGEM/Dilepton/Tasks/MCtemplates.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ struct AnalysisTrackSelection {
} // end loop over cuts
} // end loop over MC signals
} // end loop over tracks
}
} // end runTrackSelection

template <typename TTracksMC>
void runMCGenTrack(TTracksMC const& groupedMCTracks)
Expand Down
Loading