14 fStartFunction(startFunction),
15 fStopFunction (stopFunction),
21 fBranch = sourceTree->GetBranch(branchName.Data());
23 std::cout <<
"-E- FairTSBufferFunctional::FairTSBufferFunctional Branch " << branchName <<
" does not exist!" << std::endl;
35 Double_t actualTime = 0.;
44 std::cout <<
"-I- FairTSBufferFunctional::GetData for stopParameter: " << stopParameter << std::endl;
50 std::cout <<
"-I- FairTSBufferFunctional::GetData fBufferArray is empty: Read in Data" << std::endl;
58 std::cout <<
"-I- FairTSBufferFunctional::GetData fBufferArray->GetEntriesFast(): " <<
fBufferArray->GetEntriesFast() << std::endl;
63 std::cout <<
"-I- FairTSBufferFunctional::GetData dataPoint is empty ==> All Data read in" << std::endl;
83 std::cout << posBuffer <<
" TimeStampData: " << dataPoint->
GetTimeStamp() << std::endl;
88 std::cout <<
"-I- FairTSBufferFunctional::GetData Index for Absorb: " << posBuffer <<
" BufferArray size: " <<
fBufferArray->GetEntriesFast() << std::endl;
90 if (posBuffer < fBufferArray->GetEntriesFast() && posBuffer > 0) {
92 std::cout <<
"-I- FairTSBufferFunctional::GetData absorb BufferArray up to posBuffer " << posBuffer <<
" into fOutputArray" << std::endl;
99 std::cout <<
"Index: " << posBuffer <<
" BranchIndex: " <<
fBranchIndex <<
" NBranch " <<
fBranch->GetEntries() << std::endl;
104 std::cout <<
"-I- FairTSBufferFunctional::GetData end of data reached. Send the rest to the OutputArray!" << std::endl;
110 std::cout <<
"-I- FairTSBufferFunctional::GetData: Read in up to entry: " <<
fBranchIndex <<
" with actualTime " << actualTime <<
" and requested stopParameter " << stopParameter << std::endl;
121 std::cout <<
"StartIndex: " << startIndex <<
"/" <<
GetBranchIndex() << std::endl;
122 if (startIndex > -1) {
134 Bool_t runBackwards = kTRUE;
135 Int_t previousIndex = -1;
136 Int_t previousBranchIndex = -1;
140 while (
fInputArray->GetEntries() == 0 && tempIndex > 0) {
147 runBackwards = kFALSE;
151 std::cout <<
"-I- FairTSBufferFunctional::FindStartIndex: All entries are empty!" << std::endl;
173 previousIndex = startPos;
176 if (startPos == -1) {
189 return previousIndex;
198 std::cout <<
"-I- FairTSBufferFunctional::ReadInNextFilledEntry: Entries in InputArray " <<
fInputArray->GetEntriesFast() <<
" Branch Entries: " <<
fBranch->GetEntries() << std::endl;
208 Int_t tempIndex = startEntry;
211 while (
fInputArray->GetEntriesFast() == 0 && tempIndex > 0) {
222 std::cout <<
"-I- FairTSBufferFunctional::ReadInNextFilledEntry: Absorb InputArray into Buffer" << std::endl;
239 if (number < fBranch->GetEntries()) {
241 for (
int i = 0; i <
fInputArray->GetEntriesFast(); i++) {
246 <<
"-I- FairTSBufferFunctional::ReadInEntry BranchIndex: "
247 << number <<
" Entries: "
258 }
else {
return kFALSE; }
259 }
else {
return kFALSE; }
260 }
else {
return kFALSE; }