@@ -41,7 +41,7 @@ class CalibLaserTracksDevice : public o2::framework::Task
4141 mCalib .setWriteDebugTree (ic.options ().get <bool >(" write-debug" ));
4242 mMinNumberTFs = ic.options ().get <int >(" min-tfs" );
4343 mOnlyPublishOnEOS = ic.options ().get <bool >(" only-publish-on-eos" );
44-
44+ mNormalize = !ic. options (). get < bool >( " ignore-normalization " );
4545 auto finishFunction = [this ]() {
4646 if (!mPublished ) {
4747 const auto nTFs = mCalib .getCalibData ().processedTFs ;
@@ -87,6 +87,7 @@ class CalibLaserTracksDevice : public o2::framework::Task
8787 int mMinNumberTFs {100 }; // /< minimum number of TFs required for good calibration
8888 bool mPublished {false }; // /< if calibration was already published
8989 bool mOnlyPublishOnEOS {false }; // /< if to only publish the calibration on EOS, not during running
90+ bool mNormalize {true }; // /< normalize reference to have mean correction = 1
9091
9192 // ________________________________________________________________
9293 void sendOutput (DataAllocator& output)
@@ -97,7 +98,12 @@ class CalibLaserTracksDevice : public o2::framework::Task
9798 std::map<std::string, std::string> md;
9899
99100 using clbUtils = o2::calibration::Utils;
100- const auto & ltrCalib = mCalib .getCalibData ();
101+ auto ltrCalib = mCalib .getCalibData ();
102+
103+ if (mNormalize ) {
104+ ltrCalib.normalize (0 .);
105+ LOGP (info, " After normalization: correction factors: {} / {} for A- / C-Side, reference: {}" , ltrCalib.dvCorrectionA , ltrCalib.dvCorrectionC , ltrCalib.refVDrift );
106+ }
101107
102108 o2::ccdb::CcdbObjectInfo w;
103109 auto image = o2::ccdb::CcdbApi::createObjectImage (<rCalib, &w);
@@ -141,6 +147,7 @@ DataProcessorSpec getCalibLaserTracks(const std::string inputSpec)
141147 {" write-debug" , VariantType::Bool, false , {" write a debug output tree." }},
142148 {" min-tfs" , VariantType::Int, 100 , {" minimum number of TFs with enough laser tracks to finalize the calibration." }},
143149 {" only-publish-on-eos" , VariantType::Bool, false , {" only publish the calibration on eos, not during running" }},
150+ {" ignore-normalization" , VariantType::Bool, false , {" ignore normalization of reference to have mean correction factor 1" }},
144151 }};
145152}
146153
0 commit comments