CbmRoot
Loading...
Searching...
No Matches
CbmTrdParMod.h
Go to the documentation of this file.
1/* Copyright (C) 2018-2024 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer], Alexandru Bercuci */
4
5#ifndef CBMTRDPARMOD_H
6#define CBMTRDPARMOD_H
7
8#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
9#include <TNamed.h> // for TNamed
10
12class CbmTrdParMod : public TNamed {
13public:
14 CbmTrdParMod(const char* name = "CbmTrdParMod", const char* title = "TRD generic module definition");
15 virtual ~CbmTrdParMod();
16
17 virtual uint16_t GetConfig() const { return fConfig; }
18 virtual int GetModuleId() const { return fModuleId; }
19 virtual uint8_t GetVersion() const { return fVersion; }
20
21 virtual void SetConfigId(uint16_t c) { fConfig = c; }
22 virtual void SetModuleId(int m) { fModuleId = m; }
23 virtual void SetVersion(uint8_t v) { fVersion = v; }
24
25 protected:
26 uint8_t fVersion = 0;
27 uint16_t fConfig = 0;
28 int fModuleId = 0;
29 private:
30 ClassDef(CbmTrdParMod,
31 2) // Definition of generic parameters for one TRD module
32};
33
34#endif
fscal v[fmask::Size]
Definition KfSimdPseudo.h:4
Definition of generic parameters for one TRD module.
CbmTrdParMod(const char *name="CbmTrdParMod", const char *title="TRD generic module definition")
virtual uint8_t GetVersion() const
virtual int GetModuleId() const
virtual void SetVersion(uint8_t v)
virtual uint16_t GetConfig() const
uint8_t fVersion
version of the parameter
int fModuleId
module id
uint16_t fConfig
configuration setup of the module
virtual void SetConfigId(uint16_t c)
virtual void SetModuleId(int m)
virtual ~CbmTrdParMod()