diff --git a/DataFormats/Detectors/FIT/FDD/CMakeLists.txt b/DataFormats/Detectors/FIT/FDD/CMakeLists.txt index 140ba1165bff8..d05982780eadf 100644 --- a/DataFormats/Detectors/FIT/FDD/CMakeLists.txt +++ b/DataFormats/Detectors/FIT/FDD/CMakeLists.txt @@ -14,6 +14,7 @@ o2_add_library(DataFormatsFDD src/RecPoint.cxx src/CTF.cxx src/LookUpTable.cxx + src/FDDRecoConfig.cxx PUBLIC_LINK_LIBRARIES O2::FDDBase O2::DataFormatsFIT O2::SimulationDataFormat @@ -29,5 +30,6 @@ o2_target_root_dictionary(DataFormatsFDD include/DataFormatsFDD/RecPoint.h include/DataFormatsFDD/RawEventData.h include/DataFormatsFDD/LookUpTable.h - include/DataFormatsFDD/CTF.h) + include/DataFormatsFDD/CTF.h + include/DataFormatsFDD/FDDRecoConfig.h) diff --git a/DataFormats/Detectors/FIT/FDD/include/DataFormatsFDD/FDDRecoConfig.h b/DataFormats/Detectors/FIT/FDD/include/DataFormatsFDD/FDDRecoConfig.h new file mode 100644 index 0000000000000..fc7a6416a31df --- /dev/null +++ b/DataFormats/Detectors/FIT/FDD/include/DataFormatsFDD/FDDRecoConfig.h @@ -0,0 +1,24 @@ +// Copyright 2019-2020 CERN and copyright holders of ALICE O2. +// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. +// All rights not expressly granted are reserved. +// +// This software is distributed under the terms of the GNU General Public +// License v3 (GPL Version 3), copied verbatim in the file "COPYING". +// +// In applying this license CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +#ifndef ALICEO2_FDD_DIGIT_FILTER_PARAM +#define ALICEO2_FDD_DIGIT_FILTER_PARAM + +#include "CommonUtils/ConfigurableParamHelper.h" + +namespace o2::fdd +{ +struct FDDRecoConfig : o2::conf::ConfigurableParamHelper { + double AmplitudeCutOnCollisionTimeWeights = 3; + O2ParamDef(FDDRecoConfig, "FDDRecoConfig"); +}; +} // namespace o2::fdd +#endif \ No newline at end of file diff --git a/DataFormats/Detectors/FIT/FDD/src/DataFormatsFDDLinkDef.h b/DataFormats/Detectors/FIT/FDD/src/DataFormatsFDDLinkDef.h index daf1fb4027dc9..9d6174cfdb48e 100644 --- a/DataFormats/Detectors/FIT/FDD/src/DataFormatsFDDLinkDef.h +++ b/DataFormats/Detectors/FIT/FDD/src/DataFormatsFDDLinkDef.h @@ -37,4 +37,6 @@ #pragma link C++ class o2::fdd::CTF + ; #pragma link C++ class o2::ctf::EncodedBlocks < o2::fdd::CTFHeader, 8, uint32_t> + ; +#pragma link C++ struct o2::fdd::FDDRecoConfig + ; +#pragma link C++ class o2::conf::ConfigurableParamHelper < o2::fdd::FDDRecoConfig> + ; #endif diff --git a/DataFormats/Detectors/FIT/FDD/src/FDDRecoConfig.cxx b/DataFormats/Detectors/FIT/FDD/src/FDDRecoConfig.cxx new file mode 100644 index 0000000000000..4b017368416b6 --- /dev/null +++ b/DataFormats/Detectors/FIT/FDD/src/FDDRecoConfig.cxx @@ -0,0 +1,15 @@ +// Copyright 2019-2020 CERN and copyright holders of ALICE O2. +// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. +// All rights not expressly granted are reserved. +// +// This software is distributed under the terms of the GNU General Public +// License v3 (GPL Version 3), copied verbatim in the file "COPYING". +// +// In applying this license CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +#include + +using namespace o2::fdd; +O2ParamImpl(FDDRecoConfig); \ No newline at end of file diff --git a/Detectors/FIT/FDD/reconstruction/src/Reconstructor.cxx b/Detectors/FIT/FDD/reconstruction/src/Reconstructor.cxx index 7d133e30df08e..10d27ca1a5da0 100644 --- a/Detectors/FIT/FDD/reconstruction/src/Reconstructor.cxx +++ b/Detectors/FIT/FDD/reconstruction/src/Reconstructor.cxx @@ -17,6 +17,7 @@ #include "FDDBase/Constants.h" #include #include +#include #include using namespace o2::fdd; @@ -53,7 +54,7 @@ void Reconstructor::process(o2::fdd::Digit const& digitBC, gsl::span 3) { + if (adc > FDDRecoConfig::Instance().AmplitudeCutOnCollisionTimeWeights) { timeErr = 1. / adc; } if ((int)inChData[ich].mPMNumber < 8) {