Belle II Software  release-05-01-25
DecayStringDecay.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 <vector>
14 #include <boost/fusion/include/adapt_struct.hpp>
15 #include <analysis/DecayDescriptor/DecayString.h>
16 #include <analysis/DecayDescriptor/DecayStringParticle.h>
17 
18 namespace Belle2 {
28  struct DecayStringDecay {
30  DecayStringParticle m_mother;
32  std::string m_strArrow;
34  std::vector<DecayString> m_daughters;
36  std::vector<std::string> m_keywords;
37  };
39 }
40 
41 // introduce the DecayStringDecay struct to boost:fusion
42 // this enables direct parsing into the struct with the boost::spirit::qi package
43 // It is necessary to call this in the global scope
44 BOOST_FUSION_ADAPT_STRUCT(
46  (Belle2::DecayStringParticle, m_mother)
47  (std::string, m_strArrow)
48  (std::vector<Belle2::DecayString>, m_daughters)
49  (std::vector<std::string>, m_keywords)
50 )
51 
52 
Belle2::DecayStringParticle
Holds the information of a particle in the decay string.
Definition: DecayStringParticle.h:32
Belle2::DecayStringDecay::m_mother
DecayStringParticle m_mother
Mother particle.
Definition: DecayStringDecay.h:38
Belle2::DecayStringDecay::m_keywords
std::vector< std::string > m_keywords
The keyword list for custom MC Matching.
Definition: DecayStringDecay.h:44
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::DecayStringDecay::m_strArrow
std::string m_strArrow
The arrow of the decay string.
Definition: DecayStringDecay.h:40
Belle2::DecayStringDecay::m_daughters
std::vector< DecayString > m_daughters
The decay products.
Definition: DecayStringDecay.h:42
Belle2::DecayStringDecay
Holds the information of a decay.
Definition: DecayStringDecay.h:36