#include <CbmMuchReadoutBuffer.h>
Definition at line 23 of file CbmMuchReadoutBuffer.h.
◆ CbmMuchReadoutBuffer() [1/3]
CbmMuchReadoutBuffer::CbmMuchReadoutBuffer |
( |
| ) |
|
|
inline |
◆ CbmMuchReadoutBuffer() [2/3]
CbmMuchReadoutBuffer::CbmMuchReadoutBuffer |
( |
TString |
branchName, |
|
|
TString |
folderName, |
|
|
Bool_t |
persistence = kTRUE |
|
) |
| |
|
inline |
Constructor with branch and folder name
- Parameters
-
branchName | Name of branch in output tree |
folderName | No idea what this is good for |
persistence | If kTRUE (default), the branch will appear in the output file. |
If this constructor is used, a branch with a TClonesArray will be created. Data from the buffer will be copied to this array. Note that in this case, ReadOutData will deliver no data (for the same readout time), since the buffered data are deleted after being copied to the array.
Definition at line 43 of file CbmMuchReadoutBuffer.h.
◆ CbmMuchReadoutBuffer() [3/3]
◆ ~CbmMuchReadoutBuffer()
CbmMuchReadoutBuffer::~CbmMuchReadoutBuffer |
( |
| ) |
|
|
inline |
Destructor
Cleans up remaining data in the buffer, if present, which should not
be the case if used properly.
Definition at line 71 of file CbmMuchReadoutBuffer.h.
◆ AddNewDataToTClonesArray()
Adding data to the TClonesArray Abstract method from FairWriteoutBuffer; not needed in this template implementation.
Definition at line 101 of file CbmReadoutBuffer.h.
◆ CheckData()
Check data for consistency (stop time should be larger than start time)
- Parameters
-
data | Data object @value kTRUE is stop time is later than start time. |
Definition at line 111 of file CbmReadoutBuffer.h.
◆ CheckInterference()
Check interference of two data objects
- Parameters
-
data1,data2 | Data objects @value kTRUE if objects interfere |
Interference is present if the temporal extension of the objects overlap.
Definition at line 125 of file CbmReadoutBuffer.h.
◆ ClassDef()
◆ DeleteOldData()
Clear the output TClonesArray Called at the end of the event from FairRootManager
Definition at line 137 of file CbmReadoutBuffer.h.
◆ EraseDataFromDataMap()
Erase data from data map Abstract method from FairWriteoutBuffer; not needed in this template implementation.
Definition at line 148 of file CbmReadoutBuffer.h.
◆ Fill()
Fill data into the buffer
- Parameters
-
address | Unique address |
data | Pointer to data object |
If, for the same address, other data are present in the buffer, the time intervals of old and new data will be compared. If there is no time overlap with already present data, the new data will be inserted into the buffer. Otherwise, the method Modify is called and the resulting, modified data are inserted into the buffer.
Definition at line 163 of file CbmReadoutBuffer.h.
◆ FillDataMap()
Fill data map Abstract method from FairWriteoutBuffer; not needed in this template implementation.
Definition at line 249 of file CbmReadoutBuffer.h.
◆ FindTimeForData()
Active time for a given data object Abstract method from FairWriteoutBuffer; not needed in this template implementation.
Definition at line 258 of file CbmReadoutBuffer.h.
◆ GetNData()
Number of data in the buffer
- Returns
- Number of data objects in buffer
Definition at line 266 of file CbmReadoutBuffer.h.
◆ Instance()
◆ Merge()
◆ operator=()
◆ ReadOutData()
Read out data from the buffer
- Parameters
-
[in] | time | Readout time. If < 0, all data will be read out. |
[out] | dataList | Vector with pointers to data objects @value Number of data objects read out |
Data interface alternative to the TClonesArray. Data from the buffer with stop time before the specified readout time will be delivered and removed from the buffer. The object ownership is passed to the consumer, who is responsible for destroying the data objects in the data vector.
Definition at line 318 of file CbmReadoutBuffer.h.
◆ WriteOutAllData()
Write out all data in the buffer to the TClonesArray
All buffer data, irrespective of time, will be copied
to the output array and deleted from the buffer.
Called from Framework (FairRootManager)
Definition at line 302 of file CbmReadoutBuffer.h.
◆ WriteOutData()
Write out data to the TClonesArray
- Parameters
-
time | Readout time. If < 0, all data will be written out. |
All data with stop time before the readout time will be copied to the output array and deleted from the buffer. Called from Framework (FairRootManager). Note that this method has no effect if fWriteToArray is kFALSE, which is the default.
Definition at line 369 of file CbmReadoutBuffer.h.
◆ fArray
◆ fBuffer
◆ fBufferIt
◆ fCounter
Int_t CbmMuchReadoutBuffer::fCounter |
|
private |
◆ fgInstance
◆ fOldIt
◆ fWriteToArray
The documentation for this class was generated from the following files: