From bfb432bdb981e3a95e40a1d43fbcf0377989d292 Mon Sep 17 00:00:00 2001 From: Pascal Raisig <praisig@ikf.uni-frankfurt.de> Date: Wed, 14 Jul 2021 21:03:34 +0200 Subject: [PATCH] Add static GetBranchName function to digis Since, we do not use the class name in our output branches I added a GetBranchName() function for all digis connected to the mcbm2021 beamtime. @todo add the function to other digis (much,mvd). --- core/data/psd/CbmPsdDigi.h | 6 ++++++ core/data/rich/CbmRichDigi.h | 5 +++++ core/data/sts/CbmStsDigi.h | 6 ++++++ core/data/tof/CbmTofDigi.h | 6 ++++++ 4 files changed, 23 insertions(+) diff --git a/core/data/psd/CbmPsdDigi.h b/core/data/psd/CbmPsdDigi.h index 935b274d3a..629e0f7e96 100644 --- a/core/data/psd/CbmPsdDigi.h +++ b/core/data/psd/CbmPsdDigi.h @@ -91,6 +91,12 @@ public: UInt_t GetAddress() const { return fuAddress; }; + /** @brief Get the desired name of the branch for this obj in the cbm output tree (static) + ** @return "PsdDigi" + **/ + static const char* GetBranchName() { return "PsdDigi"; } + + /** @brief Time ** @return Time [ns] **/ diff --git a/core/data/rich/CbmRichDigi.h b/core/data/rich/CbmRichDigi.h index 4b6ac8e6eb..ea4af41355 100644 --- a/core/data/rich/CbmRichDigi.h +++ b/core/data/rich/CbmRichDigi.h @@ -40,6 +40,11 @@ public: */ Int_t GetAddress() const { return fAddress; } + /** @brief Get the desired name of the branch for this obj in the cbm output tree (static) + ** @return "RichDigi" + **/ + static const char* GetBranchName() { return "RichDigi"; } + /** @brief Charge ** @return Returns TOT as charge ** diff --git a/core/data/sts/CbmStsDigi.h b/core/data/sts/CbmStsDigi.h index c78e56c787..43d6be7375 100644 --- a/core/data/sts/CbmStsDigi.h +++ b/core/data/sts/CbmStsDigi.h @@ -62,6 +62,12 @@ public: Int_t GetAddress() const { return fAddress; } + /** @brief Get the desired name of the branch for this obj in the cbm output tree (static) + ** @return "StsDigi" + **/ + static const char* GetBranchName() { return "StsDigi"; } + + /** @brief Channel number in module ** @value Channel number **/ diff --git a/core/data/tof/CbmTofDigi.h b/core/data/tof/CbmTofDigi.h index 9546b838df..7e19338110 100644 --- a/core/data/tof/CbmTofDigi.h +++ b/core/data/tof/CbmTofDigi.h @@ -96,6 +96,12 @@ public: Int_t GetAddress() const { return fuAddress; }; + /** @brief Get the desired name of the branch for this obj in the cbm output tree (static) + ** @return "TofDigi" + **/ + static const char* GetBranchName() { return "TofDigi"; } + + /** @brief Class name (static) ** @return string CbmTofDigi **/ -- GitLab