2 #include <utl/Reader.h>
3 #include <fwk/CentralConfig.h>
4 #include <utl/ErrorLogger.h>
7 #include <sevt/SEvent.h>
8 #include <mevt/MEvent.h>
21 fClearSEvent = topB.
GetChild(
"ClearSEvent").
Get<
bool>();
22 fClearMEvent = topB.
GetChild(
"ClearMEvent").
Get<
bool>();
24 info <<
"ClearSEvent: " << fClearSEvent <<
", ClearMEvent: " << fClearMEvent;
35 auto& sEvent =
event.GetSEvent();
36 for (
auto&
s : sEvent.StationsRange())
38 s.GetSimData().ClearParticleList();
43 auto& mEvent =
event.GetMEvent();
44 for (
auto&
m : mEvent.CountersRange())
46 auto& simData =
m.GetSimData();
47 simData.ClearGrdParticleList();
48 simData.ClearUGrdParticleList();
53 info <<
"Cleared " << nLists <<
" particle lists.";
Branch GetTopBranch() const
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
Class representing a document branch.
ResultFlag
Flag returned by module methods to the RunController.