Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code to refit tracks with different correction maps e.g. #12865

Merged
merged 1 commit into from
Mar 17, 2024
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
11 changes: 11 additions & 0 deletions Detectors/TPC/workflow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ o2_add_library(TPCWorkflowGUI
O2::TPCMonitor
)

o2_add_library(TPCWorkflowStudies
SOURCES src/TPCRefitter.cxx
TARGETVARNAME targetName
PUBLIC_LINK_LIBRARIES O2::TPCWorkflow
O2::GlobalTrackingWorkflow
)

o2_add_executable(chunkeddigit-merger
COMPONENT_NAME tpc
TARGETVARNAME mergertargetName
Expand Down Expand Up @@ -281,5 +288,9 @@ o2_add_executable(calibration-workflow
O2::DetectorsCalibrationWorkflow
O2::DataFormatsCalibration
O2::CCDB)
o2_add_executable(refitter
SOURCES src/tpc-refitter-workflow.cxx
COMPONENT_NAME tpc
PUBLIC_LINK_LIBRARIES O2::TPCWorkflowStudies)

add_subdirectory(readers)
34 changes: 34 additions & 0 deletions Detectors/TPC/workflow/include/TPCWorkflow/TPCRefitter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// 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 O2_TPC_DATA_FILTER_H
#define O2_TPC_DATA_FILTER_H

#include "ReconstructionDataFormats/GlobalTrackID.h"
#include "Framework/Task.h"
#include "Framework/DataProcessorSpec.h"
#include "ReconstructionDataFormats/Track.h"
#include "MathUtils/detail/Bracket.h"
#include "DataFormatsTPC/ClusterNative.h"

namespace o2::tpc
{
struct CorrectionMapsLoaderGloOpts;
}

namespace o2::trackstudy
{
/// create a processor spec
o2::framework::DataProcessorSpec getTPCRefitterSpec(o2::dataformats::GlobalTrackID::mask_t srcTracks, o2::dataformats::GlobalTrackID::mask_t srcClus, bool useMC, const o2::tpc::CorrectionMapsLoaderGloOpts& sclOpts);

} // namespace o2::trackstudy

#endif
Loading
Loading