4 #include <evt/ShowerSimData.h>
6 #include <utl/ErrorLogger.h>
7 #include <utl/ShowerParticleIterator.h>
8 #include <utl/Particle.h>
9 #include <utl/UTMPoint.h>
18 ERROR(
"Event has no sim shower");
20 auto& simShower =
event.GetSimShower();
22 double totalWeight = 0;
24 for (
auto pIt = simShower.GroundParticlesBegin(), end = simShower.GroundParticlesEnd();
27 const auto type = pIt->GetType();
32 totalWeight += pIt->GetWeight();
35 std::ostringstream info;
36 info <<
"total weight of (anti)muons is " << totalWeight;
38 simShower.SetMuonNumber(totalWeight);
Report success to RunController.
bool HasSimShower() const
#define INFO(message)
Macro for logging informational messages.
ResultFlag
Flag returned by module methods to the RunController.
#define ERROR(message)
Macro for logging error messages.