17#include <TStopwatch.h>
24using std::setprecision;
62 LOG(info) << left << setw(15) << GetName() <<
"[" << fixed << setprecision(3) << timer.RealTime() <<
" s]"
63 <<
" event time: " <<
fCurrentEventTime <<
" ns, measurement time " << digiTime <<
" ns";
76 std::cout << std::endl;
77 LOG(info) <<
"=====================================";
78 LOG(info) << GetName() <<
": Run summary";
79 LOG(info) <<
"Events processed : " <<
fNofEvents;
81 LOG(info) <<
"=====================================";
89 std::cout << std::endl;
90 LOG(info) <<
"==========================================================";
91 LOG(info) << GetName() <<
": Initialisation";
92 LOG(info) <<
"Time resolution is " <<
fResolution <<
" [ns]";
100 if (!result.second) {
101 LOG(error) << GetName() <<
": Error in reading from file! Task will be inactive.";
104 LOG(info) << GetName() <<
": " << std::get<0>(result) <<
" lines read from file, " <<
fInactiveChannels.size()
105 <<
" channels set inactive";
108 LOG(info) << GetName() <<
": Initialisation successful";
109 LOG(info) <<
"==========================================================";
110 std::cout << std::endl;
ClassImp(CbmConverterManager)
XPU_D constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
Data class for a signal in the t-zero detector.
Task class for simulating the detector response of the t-zero detector.
Double_t fTimeTot
Total execution time.
CbmBmonDigitize(double resolution=0.025)
virtual InitStatus ReInit()
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
size_t fNofEvents
Total number of procesed events.
virtual ~CbmBmonDigitize()
double fResolution
Time resolution [ns].
virtual std::pair< size_t, bool > ReadInactiveChannels()
Set of inactive channels, indicated by CbmAddress.
TString fInactiveChannelFileName
Time of current MC event [ns].
std::set< uint32_t > fInactiveChannels
Name of file with inactive channels.
void GetEventInfo()
Get event information.
Int_t fCurrentInput
Start time of run [ns].
Double_t fCurrentEventTime
Number of current MC entry.
Int_t fCurrentMCEntry
Number of current MC event.
Bool_t fCreateMatches
Flag for production of inter-event noise.
Base class template for CBM digitisation tasks.
void SendData(Double_t time, CbmBmonDigi *digi, CbmMatch *match=nullptr)
void AddLink(const CbmLink &newLink)