GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Access to EventHeader. after Digitization
Re: Access to EventHeader. after Digitization [message #19932 is a reply to message #19928] Tue, 22 November 2016 16:38 Go to previous messageGo to previous message
Radoslaw Karabowicz is currently offline  Radoslaw Karabowicz
Messages: 108
Registered: June 2004
Location: GSI
continuous participant
From: *gsi.de
Hi Michael,

This time I want you to add three lines in two files:

void FairFileSource::FillEventHeader(FairEventHeader* feh)
{
fEventTime = GetEventTime(); // <===== ADD THIS LINE
feh->SetEventTime(fEventTime);


Int_t FairRootManager::ReadNonTimeBasedEventFromBranches(Int_t Entry)
{
if ( fSource ){
TObject *Obj;
fListOfNonTimebasedBranchesIter->Reset();
while ( (Obj=fListOfNonTimebasedBranchesIter->Next())) {
// LOG(INFO) << "GETTING EVENT " << Entry << " FOR OBJ >" << Obj->GetName() << "<" << FairLogger::endl;
fSource->ReadBranchEvent(Obj->GetName(),Entry);
}
}else{
return 0;
}

fSource->FillEventHeader(fEventHeader); // / <===== ADD THIS LINE
fCurrentTime = fEventHeader->GetEventTime(); // / <===== ADD THIS LINE

return 1;
}

Then please rebuild FairRoot and let me know the results.
I still try to understand, why it seems to have been working before.

yours
radek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HGS-HIRe SUMMER STUDENT PROGRAM at G S I / F A I R, July 24 - Sep. 14, 2017
Next Topic: Merry Christmas
Goto Forum:
  


Current Time: Fri Mar 29 14:23:16 CET 2024

Total time taken to generate the page: 0.00878 seconds