# Module Module # name type defmod LE57 1 defmod LE39 2 defmod LE59 3 defmod LE37 5 defmod LE61 6 defmod LE15 7 # Module Controller Module_nb Detector Algorithm # name number from to LE59 4 11 14 DC3_Y1 SIMPLE16 LE59 4 15 18 DC3_Y2 DCWIRE3_2 LE59 2 2 4 DT1_1 DTWIRE1 LE59 2 5 7 DT1_2 DTWIRE1 # # Hodoscopes # LE37 3 14 17 MH SIMPLE32
class ReadoutDB { public: // ... int Load ( const char * dbname ); void GetCrates(std::set<Crate> &) const; unsigned NbCrates() const; const char * GetModuleName ( const int & ) const; const char * GetModuleName ( ModuleType ) const; ModuleType GetModuleType ( const int & mcode ) const; int GetModuleCode ( const ModuleType & mtype ) const; bool IsRegisteredCtrlr(int type, int ctrlr_nb) const; bool IsRegisteredModule(int ctrlr_type, int ctrlr_nb, int mod_num) const; void Mod2Det ( const Crate & crate, const int & modnum, std::vector<Detector> & det ) const; int GetSensElement(const Detector & det, const int & ctrlr, const int & nmodule, const int & nchannel) const; Crate GetLogicCrate() const; int CrateIndex(const Crate &) const; std::string StrCfg() const; void Print(std::ostream &) const; };