17#include "FairRootManager.h"
18#include "TClonesArray.h"
19#include "TStopwatch.h"
33 : FairTask(
"BuildEventsSimple")
65 Int_t nev =
fEvents->GetEntriesFast();
68 for (i = st; i <= end; i++) {
72 FairRootManager::Instance()->Fill();
73 LOG(info) <<
"CbmBuildEventsSimple: Event constructed. Digis used from " << st <<
" to " << end <<
".";
96 LOG(info) <<
"CbmBuildEventsSimple: Sts digis in slice " << nsts;
98 for (i = 0; i < 16; i++)
103 for (i = 0; i < nsts; i++) {
105 if (digi == NULL)
continue;
115 for (j =
fSN; j < i; j++) {
117 if (digi2 == NULL)
continue;
118 fST = digi2->GetTime();
135 for (j = 0; j < 16; j++)
139 for (j = i; j > -1; j--) {
141 if (digi2 == NULL)
continue;
145 for (j = i + 1; j < nsts; j++) {
147 if (digi2 == NULL)
continue;
157 for (j = n1 + 1; j < nsts; j++) {
159 if (digi2 == NULL)
continue;
168 for (j = 0; j < 16; j++)
173 fST = digi2->GetTime();
198 FairRootManager* ioman = FairRootManager::Instance();
202 fStsDigis = (TClonesArray*) ioman->GetObject(
"StsDigi");
206 fEvents =
new TClonesArray(
"CbmEvent", 100);
207 ioman->Register(
"CbmEvent",
"Cbm_Event",
fEvents, IsOutputBranchPersistent(
"CbmEvent"));
ClassImp(CbmConverterManager)
void FillEvent(Int_t st, Int_t end)
virtual InitStatus Init()
virtual ~CbmBuildEventsSimple()
virtual void Exec(Option_t *opt)
TClonesArray * fEvents
Output array (class CbmEvent)
TClonesArray * fStsDigis
Input array (class CbmStsDigi)
Class characterising one event by a collection of links (indices) to data objects,...
Data class for a single-channel message in the STS.
XPU_D int32_t GetAddress() const
uint32_t GetElementId(int32_t address, int32_t level)
Get the index of an element.