Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Generators/include/Generators/GeneratorFromFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,10 @@ class GeneratorFromO2Kine : public o2::eventgen::Generator
void SetStartEvent(int start);

void setContinueMode(bool val) { mContinueMode = val; };

private:
/** methods that can be overridden **/
void updateHeader(o2::dataformats::MCEventHeader* eventHeader) override;

private:
TFile* mEventFile = nullptr; //! the file containing the persistent events
TBranch* mEventBranch = nullptr; //! the branch containing the persistent events
TBranch* mMCHeaderBranch = nullptr; //! branch containing MC event headers
Expand Down Expand Up @@ -143,6 +142,11 @@ class GeneratorFromEventPool : public o2::eventgen::Generator
return import_good;
}

void updateHeader(o2::dataformats::MCEventHeader* eventHeader) override
{
mO2KineGenerator->updateHeader(eventHeader);
}

// determine the collection of available files
std::vector<std::string> setupFileUniverse(std::string const& path) const;

Expand Down