Skip to content
Open
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
4 changes: 3 additions & 1 deletion DataFormats/Detectors/FIT/FDD/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Original file line number Diff line number Diff line change
@@ -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<FDDRecoConfig> {
double AmplitudeCutOnCollisionTimeWeights = 3;
O2ParamDef(FDDRecoConfig, "FDDRecoConfig");
};
} // namespace o2::fdd
#endif
2 changes: 2 additions & 0 deletions DataFormats/Detectors/FIT/FDD/src/DataFormatsFDDLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions DataFormats/Detectors/FIT/FDD/src/FDDRecoConfig.cxx
Original file line number Diff line number Diff line change
@@ -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 <DataFormatsFDD/FDDRecoConfig.h>

using namespace o2::fdd;
O2ParamImpl(FDDRecoConfig);
3 changes: 2 additions & 1 deletion Detectors/FIT/FDD/reconstruction/src/Reconstructor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "FDDBase/Constants.h"
#include <DataFormatsFDD/ChannelData.h>
#include <DataFormatsFDD/Digit.h>
#include <DataFormatsFDD/FDDRecoConfig.h>
#include <fairlogger/Logger.h>

using namespace o2::fdd;
Expand Down Expand Up @@ -53,7 +54,7 @@ void Reconstructor::process(o2::fdd::Digit const& digitBC, gsl::span<const o2::f
continue;
}
Float_t timeErr = 1;
if (adc > 3) {
if (adc > FDDRecoConfig::Instance().AmplitudeCutOnCollisionTimeWeights) {
timeErr = 1. / adc;
}
if ((int)inChData[ich].mPMNumber < 8) {
Expand Down