Belle II Software development
DecayStringParticle.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#include <string>
11#include <boost/fusion/include/adapt_struct.hpp>
12
13namespace Belle2 {
25 std::string m_strSelector;
27 std::string m_strName;
29 std::string m_strLabel;
30 };
32}
33
34// introduce the DecayStringParticle struct to boost:fusion
35// This enables direct parsing into the struct with the boost::spirit::qi package
36// It is necessary to call this in the global scope
37BOOST_FUSION_ADAPT_STRUCT(
39 (std::string, m_strSelector)
40 (std::string, m_strName)
41 (std::string, m_strLabel)
42)
Abstract base class for different kinds of events.
Holds the information of a particle in the decay string.
std::string m_strLabel
Optional label for this particle.
std::string m_strSelector
If the particle is selected by a preceding "^", "@", "(misID)", and/or "(decay)", this is stored here...
std::string m_strName
Particle name as it is defined in the evt.pdl file.