diff --git a/Modules/FIT/FT0/include/FT0/AgingLaserPostProcTask.h b/Modules/FIT/FT0/include/FT0/AgingLaserPostProcTask.h index c2a04c9b6e..bc0960fb5a 100644 --- a/Modules/FIT/FT0/include/FT0/AgingLaserPostProcTask.h +++ b/Modules/FIT/FT0/include/FT0/AgingLaserPostProcTask.h @@ -65,6 +65,9 @@ class AgingLaserPostProcTask final : public quality_control::postprocessing::Pos double mFracWindowA = 0.25; ///< low fractional window parameter a double mFracWindowB = 0.25; ///< high fractional window parameter b + /// Amplitude cut + int mDetectorAmpCut = 0; + const int mAmplLimit = 4096; std::unique_ptr mAmpVsChNormWeightedMeanA; std::unique_ptr mAmpVsChNormWeightedMeanC; std::unique_ptr mAmpVsChNormWeightedMeanAfterLastCorrA; @@ -77,4 +80,4 @@ class AgingLaserPostProcTask final : public quality_control::postprocessing::Pos } // namespace o2::quality_control_modules::ft0 -#endif // QC_MODULE_FT0_AGINGLASERPOSTPROC_H \ No newline at end of file +#endif // QC_MODULE_FT0_AGINGLASERPOSTPROC_H diff --git a/Modules/FIT/FT0/src/AgingLaserPostProcTask.cxx b/Modules/FIT/FT0/src/AgingLaserPostProcTask.cxx index c26db51335..ae7162b7db 100644 --- a/Modules/FIT/FT0/src/AgingLaserPostProcTask.cxx +++ b/Modules/FIT/FT0/src/AgingLaserPostProcTask.cxx @@ -45,6 +45,8 @@ void AgingLaserPostProcTask::configure(const boost::property_tree::ptree& cfg) mAgingLaserPath = o2::quality_control_modules::common::getFromConfig(mCustomParameters, "agingLaserTaskPath", mAgingLaserPath); mAgingLaserPostProcPath = o2::quality_control_modules::common::getFromConfig(mCustomParameters, "agingLaserPostProcPath", mAgingLaserPostProcPath); + mDetectorAmpCut = o2::quality_control_modules::common::getFromConfig(mCustomParameters, "detectorAmpCut", mDetectorAmpCut); + mDetectorChIDs.resize(208); std::iota(mDetectorChIDs.begin(), mDetectorChIDs.end(), 0); const std::string detSkip = @@ -248,8 +250,8 @@ void AgingLaserPostProcTask::update(Trigger t, framework::ServiceRegistryRef srv auto processChannel = [&](uint8_t chId) { auto h1 = std::unique_ptr(h2AmpPerChannel->ProjectionY( Form("proj_%d", chId), chId + 1, chId + 1)); - // global maximum + h1->GetXaxis()->SetRangeUser(mDetectorAmpCut, mAmplLimit); const int binMax = h1->GetMaximumBin(); const double xMax = h1->GetBinCenter(binMax); const double winLo = TMath::Max(0., (1. - mFracWindowA) * xMax); @@ -304,4 +306,4 @@ void AgingLaserPostProcTask::finalize(Trigger, framework::ServiceRegistryRef) ILOG(Debug, Devel) << "finalize AgingLaserPostProcTask" << ENDM; } -} // namespace o2::quality_control_modules::ft0 \ No newline at end of file +} // namespace o2::quality_control_modules::ft0