Skip to content

Commit 8336967

Browse files
authored
[PWGDQ] Add geometry loading to dilepton-track task (#12355)
1 parent af81c8d commit 8336967

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

PWGDQ/Tasks/dqEfficiency.cxx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,9 +1040,18 @@ struct AnalysisSameEventPairing {
10401040
struct AnalysisDileptonTrack {
10411041
Produces<aod::DileptonTrackCandidates> dileptontrackcandidatesList;
10421042
OutputObj<THashList> fOutputList{"output"};
1043+
Service<o2::ccdb::BasicCCDBManager> ccdb;
1044+
o2::base::MatLayerCylSet* lut = nullptr;
1045+
10431046
// TODO: For now this is only used to determine the position in the filter bit map for the hadron cut
10441047
Configurable<string> fConfigTrackCuts{"cfgLeptonCuts", "", "Comma separated list of barrel track cuts"};
10451048
Configurable<bool> fConfigFillCandidateTable{"cfgFillCandidateTable", false, "Produce a single flat tables with all relevant information dilepton-track candidates"};
1049+
Configurable<std::string> ccdburl{"ccdburl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
1050+
Configurable<bool> fCorrFullGeo{"cfgCorrFullGeo", false, "Use full geometry to correct for MCS effects in track propagation"};
1051+
Configurable<bool> fNoCorr{"cfgNoCorrFwdProp", false, "Do not correct for MCS effects in track propagation"};
1052+
Configurable<std::string> lutPath{"lutPath", "GLO/Param/MatLUT", "Path of the Lut parametrization"};
1053+
Configurable<std::string> geoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
1054+
10461055
Filter eventFilter = aod::dqanalysisflags::isEventSelected == 1;
10471056
// Filter dileptonFilter = aod::reducedpair::mass > 2.92f && aod::reducedpair::mass < 3.16f && aod::reducedpair::sign == 0;
10481057
// Filter dileptonFilter = aod::reducedpair::mass > 2.6f && aod::reducedpair::mass < 3.5f && aod::reducedpair::sign == 0;
@@ -1075,6 +1084,21 @@ struct AnalysisDileptonTrack {
10751084
return;
10761085
}
10771086

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

0 commit comments

Comments
 (0)