Skip to content
Merged
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
5 changes: 4 additions & 1 deletion Modules/FIT/FT0/include/FT0/AgingLaserPostProcTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<TH1F> mAmpVsChNormWeightedMeanA;
std::unique_ptr<TH1F> mAmpVsChNormWeightedMeanC;
std::unique_ptr<TH1F> mAmpVsChNormWeightedMeanAfterLastCorrA;
Expand All @@ -77,4 +80,4 @@ class AgingLaserPostProcTask final : public quality_control::postprocessing::Pos

} // namespace o2::quality_control_modules::ft0

#endif // QC_MODULE_FT0_AGINGLASERPOSTPROC_H
#endif // QC_MODULE_FT0_AGINGLASERPOSTPROC_H
6 changes: 4 additions & 2 deletions Modules/FIT/FT0/src/AgingLaserPostProcTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ void AgingLaserPostProcTask::configure(const boost::property_tree::ptree& cfg)
mAgingLaserPath = o2::quality_control_modules::common::getFromConfig<std::string>(mCustomParameters, "agingLaserTaskPath", mAgingLaserPath);
mAgingLaserPostProcPath = o2::quality_control_modules::common::getFromConfig<std::string>(mCustomParameters, "agingLaserPostProcPath", mAgingLaserPostProcPath);

mDetectorAmpCut = o2::quality_control_modules::common::getFromConfig<double>(mCustomParameters, "detectorAmpCut", mDetectorAmpCut);

mDetectorChIDs.resize(208);
std::iota(mDetectorChIDs.begin(), mDetectorChIDs.end(), 0);
const std::string detSkip =
Expand Down Expand Up @@ -248,8 +250,8 @@ void AgingLaserPostProcTask::update(Trigger t, framework::ServiceRegistryRef srv
auto processChannel = [&](uint8_t chId) {
auto h1 = std::unique_ptr<TH1>(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);
Expand Down Expand Up @@ -304,4 +306,4 @@ void AgingLaserPostProcTask::finalize(Trigger, framework::ServiceRegistryRef)
ILOG(Debug, Devel) << "finalize AgingLaserPostProcTask" << ENDM;
}

} // namespace o2::quality_control_modules::ft0
} // namespace o2::quality_control_modules::ft0
Loading