Go to the documentation of this file.
8 #include "TClonesArray.h"
9 #include "TStopwatch.h"
11 #include "FairLogger.h"
12 #include "FairRootManager.h"
30 : FairTask(
"BuildEventsSimple")
61 Int_t nev =
fEvents->GetEntriesFast();
64 for (
i = st;
i <= end;
i++) {
68 FairRootManager::Instance()->Fill();
69 LOG(info) <<
"CbmBuildEventsSimple: Event constructed. Digis used from "
70 << st <<
" to " << end <<
".";
92 LOG(info) <<
"CbmBuildEventsSimple: Sts digis in slice " << nsts;
94 for (
i = 0;
i < 16;
i++)
99 for (
i = 0;
i < nsts;
i++) {
101 if (digi == NULL)
continue;
111 for (j =
fSN; j <
i; j++) {
113 if (digi2 == NULL)
continue;
131 for (j = 0; j < 16; j++)
135 for (j =
i; j > -1; j--) {
137 if (digi2 == NULL)
continue;
141 for (j =
i + 1; j < nsts; j++) {
143 if (digi2 == NULL)
continue;
153 for (j = n1 + 1; j < nsts; j++) {
155 if (digi2 == NULL)
continue;
164 for (j = 0; j < 16; j++)
193 FairRootManager* ioman = FairRootManager::Instance();
197 fStsDigis = (TClonesArray*) ioman->GetObject(
"StsDigi");
201 fEvents =
new TClonesArray(
"CbmEvent", 100);
203 "Event",
"CbmEvent",
fEvents, IsOutputBranchPersistent(
"Event"));
virtual ~CbmBuildEventsSimple()
void AddData(ECbmDataType type, UInt_t index)
TClonesArray * fStsDigis
Input array (class CbmStsDigi)
UInt_t GetElementId(Int_t address, Int_t level)
Get the index of an element.
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Data class for a single-channel message in the STS.
TClonesArray * fEvents
Output array (class CbmEvent)
virtual void Exec(Option_t *opt)
Class characterising one event by a collection of links (indices) to data objects,...
virtual InitStatus Init()
void FillEvent(Int_t st, Int_t end)