Skip to content

Commit ec4928c

Browse files
authored
[PWGDQ] Add geometryloading to dileptontrack task for MC with assoc (#12658)
1 parent 1dca255 commit ec4928c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,6 +3270,10 @@ struct AnalysisDileptonTrack {
32703270
Configurable<bool> fConfigUseRemoteField{"cfgUseRemoteField", false, "Chose whether to fetch the magnetic field from ccdb or set it manually"};
32713271
Configurable<std::string> fConfigGRPmagPath{"cfgGrpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
32723272
Configurable<float> fConfigMagField{"cfgMagField", 5.0f, "Manually set magnetic field"};
3273+
Configurable<std::string> fConfigCcdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
3274+
Configurable<std::string> grpmagPath{"grpmagPath", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object"};
3275+
Configurable<int64_t> fConfigNoLaterThan{"ccdb-no-later-than", std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count(), "latest acceptable timestamp of creation for the object"};
3276+
Configurable<std::string> fConfigGeoPath{"geoPath", "GLO/Config/GeometryAligned", "Path of the geometry file"};
32733277

32743278
Configurable<std::string> fConfigMCRecSignals{"cfgMCRecSignals", "", "Comma separated list of MC signals (reconstructed)"};
32753279
Configurable<std::string> fConfigMCGenSignals{"cfgMCGenSignals", "", "Comma separated list of MC signals (generated)"};
@@ -3333,6 +3337,15 @@ struct AnalysisDileptonTrack {
33333337
}
33343338

33353339
fCurrentRun = 0;
3340+
3341+
fCCDB->setURL(fConfigCcdbUrl.value);
3342+
fCCDB->setCaching(true);
3343+
fCCDB->setLocalObjectValidityChecking();
3344+
fCCDB->setCreatedNotAfter(fConfigNoLaterThan.value);
3345+
if (!o2::base::GeometryManager::isGeometryLoaded()) {
3346+
fCCDB->get<TGeoManager>(fConfigGeoPath);
3347+
}
3348+
33363349
fValuesDilepton = new float[VarManager::kNVars];
33373350
fValuesHadron = new float[VarManager::kNVars];
33383351
fTrackCutBitMap = 0;

0 commit comments

Comments
 (0)