ATLAS Offline Software
Loading...
Searching...
No Matches
DecayParser.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7// DecayParser.h
8// Header file for class Object
9// Author: S.Binet<binet@cern.ch>
11#ifndef MCPARTICLEUTILS_DECAYPARSER_H
12#define MCPARTICLEUTILS_DECAYPARSER_H
13
20
21// STL includes
22#include <string>
23#include <vector>
24
25namespace McUtils {
26 typedef std::vector<std::string> Strings;
27}
28
30{
32 // Public methods:
34 public:
35
37 DecayParser( const std::string& cmd );
38
40 virtual ~DecayParser();
41
43 // Const methods:
45 const std::vector<McUtils::Strings>& getParents() const;
46 const std::vector<McUtils::Strings>& getChildren() const;
47
48 void dump() const;
49
50 int pdgId( const std::string& pdgIdString ) const;
51
53 // Non-const methods:
55 void parse( const std::string& cmd );
56
57
59 // Protected methods:
61 protected:
62
64 DecayParser(); //> not implemented
65
67 DecayParser( const DecayParser& rhs ); //> not implemented
68
70 DecayParser &operator=(const DecayParser &obj); //> not implemented
71
73 // Protected data:
75 protected:
76
79 void printMcUtilsStrings( const std::vector<McUtils::Strings>& list ) const;
80
82 // Protected data:
84 protected:
85
90 std::vector<McUtils::Strings> m_parents;
91
96 std::vector<McUtils::Strings> m_children;
97
98};
99
102//MsgStream& operator<<( MsgStream & msg, const DecayParser &obj );
103
107
108inline
109const std::vector<McUtils::Strings>&
111{
112 return m_parents;
113}
114
115inline
116const std::vector<McUtils::Strings>&
118{
119 return m_children;
120}
121
122#endif //> MCPARTICLEUTILS_DECAYPARSER_H
const std::vector< McUtils::Strings > & getParents() const
I/O operators.
DecayParser()
Default constructor:
void printMcUtilsStrings(const std::vector< McUtils::Strings > &list) const
Print the content of a vector of McUtils::Strings to std::cout.
void dump() const
Const methods:
virtual ~DecayParser()
Destructor:
DecayParser(const std::string &cmd)
Constructor with parameters:
std::vector< McUtils::Strings > m_parents
List of parents : each slot of the vector is a list of candidates So one could have something like : ...
Definition DecayParser.h:90
void parse(const std::string &cmd)
Non-const methods:
int pdgId(const std::string &pdgIdString) const
DecayParser & operator=(const DecayParser &obj)
Assignment operator:
DecayParser(const DecayParser &rhs)
Copy constructor:
const std::vector< McUtils::Strings > & getChildren() const
std::vector< McUtils::Strings > m_children
List of children : each slot of the vector is a list of candidates So one could have something like :...
Definition DecayParser.h:96
DecayParser is the class which parses and models decay patterns.
Definition DecayParser.h:25
std::vector< std::string > Strings
Definition DecayParser.h:26