11#include <framework/core/Module.h>
13#include <reconstruction/modules/PIDNtuple/PIDTree.h>
43 virtual void event()
override;
74 double f = 1.0 - exp(-p /
m_p1);
75 return m_norm * f * f * f * f * exp(-p /
m_p2);
makes PID ntuple from mdst input
TTree * m_tree
TTree with PIDTree structure.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
bool m_makeFlat
if true, make momentum distribution flat up to m_pMax
virtual void terminate() override
Termination action.
double m_p2
parameter of momentum distribution
PID::PIDTree m_pid
PID tree structure.
PIDNtupleModule()
Constructor.
double momDistribution(double p) const
parameterized momentum distribution
double m_pMax
flatten distribution up to this momentum
double m_p1
parameter of momentum distribution
double m_value
distribution value at m_pMax
double m_norm
distribution normalization
std::string m_outputFileName
output file name
Abstract base class for different kinds of events.
Structure for the output of PID log likelihoods + tracking info to a flat ntuple.