Skip to content
Snippets Groups Projects

logging

Merged Sergey Gorbunov requested to merge se.gorbunov/cbmroot:minor into master

Files

@@ -11,17 +11,15 @@
#include "CbmTofAddress.h"
#include "CbmTofDetectorId_v14a.h" // in cbmdata/tof
#include "FairDetParIo.h"
#include "FairParIo.h"
#include "FairParamList.h"
#include <Logger.h>
#include "TString.h"
#include "gDpbMessv100.h"
#include <iomanip>
#include <Logger.h>
#include "gDpbMessv100.h"
#include <iomanip>
// ----- Standard constructor ------------------------------------------
CbmMcbm2018TofPar::CbmMcbm2018TofPar(const char* name, const char* title, const char* context)
@@ -164,7 +162,8 @@ Bool_t CbmMcbm2018TofPar::getParams(FairParamList* l)
// -------------------------------------------------------------------------
Int_t CbmMcbm2018TofPar::Get4ChanToPadiChan(UInt_t uChannelInFee)
{
if (uChannelInFee < kuNbChannelsPerFee) return kuGet4topadi[uChannelInFee];
if (uChannelInFee < kuNbChannelsPerFee)
return kuGet4topadi[uChannelInFee];
else {
LOG(fatal) << "CbmMcbm2018TofPar::Get4ChanToPadiChan => Index out of bound, " << uChannelInFee << " vs "
<< static_cast<uint32_t>(kuNbChannelsPerFee) << ", returning crazy value!";
@@ -173,7 +172,8 @@ Int_t CbmMcbm2018TofPar::Get4ChanToPadiChan(UInt_t uChannelInFee)
}
Int_t CbmMcbm2018TofPar::PadiChanToGet4Chan(UInt_t uChannelInFee)
{
if (uChannelInFee < kuNbChannelsPerFee) return kuPaditoget4[uChannelInFee];
if (uChannelInFee < kuNbChannelsPerFee)
return kuPaditoget4[uChannelInFee];
else {
LOG(fatal) << "CbmMcbm2018TofPar::PadiChanToGet4Chan => Index out of bound, " << uChannelInFee << " vs "
<< static_cast<uint32_t>(kuNbChannelsPerFee) << ", returning crazy value!";
@@ -240,7 +240,8 @@ Int_t CbmMcbm2018TofPar::Get4IdxToElinkIdxA(UInt_t uGet4)
// -------------------------------------------------------------------------
Double_t CbmMcbm2018TofPar::GetPadiThresholdVal(UInt_t uCode)
{
if (uCode < GetNrOfPadiThrCodes()) return fvdPadiThrCodeToValue[uCode];
if (uCode < GetNrOfPadiThrCodes())
return fvdPadiThrCodeToValue[uCode];
else {
LOG(error) << "CbmStar2019TofPar::GetPadiThresholdVal => Code out of bound, " << uCode << " vs "
<< GetNrOfPadiThrCodes() << ", returning crazy value!";
@@ -349,7 +350,7 @@ void CbmMcbm2018TofPar::BuildChannelsUidMap()
<< fiNrOfFeesPerGdpb * fiNrOfGet4PerFee * fiNrOfChannelsPerGet4 / nbRobPerComp
<< " with nbRobPerFlim = " << nbRobPerComp;
}
} // for (UInt_t uGbtx = 0; uGbtx < uNrOfGbtx; ++uGbtx)
} // for (UInt_t uGbtx = 0; uGbtx < uNrOfGbtx; ++uGbtx)
}
// -------------------------------------------------------------------------
void CbmMcbm2018TofPar::BuildChannelsUidMapCbm(UInt_t& uCh, UInt_t uGbtx)
@@ -753,7 +754,8 @@ void CbmMcbm2018TofPar::BuildChannelsUidMapBuc(UInt_t& uCh, UInt_t uGbtx)
case 0: iRpcMap = 0; break;
case 1: iRpcMap = 1; break;
}
if (iFeet % 2 == 1) iModuleIdMap = 1;
if (iFeet % 2 == 1)
iModuleIdMap = 1;
else
iModuleIdMap = 0;
Loading