23#ifndef CBMTRDGEOSETUP_H_
24#define CBMTRDGEOSETUP_H_
28#include <FairParGenericSet.h>
46 class Setup :
public FairParGenericSet {
56 Setup(
const char* n,
const char* t);
61 virtual const char*
GetInfo(
const char* label)
const;
88 void Help(
const char*
lab =
nullptr)
const;
104 Module(
const char* n =
"",
const char* t =
"");
117 virtual InitStatus
init(TGeoNode*);
148 Asic(
const char* n,
const char* t);
177 virtual InitStatus
Init();
181 virtual void Exec(Option_t*) { ; }
Generate setup meta info for the TRD system.
string fDescription
further description of the current setup
Setup * fSetup
the setup object
virtual void Finish()
Inherited from FairTask.
SetupManager(const SetupManager &)
void CreateModuleParameters(const TString &path)
bool CreateParFilesFromGeometry(TString outDir="")
string fContact
contact info (usual email) of the responsible
virtual InitStatus Init()
Inherited from FairTask.
void SetContact(const char *contact)
void SetDescription(const char *text)
virtual void Exec(Option_t *)
Inherited from FairTask.
SetupManager()
Default constructor.
virtual void SetParContainers()
Inherited from FairTask.
virtual ~SetupManager()
Destructor.
SetupManager & operator=(const SetupManager &)
string fGeoTag
the setup name
Meta info for one TRD ASIC.
uint16_t fUnique
ASIC id in the production.
Asic(const char *n, const char *t)
vector< int > GetPads() const
uint8_t fId
ASIC id in the chamber.
Meta info for one TRD module.
int fRot
rotation of chamber in steps of 90 deg
ePadPlane fFamily
Chamber family (1D / 2D)
virtual void putParams(FairParamList *)
Write out the setup from object to FairParamList.
vector< int > GetDaq() const
int fFeeType
FEB type for each FEE version.
uint16_t fId
TRD chamber id in the setup.
ePadPlane GetFamily() const
virtual InitStatus init(TGeoNode *)
Read info relevant for the module from the geometry.
int fType
TRD chamber sub-type (e.g. 1, 3, 5, 7 for TRD1D)
Module(const char *n="", const char *t="")
eWindow fWindow
Entrance window type.
eWindow GetWindowType() const
vector< Asic * > GetFEE() const
eAsic fFee
ASIC family (SPADIC/FASP)
virtual bool getParams(FairParamList *)
Read in the setup from FairParamList.
Setup meta info for the TRD system to supplement the geometry.
virtual const Module * GetModulePar(int detId) const
Get module par by detector id.
virtual void addParam(Module *mod)
void Help(const char *lab=nullptr) const
Help message for user.
vector< Module * > fModule
list of modules defined in the setup
Setup(const char *n, const char *t)
Setup descriptor for the TRD setup. The identification should be :
map< string, string > fMeta
meta info attached to this setup
virtual int GetModuleId(int i) const
Get module par by index.
virtual bool getParams(FairParamList *)
Read in the setup from FairParamList.
virtual void putParams(FairParamList *)
Write out the setup from object to FairParamList.
vector< string > fMetaFields
ordered list of meta info types
virtual const char * GetInfo(const char *label) const
Retrieve meta info for the setup according to label.
virtual size_t GetNrOfModules() const
Retrieve no of modules in the setup.
vector< Module * > GetModules()
Retrieve full list of modules in the setup.
size_t Parse()
Parse setup description for meta info.
@ kNotSet
active gas not set / recognized
@ kNotSet
window not set / recognized
@ kNotSet
pad=plane not set / recognized
@ kNotSet
ASIC not set / recognized.