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
9 changes: 9 additions & 0 deletions Detectors/GlobalTrackingWorkflow/study/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ o2_add_library(GlobalTrackingStudy
src/TrackMCStudyConfig.cxx
src/TrackMCStudyTypes.cxx
src/TPCClusSelector.cxx
src/CheckResid.cxx
src/CheckResidConfig.cxx
PUBLIC_LINK_LIBRARIES O2::GlobalTracking
O2::GlobalTrackingWorkflowReaders
O2::GlobalTrackingWorkflowHelpers
Expand All @@ -38,6 +40,8 @@ o2_target_root_dictionary(GlobalTrackingStudy
include/GlobalTrackingStudy/TrackInfoExt.h
include/GlobalTrackingStudy/TrackMCStudyConfig.h
include/GlobalTrackingStudy/TrackMCStudyTypes.h
include/GlobalTrackingStudy/CheckResidTypes.h
include/GlobalTrackingStudy/CheckResidConfig.h
LINKDEF src/GlobalTrackingStudyLinkDef.h
)

Expand Down Expand Up @@ -76,6 +80,11 @@ o2_add_executable(dump-workfow
SOURCES src/track-dump-workflow.cxx
PUBLIC_LINK_LIBRARIES O2::GlobalTrackingStudy)

o2_add_executable(resid-workfow
COMPONENT_NAME check
SOURCES src/check-resid-workflow.cxx
PUBLIC_LINK_LIBRARIES O2::GlobalTrackingStudy)

if (OpenMP_CXX_FOUND)
target_compile_definitions(${targetName} PRIVATE WITH_OPENMP)
target_link_libraries(${targetName} PRIVATE OpenMP::OpenMP_CXX)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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_CHECK_RESID_H
#define O2_CHECK_RESID_H

#include "ReconstructionDataFormats/GlobalTrackID.h"
#include "Framework/Task.h"
#include "Framework/DataProcessorSpec.h"
// #include "TPCCalibration/CorrectionMapsLoader.h"

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

} // namespace o2::checkresid

#endif // O2_CHECK_RESID_H
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// 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_CHECK_RESID_CONFIG_H
#define O2_CHECK_RESID_CONFIG_H
#include "CommonUtils/ConfigurableParam.h"
#include "CommonUtils/ConfigurableParamHelper.h"

namespace o2::checkresid
{
struct CheckResidConfig : o2::conf::ConfigurableParamHelper<CheckResidConfig> {
int minPVContributors = 10;
int minTPCCl = 60;
int minITSCl = 7;
float minPt = 0.4f;
float maxPt = 100.f;
float rCompIBOB = 12.f;

bool pvcontribOnly = true;
bool addPVAsCluster = true;
bool refitPV = true;
bool useStableRef = true;
bool doIBOB = true;
bool doResid = true;

O2ParamDef(CheckResidConfig, "checkresid");
};
} // namespace o2::checkresid

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// 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_CHECK_RESID_TYPES_H
#define O2_CHECK_RESID_TYPES_H

#include "ReconstructionDataFormats/Track.h"

namespace o2::checkresid
{
struct Point {
float dy = 0.f;
float dz = 0.f;
float sig2y = 0.f;
float sig2z = 0.f;
float phi = 0.f;
float z = 0.f;
int16_t sens = -1;
int8_t lr = -1; // -1 = vtx
ClassDefNV(Point, 1)
};

struct Track {
o2::dataformats::GlobalTrackID gid{};
o2::track::TrackPar track;
o2::track::TrackParCov trIBOut;
o2::track::TrackParCov trOBInw;
std::vector<Point> points;
ClassDefNV(Track, 1)
};

} // namespace o2::checkresid

#endif
Loading