11#include <FairEventHeader.h>
12#include <FairRootManager.h>
13#include <FairRunAna.h>
16#include <TGenericClassInfo.h>
23 : FairTask(
"Digitizer")
25 , fProduceNoise(kTRUE)
26 , fCreateMatches(kTRUE)
30 , fCurrentEventTime(0.)
40 , fProduceNoise(kTRUE)
41 , fCreateMatches(kTRUE)
45 , fCurrentEventTime(0.)
63 if (FairRunAna::Instance()) {
64 FairEventHeader*
event = FairRunAna::Instance()->GetEventHeader();
86 if (channelFile ==
nullptr)
return std::make_pair(0,
false);
90 while (fscanf(channelFile,
"%u", &channel) == 1) {
94 bool success = feof(channelFile);
97 return std::make_pair(nLines, success);
ClassImp(CbmConverterManager)
Abstract base class for CBM digitisation tasks.
virtual std::pair< size_t, bool > ReadInactiveChannels()
Set of inactive channels, indicated by CbmAddress.
Int_t fCurrentEvent
Number of current input.
TString fInactiveChannelFileName
Time of current MC event [ns].
std::set< uint32_t > fInactiveChannels
Name of file with inactive channels.
virtual ~CbmDigitizeBase()
Destructor.
CbmDigitizeBase()
Constructor.
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.