10#ifndef CBMDIGITIZEBASE_H
11#define CBMDIGITIZEBASE_H 1
18#include <RtypesCore.h>
Abstract base class for CBM digitisation tasks.
virtual void FillCustomData(Double_t, Bool_t=kTRUE)
Fill custom data into time slice.
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].
virtual std::string GetDaqBufferStatus() const =0
Status of DAQ buffer @value Status string of the DAQ buffer.
std::set< uint32_t > fInactiveChannels
Name of file with inactive channels.
virtual ECbmModuleId GetSystemId() const =0
Detector system ID.
virtual ULong64_t GetDaqBufferSize() const =0
Size of DAQ buffer @value Number of data in the DAQ buffer.
virtual ~CbmDigitizeBase()
Destructor.
Double_t fRunStartTime
Flag for creation of links to MC.
void SetInactiveChannelFile(const char *fileName)
Set the file containing the list of inactive channels.
virtual ULong64_t FillTimeSlice(CbmTimeSlice *, Double_t tMax)=0
Fill data into the current time slice.
virtual Double_t GetDaqBufferTimeLast() const =0
Time of last datum in DAQ buffer @value Time of last datum in DAQ buffer.
CbmDigitizeBase()
Constructor.
void GetEventInfo()
Get event information.
virtual Double_t GetDaqBufferTimeFirst() const =0
Time of first datum in DAQ buffer @value Time of first datum in DAQ buffer.
Double_t GetEventTime() const
Current event time @value Start time of current event [ns].
ClassDef(CbmDigitizeBase, 3)
Int_t fCurrentInput
Start time of run [ns].
Double_t fCurrentEventTime
Number of current MC entry.
Int_t fCurrentMCEntry
Number of current MC event.
CbmDigitizeBase(const CbmDigitizeBase &)=delete
Copy constructor forbidden.
Bool_t fCreateMatches
Flag for production of inter-event noise.
void operator=(const CbmDigitizeBase &)=delete
Assignment operator forbidden.
virtual ULong64_t FillTimeSlice(CbmTimeSlice *timeSlice)=0
Fill data into the current time slice.
void SetRunStartTime(Double_t time)
Set the run start time.
virtual Bool_t CheckOutput()=0
Check the output arrays.
virtual Double_t GetLatency() const =0
Detector system ID.
void SetCreateMatches(Bool_t choice=kTRUE)
Set creation of links to MC.
virtual void ClearOutput()=0
Clear the output arrays.
Bool_t fProduceNoise
Flag for event-by-event mode.
void SetProduceNoise(Bool_t choice=kTRUE)
Set production of inter-event noise.
void SetEventMode(Bool_t choice=kTRUE)
Set event-by-event mode.
Bookkeeping of time-slice content.