15#include "FairParamList.h"
24 : FairParGenericSet(name, title, context)
41 if (!l)
return kFALSE;
44 if (!l->fill(
"ToTshifts", &
fToTshifts))
return kFALSE;
55 for (Int_t i = 0; i < siz; i++) {
57 LOG(debug) <<
"Inserting in RICH TRB map: 0x" << std::hex << std::setw(4) <<
fTRBaddresses[i] << std::dec <<
" "
63 for (Int_t i = 0; i < siz; i++) {
64 for (Int_t ch = 0; ch <= 32; ch++) {
75 LOG(warning) <<
"CbmMcbm2018RichPar::GetAddressIdx => Unknown TRB address 0x" << std::hex << std::setw(4) << addr
76 << std::dec <<
", probably corrupted data!";
77 LOG(warning) <<
"Nb available TRB addresses: " <<
GetNaddresses();
98 LOG(fatal) <<
"CbmMcbm2018RichPar::GetToTshift2 => Invalid TDC index, "
99 <<
"check your data or your parameters!";
106 LOG(info) <<
"Nb available TRB addresses: " <<
GetNaddresses();
108 TString sPrintout =
"";
110 if (0 == iTrb % 8) sPrintout +=
"\n";
111 sPrintout += Form(
" 0x%04x",
GetAddress(iTrb));
113 LOG(info) <<
"Available TRB addresses: " << sPrintout;
117 sPrintout += Form(
" 0x%04x", it->first);
119 LOG(info) <<
"TRB addresses in map: " << std::endl << sPrintout;
ClassImp(CbmConverterManager)
Double_t GetToTshift2(Int_t tdcIdx, Int_t ch) const
Int_t GetNaddresses(void) const
void LoadInternalContainers()
Int_t GetAddress(Int_t ind) const
virtual void putParams(FairParamList *)
Int_t GetAddressIdx(Int_t addr, bool bVerbose=true) const
std::map< Int_t, Int_t > fTRBaddrMap
virtual ~CbmMcbm2018RichPar()
void Print(Option_t *option="") const
virtual Bool_t getParams(FairParamList *)
std::vector< Double_t > fToTshiftMap
CbmMcbm2018RichPar(const char *name="CbmMcbm2018RichPar", const char *title="RICH unpacker parameters", const char *context="Default")