19 #include <TClonesArray.h>
34 std::cout <<
"-E- FairRingSorterTaskT::Init: "
35 <<
"RootManager not instantiated!" << std::endl;
56 std::cout <<
"-I- FairRingSorterTask: Size PixelArray: " <<
fInputArray->GetEntriesFast() << std::endl;
58 for (
int i = 0; i <
fInputArray->GetEntriesFast(); i++) {
62 std::cout <<
"Sorter filled with: ";
64 std::cout << std::endl;
75 for (
unsigned int i = 0; i < sortedData.size(); i++) {
86 (*myArray)[myArray->GetEntries()] = data;
95 std::cout <<
"-I- FairRingSorterTaskT::FinishTask Size InputArray: " <<
fInputArray->GetEntriesFast()
98 for (
int i = 0; i <
fInputArray->GetEntriesFast(); i++) {
100 fSorter->
AddElement(myDigi, (static_cast<FairTimeStamp*>(myDigi))->GetTimeStamp());
108 for (
unsigned int i = 0; i < sortedData.size(); i++) {
110 std::cout << i <<
" FinishTask : ";
111 sortedData[i]->Print();
112 std::cout << std::endl;
TClonesArray * fInputArray
virtual InitStatus Init()
virtual void FinishEvent()
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
virtual void AddElement(FairTimeStamp *digi, double timestamp)
virtual void AddNewDataToTClonesArray(FairTimeStamp *data)
virtual void DeleteOutputData()
TClonesArray * GetTClonesArray(TString branchName)
void SetLastFill(Bool_t val=kTRUE)
virtual void FinishTask()
void SetEntryNr(FairLink val)
virtual std::vector< FairTimeStamp * > GetOutputData()
Double_t GetTimeStamp() const
virtual void WriteOutAll()
virtual void Exec(Option_t *opt)
virtual InitStatus ReInit()
void Register(const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
TClonesArray * GetEmptyTClonesArray(TString branchName)
TClonesArray * fOutputArray
virtual FairRingSorter * InitSorter(Int_t numberOfCells, Double_t widthOfCells) const