Belle II Software  release-05-02-19
DecayStringParticle.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Christian Oswald *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #include <string>
13 #include <boost/fusion/include/adapt_struct.hpp>
14 
15 namespace Belle2 {
24  struct DecayStringParticle {
27  std::string m_strSelector;
29  std::string m_strName;
31  std::string m_strLabel;
32  };
34 }
35 
36 // introduce the DecayStringParticle struct to boost:fusion
37 // This enables direct parsing into the struct with the boost::spirit::qi package
38 // It is necessary to call this in the global scope
39 BOOST_FUSION_ADAPT_STRUCT(
41  (std::string, m_strSelector)
42  (std::string, m_strName)
43  (std::string, m_strLabel)
44 )
Belle2::DecayStringParticle
Holds the information of a particle in the decay string.
Definition: DecayStringParticle.h:32
Belle2::DecayStringParticle::m_strLabel
std::string m_strLabel
Optional label for this particle.
Definition: DecayStringParticle.h:39
Belle2::DecayStringParticle::m_strSelector
std::string m_strSelector
If the particle is selected by a preceding "^", "@", "(misID)", and/or "(decay)", this is stored here...
Definition: DecayStringParticle.h:35
Belle2::DecayStringParticle::m_strName
std::string m_strName
Particle name as it is defined in the evt.pdl file.
Definition: DecayStringParticle.h:37
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19