#include #include #include #include namespace RAT{ void MetaHelper::AddRun(const RAT::DS::Run& run){ fContainsMC |= run.GetMCFlag(); fContainsData |= !run.GetMCFlag(); fNgenerated += run.GetNMCEvents(); } void MetaHelper::SetStoredEvents(Int_t nStore){ fNstored = nStore; } void MetaHelper::LoadLastPass(const RAT::DS::Meta& meta){ size_t lastPass = meta.GetCurrentPass(); fContainsMC = meta.GetContainsMCFlags().at(lastPass); fContainsData = meta.GetContainsDataFlags().at(lastPass); fNgenerated = meta.GetEventsGeneratedCounts().at(lastPass); fNstored = meta.GetEventsStoredCounts().at(lastPass); } bool MetaHelper::GetContainsMC() const{ return fContainsMC; } bool MetaHelper::GetContainsData() const{ return fContainsData; } int MetaHelper::GetEventsGenerated() const{ return fNgenerated; } int MetaHelper::GetEventsStored() const{ return fNstored; } }