11 #include <framework/core/Module.h>
13 #include <reconstruction/modules/PIDNtuple/PIDTree.h>
54 virtual void event()
override;
60 virtual void endRun()
override;
96 double f = 1.0 - exp(-p /
m_p1);
97 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 endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
double m_p2
parameter of momentum distribution
PID::PIDTree m_pid
PID tree structure.
virtual void beginRun() override
Called when entering a new run.
PIDNtupleModule()
Constructor.
virtual ~PIDNtupleModule()
Destructor.
void printModuleParams() const
Prints module parameters.
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.