ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
TruthParticleID
McParticleUtils
McParticleUtils
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
25
namespace
McUtils
{
26
typedef
std::vector<std::string>
Strings
;
27
}
28
29
class
DecayParser
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
108
inline
109
const
std::vector<McUtils::Strings>&
110
DecayParser::getParents
()
const
111
{
112
return
m_parents
;
113
}
114
115
inline
116
const
std::vector<McUtils::Strings>&
117
DecayParser::getChildren
()
const
118
{
119
return
m_children
;
120
}
121
122
#endif
//> MCPARTICLEUTILS_DECAYPARSER_H
DecayParser::getParents
const std::vector< McUtils::Strings > & getParents() const
I/O operators.
Definition
DecayParser.h:110
DecayParser::DecayParser
DecayParser()
Default constructor:
DecayParser::printMcUtilsStrings
void printMcUtilsStrings(const std::vector< McUtils::Strings > &list) const
Print the content of a vector of McUtils::Strings to std::cout.
Definition
DecayParser.cxx:145
DecayParser::dump
void dump() const
Const methods:
Definition
DecayParser.cxx:78
DecayParser::~DecayParser
virtual ~DecayParser()
Destructor:
Definition
DecayParser.cxx:71
DecayParser::DecayParser
DecayParser(const std::string &cmd)
Constructor with parameters:
Definition
DecayParser.cxx:61
DecayParser::m_parents
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
DecayParser::parse
void parse(const std::string &cmd)
Non-const methods:
Definition
DecayParser.cxx:99
DecayParser::pdgId
int pdgId(const std::string &pdgIdString) const
Definition
DecayParser.cxx:87
DecayParser::operator=
DecayParser & operator=(const DecayParser &obj)
Assignment operator:
Definition
DecayParser.cxx:172
DecayParser::DecayParser
DecayParser(const DecayParser &rhs)
Copy constructor:
DecayParser::getChildren
const std::vector< McUtils::Strings > & getChildren() const
Definition
DecayParser.h:117
DecayParser::m_children
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
McUtils
DecayParser is the class which parses and models decay patterns.
Definition
DecayParser.h:25
McUtils::Strings
std::vector< std::string > Strings
Definition
DecayParser.h:26
Generated on
for ATLAS Offline Software by
1.17.0