Skip to content
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
6 changes: 6 additions & 0 deletions PWGDQ/Tasks/global-muon-matcher.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ struct GlobalMuonMatching {
Configurable<float> cfgMFTAlignmentCorrYOffsetBottom{"cfgMFTAlignmentCorrYOffsetBottom", 0.f, "MFT Y offset correction - bottom half"};
} configMftAlignmentCorrections;

// Magnetic field position bias
Configurable<float> cfgFieldOriginBiasZ{"cfgFieldOriginBiasZ", 0.0f, "Bias applied to the magnetic field z position"};

// Variables for CCDB objects access and retrieval
struct : ConfigurableGroup {
Configurable<std::string> cfgCcdbUrl{"cfgCcdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
Expand Down Expand Up @@ -755,6 +758,9 @@ struct GlobalMuonMatching {
fCCDBApi.init(configCcdb.cfgCcdbUrl);
mRunNumber = 0;

// configure magnetic field position bias
o2::conf::ConfigurableParam::setValue("FieldOriginBias.z", std::to_string(cfgFieldOriginBiasZ.value));

// Configuration for track fitter
const auto& trackerParam = mch::TrackerParam::Instance();
trackFitter.setBendingVertexDispersion(trackerParam.bendingVertexDispersion);
Expand Down
11 changes: 7 additions & 4 deletions PWGDQ/Tasks/muonGlobalAlignment.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ struct muonGlobalAlignment {

Configurable<uint32_t> fMftTracksMultiplicityMax{"cfgMftTracksMultiplicityMax", 0, "Maximum number of MFT tracks to be processed per event (zero means no limit)"};

// Magnetic field position bias
Configurable<float> cfgFieldOriginBiasZ{"cfgFieldOriginBiasZ", 0.0f, "Bias applied to the magnetic field z position"};
Configurable<float> fVertexZshift{"cfgVertexZshift", 0.0f, "Correction to the vertex z position"};
Configurable<float> fDipoleZshift{"cfgDipoleZshift", 0.0f, "Correction to the dipole z position"};

Expand Down Expand Up @@ -418,10 +420,8 @@ struct muonGlobalAlignment {
ccdbApi.init(configCCDB.ccdburl);
mRunNumber = 0;

if (!o2::base::GeometryManager::isGeometryLoaded()) {
LOGF(info, "Load geometry from CCDB");
ccdbManager->get<TGeoManager>(configCCDB.geoPath);
}
// configure magnetic field position bias
o2::conf::ConfigurableParam::setValue("FieldOriginBias.z", std::to_string(cfgFieldOriginBiasZ.value));

// Configuration for track fitter
const auto& trackerParam = TrackerParam::Instance();
Expand All @@ -431,6 +431,9 @@ struct muonGlobalAlignment {
trackFitter.useChamberResolution();
mImproveCutChi2 = 2. * configRealign.fSigmaCutImprove * configRealign.fSigmaCutImprove;

// use the Runge-Kutta extrapolation v2
TrackExtrap::useExtrapV2();

// Fill table of MCH alignment corrections
rapidjson::Document document;
// Check that the json is parsed correctly
Expand Down
Loading