//////////////////////////////////////////////////////////////////////// // Helper class used by root io classes to keep track of meta information // across runs, later written to the DS::Meta object in the CompletePass // method // // Author: Jack Dunger - contact person // // REVISION HISTORY: // 2017-04-12 : J. Dunger - First commit //////////////////////////////////////////////////////////////////////// #ifndef __RAT_MetaHelper__ #define __RAT_MetaHelper__ namespace RAT{ namespace DS{ class Run; class Meta; } class MetaHelper{ public: MetaHelper() : fContainsMC(false), fContainsData(false), fNgenerated(0), fNstored(0) {} void AddRun(const RAT::DS::Run& run); void SetStoredEvents(int); // loads the most recent pass in meta void LoadLastPass(const RAT::DS::Meta& meta); bool GetContainsMC() const; bool GetContainsData() const; int GetEventsGenerated() const; int GetEventsStored() const; private: // these two are not mutually exclusive bool fContainsMC; bool fContainsData; int fNgenerated; // number requested int fNstored; // number that actually made it into the tree }; } #endif