 |
Belle II Software
release-05-02-19
|
11 #ifndef PIDNTUPLEMODULE_H
12 #define PIDNTUPLEMODULE_H
14 #include <framework/core/Module.h>
16 #include <reconstruction/modules/PIDNtuple/PIDTree.h>
28 class PIDNtupleModule :
public Module {
57 virtual void event()
override;
63 virtual void endRun()
override;
99 double f = 1.0 - exp(-p /
m_p1);
100 return m_norm * f * f * f * f * exp(-p /
m_p2);
virtual void beginRun() override
Called when entering a new run.
std::string m_outputFileName
output file name
PID::PIDTree m_pid
PID tree structure.
double m_value
distribution value at m_pMax
virtual ~PIDNtupleModule()
Destructor.
virtual void terminate() override
Termination action.
Abstract base class for different kinds of events.
double m_p2
parameter of momentum distribution
double m_norm
distribution normalization
virtual void endRun() override
End-of-run action.
double momDistribution(double p) const
parameterized momentum distribution
bool m_makeFlat
if true, make momentum distribution flat up to m_pMax
virtual void initialize() override
Initialize the Module.
void printModuleParams() const
Prints module parameters.
double m_p1
parameter of momentum distribution
Structure for the output of PID log likelihoods + tracking info to a flat ntuple.
TTree * m_tree
TTree with PIDTree structure.
double m_pMax
flatten distribution up to this momentum
PIDNtupleModule()
Constructor.
virtual void event() override
Event processor.