CbmRoot
Loading...
Searching...
No Matches
CbmTrdModuleAbstract.cxx
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
6
7#include "CbmTrdParAsic.h"
8
9#include <Logger.h>
10
11//_______________________________________________________________________________
13
14//_______________________________________________________________________________
15CbmTrdModuleAbstract::CbmTrdModuleAbstract(Int_t mod, Int_t ly, Int_t rot)
16 : TNamed("CbmTrdModule", "Abstract TRD module implementation")
17{
18 fModAddress = mod;
19 fLayerId = ly;
20 fRotation = rot;
21}
22
23//_______________________________________________________________________________
28
29//_______________________________________________________________________________
31{
32 if (!fAsicPar) return false;
33 const CbmTrdParAsic* p = fAsicPar->GetAsicPar(ch);
34 if (!p) return false;
35 return p->IsChannelMasked(ch);
36}
37
38//_______________________________________________________________________________
39void CbmTrdModuleAbstract::LocalToMaster(Double_t in[3], Double_t out[3])
40{
41 if (!fGeoPar) return;
42 fGeoPar->LocalToMaster(in, out);
43}
44
ClassImp(CbmConverterManager)
Abstract class for the TRD module It provides access to the basic properties of the chamber as follow...
Char_t fLayerId
layer identifier
bool IsChannelMasked(int ch) const
Inquire the ASIC par set.
virtual void LocalToMaster(Double_t in[3], Double_t out[3])
const CbmTrdParModGeo * fGeoPar
link to gGeometry for module
UChar_t fRotation
rotation angle for current module
CbmTrdModuleAbstract()
Default constructor.
UShort_t fModAddress
unique identifier for current module
CbmTrdParModAsic * fAsicPar
the set of ASIC operating on the module (owned)
Definition of ASIC parameters.
virtual bool IsChannelMasked(int) const
virtual const CbmTrdParAsic * GetAsicPar(Int_t address) const
Look for the ASIC parameters of a given DAQ id It applies to the list of ASICs.
virtual void LocalToMaster(Double_t in[3], Double_t out[3]) const