You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bff64be
Browse filesBrowse the repository at this point in the historyBrowse files
TPC digitizer: log the gain map applied with TPCuseGainMapMC
TPCDigitizerConditions reads --TPCuseGainMapMC and logs the gain map from the
CCDB applied in the digitizer. A warning is given if the option has no effect
(no --TPCuseCCDB, or a GainMap.root file).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
{"TPCuseCCDB", VariantType::Bool, false, {"true: load calibrations from CCDB; false: use random calibratoins"}},
137
-
{"TPCuseGainMapMC", VariantType::Bool, false, {"true: apply the gain map for MC (TPC/Calib/PadGainFullMC); false: apply the gain map of the reconstruction (TPC/Calib/PadGainFull)"}},
137
+
{"TPCuseGainMapMC", VariantType::Bool, false, {"with TPCuseCCDB, true: apply the gain map for MC (TPC/Calib/PadGainFullMC); false: apply TPC/Calib/PadGainFull. A GainMap.root file replaces both"}},
138
138
{"meanLumiDistortions", VariantType::Float, -1.f, {"override lumi of distortion object if >=0"}},
139
139
{"meanLumiDistortionsDerivative", VariantType::Float, -1.f, {"override lumi of derivative distortion object if >=0"}},
140
140
{"do-not-recalculate-distortions", VariantType::Bool, false, {"Do not recalculate the distortions"}},
@@ -165,9 +165,18 @@ void TPCDigitizerConditions::init(framework::InitContext& ic, int distortionType
LOG(info) << "TPC calibrations from CCDB: " << mUseCalibrationsFromCCDB;
172
+
173
+
if (!mUseCalibrationsFromCCDB) {
174
+
if (mUseGainMapMC) {
175
+
LOGP(warning, "TPC: TPCuseGainMapMC has no effect without TPCuseCCDB, the digitizer applies the default gain map");
176
+
}
177
+
} else {
178
+
LOGP(info, "TPC: gain map from the CCDB applied in the digitizer: {}", CDBTypeMap.at(mUseGainMapMC ? CDBType::CalPadGainFullMC : CDBType::CalPadGainFull));
0 commit comments