From 18b04a0f44af883beaff0eff9b707d00e78f0169 Mon Sep 17 00:00:00 2001 From: Alexandru Bercuci <abercuci@niham.nipne.ro> Date: Thu, 7 Mar 2024 21:47:35 +0200 Subject: [PATCH] init reco QA task to monitor reconstruction using tracks. First application mCBM 2022 to be used in mCBM 2024 --- reco/qa/CMakeLists.txt | 2 ++ reco/qa/CbmRecoQaTask.cxx | 49 +++++++++++++++++++++++++++++++++++++++ reco/qa/CbmRecoQaTask.h | 34 +++++++++++++++++++++++++++ reco/qa/RecoQaLinkDef.h | 1 + 4 files changed, 86 insertions(+) create mode 100644 reco/qa/CbmRecoQaTask.cxx create mode 100644 reco/qa/CbmRecoQaTask.h diff --git a/reco/qa/CMakeLists.txt b/reco/qa/CMakeLists.txt index 6ccd5a7e2f..136abb0076 100644 --- a/reco/qa/CMakeLists.txt +++ b/reco/qa/CMakeLists.txt @@ -4,6 +4,7 @@ set(INCLUDE_DIRECTORIES set(SRCS + CbmRecoQaTask.cxx CbmRecoQa.cxx CbmTrackingTrdQa.cxx ) @@ -25,6 +26,7 @@ set(PRIVATE_DEPENDENCIES CbmQaBase ROOT::EG ROOT::Geom + KF ) generate_cbm_library() diff --git a/reco/qa/CbmRecoQaTask.cxx b/reco/qa/CbmRecoQaTask.cxx new file mode 100644 index 0000000000..1335f757ad --- /dev/null +++ b/reco/qa/CbmRecoQaTask.cxx @@ -0,0 +1,49 @@ +/* Copyright (C) 2024 Hulubei National Institute of Physics and Nuclear Engineering - Horia Hulubei, Bucharest + SPDX-License-Identifier: GPL-3.0-only + Authors: Alexandru Bercuci [committer] */ + +#include "CbmRecoQaTask.h" + +#include "FairRootManager.h" + +//_____________________________________________________________________ +CbmRecoQaTask::CbmRecoQaTask() : FairTask("RecoQA", 0) +{ +} + + +//_____________________________________________________________________ +CbmRecoQaTask::~CbmRecoQaTask() +{} + +//_____________________________________________________________________ +InitStatus CbmRecoQaTask::Init() +{ + fFitter.Init(); + fFitter.SetSkipUnmeasuredCoordinates(true); + + //Get ROOT Manager + FairRootManager* ioman = FairRootManager::Instance(); + + if (!ioman) { + LOG(error) << "CbmRecoQaTask::Init :: RootManager not instantiated!"; + return kERROR; + } + + return kSUCCESS; +} + +//_____________________________________________________________________ +void CbmRecoQaTask::Exec(Option_t*) +{ +} + +//_____________________________________________________________________ +void CbmRecoQaTask::FinishEvent() +{ +} + +//_____________________________________________________________________ +void CbmRecoQaTask::FinishTask() +{ +} diff --git a/reco/qa/CbmRecoQaTask.h b/reco/qa/CbmRecoQaTask.h new file mode 100644 index 0000000000..450f8df9bc --- /dev/null +++ b/reco/qa/CbmRecoQaTask.h @@ -0,0 +1,34 @@ +/* Copyright (C) 2024 Hulubei National Institute of Physics and Nuclear Engineering - Horia Hulubei, Bucharest + SPDX-License-Identifier: GPL-3.0-only + Authors: Alexandru Bercuci [committer] */ + +#ifndef CBMRECOQATASK_H +#define CBMRECOQATASK_H 1 + +#include "FairTask.h" + +#include "CbmKfTrackFitter.h" + + +class CbmRecoQaTask : public FairTask { +public: + CbmRecoQaTask(); + ~CbmRecoQaTask(); + + virtual InitStatus Init(); + /** \brief Executed task **/ + virtual void Exec(Option_t* option); + + virtual void FinishEvent(); + virtual void FinishTask(); + +private: + CbmRecoQaTask(const CbmRecoQaTask&); + CbmRecoQaTask& operator=(const CbmRecoQaTask&); + + CbmKfTrackFitter fFitter; + + ClassDef(CbmRecoQaTask, 1); +}; + +#endif // CBMRECOQATASK_H diff --git a/reco/qa/RecoQaLinkDef.h b/reco/qa/RecoQaLinkDef.h index 9568f48aca..12944fe046 100644 --- a/reco/qa/RecoQaLinkDef.h +++ b/reco/qa/RecoQaLinkDef.h @@ -10,6 +10,7 @@ #pragma link off all functions; +#pragma link C++ class CbmRecoQaTask + ; #pragma link C++ class CbmRecoQa + ; #pragma link C++ class CbmTrackingTrdQa + ; -- GitLab