Belle II Software light-2406-ragdoll
NeutralHadron4MomentumCalculatorModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <framework/core/Module.h>
12#include <framework/datastore/StoreObjPtr.h>
13#include <analysis/dataobjects/ParticleList.h>
14#include <analysis/DecayDescriptor/DecayDescriptor.h>
15
16namespace Belle2 {
25
26 public:
27
32
34 void initialize() override;
35
37 void event() override;
38
39 private:
40
41 std::string m_decayString;
43 int m_iNeutral = 0;
47 };
49}
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Base class for Modules.
Definition: Module.h:72
Calculates 4-momentum of a neutral hadron in a given decay chain e.g.
bool m_allowAnyParticleSource
Whether allow the selected particle to be from any ParticleSource.
void event() override
Action to perform for each event.
std::string m_decayString
Decay string for which one wants to perform the calculation.
int m_iNeutral
Index of the neutral hadron in the decay string.
NeutralHadron4MomentumCalculatorModule()
Constructor: Sets the description, the properties and the parameters of the module.
DecayDescriptor m_decayDescriptor
Decay Descriptor to be initialized with m_decayString.
bool m_allowGamma
Whether allow the selected particle to be gamma.
StoreObjPtr< ParticleList > m_plist
ParticleList that one wants to perform the calculation.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.
Definition: ClusterUtils.h:24