Skip to content

Commit 2857267

Browse files
authored
Add geometryloading to dileptontrack task
1 parent b0c092c commit 2857267

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

PWGDQ/Tasks/dqEfficiency.cxx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,12 @@ struct AnalysisDileptonTrack {
10431043
// TODO: For now this is only used to determine the position in the filter bit map for the hadron cut
10441044
Configurable<string> fConfigTrackCuts{"cfgLeptonCuts", "", "Comma separated list of barrel track cuts"};
10451045
Configurable<bool> fConfigFillCandidateTable{"cfgFillCandidateTable", false, "Produce a single flat tables with all relevant information dilepton-track candidates"};
1046+
Configurable<std::string> ccdburl{"ccdburl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
1047+
Configurable<bool> fCorrFullGeo{"cfgCorrFullGeo", false, "Use full geometry to correct for MCS effects in track propagation"};
1048+
Configurable<bool> fNoCorr{"cfgNoCorrFwdProp", false, "Do not correct for MCS effects in track propagation"};
1049+
Configurable<std::string> lutPath{"lutPath", "GLO/Param/MatLUT", "Path of the Lut parametrization"};
1050+
Configurable<std::string> geoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
1051+
10461052
Filter eventFilter = aod::dqanalysisflags::isEventSelected == 1;
10471053
// Filter dileptonFilter = aod::reducedpair::mass > 2.92f && aod::reducedpair::mass < 3.16f && aod::reducedpair::sign == 0;
10481054
// Filter dileptonFilter = aod::reducedpair::mass > 2.6f && aod::reducedpair::mass < 3.5f && aod::reducedpair::sign == 0;
@@ -1075,6 +1081,21 @@ struct AnalysisDileptonTrack {
10751081
return;
10761082
}
10771083

1084+
ccdb->setURL(ccdburl.value);
1085+
ccdb->setCaching(true);
1086+
ccdb->setLocalObjectValidityChecking();
1087+
1088+
if (fNoCorr) {
1089+
VarManager::SetupFwdDCAFitterNoCorr();
1090+
} else if (fCorrFullGeo) {
1091+
if (!o2::base::GeometryManager::isGeometryLoaded()) {
1092+
ccdb->get<TGeoManager>(geoPath);
1093+
}
1094+
} else {
1095+
lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(ccdb->get<o2::base::MatLayerCylSet>(lutPath));
1096+
VarManager::SetupMatLUTFwdDCAFitter(lut);
1097+
}
1098+
10781099
TString sigNamesStr = fConfigMCRecSignals.value;
10791100
std::unique_ptr<TObjArray> objRecSigArray(sigNamesStr.Tokenize(","));
10801101
TString histNames;

0 commit comments

Comments
 (0)