ATLAS Offline Software
Loading...
Searching...
No Matches
DecayParser.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2017 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// fwd declare
26struct _object;
27typedef _object PyObject;
28
29namespace McUtils {
30 typedef std::vector<std::string> Strings;
31}
32
34{
36 // Public methods:
38 public:
39
41 DecayParser( const std::string& cmd );
42
44 virtual ~DecayParser();
45
47 // Const methods:
49 const std::vector<McUtils::Strings>& getParents() const;
50 const std::vector<McUtils::Strings>& getChildren() const;
51
52 void dump() const;
53
54 int pdgId( const std::string& pdgIdString ) const;
55
57 // Non-const methods:
59 void parse( const std::string& cmd );
60
61
63 // Protected methods:
65 protected:
66
68 DecayParser(); //> not implemented
69
71 DecayParser( const DecayParser& rhs ); //> not implemented
72
74 DecayParser &operator=(const DecayParser &obj); //> not implemented
75
77 // Protected data:
79 protected:
80
83 void printMcUtilsStrings( const std::vector<McUtils::Strings>& list ) const;
84
86 // Protected data:
88 protected:
89
94
99 std::vector<McUtils::Strings> m_parents;
100
105 std::vector<McUtils::Strings> m_children;
106
107};
108
111//MsgStream& operator<<( MsgStream & msg, const DecayParser &obj );
112
116
117inline
118const std::vector<McUtils::Strings>&
120{
121 return m_parents;
122}
123
124inline
125const std::vector<McUtils::Strings>&
127{
128 return m_children;
129}
130
131#endif //> MCPARTICLEUTILS_DECAYPARSER_H
_object PyObject
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:99
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:
PyObject * m_parseFct
python function to parse the input string modeling the decay pattern to look for.
Definition DecayParser.h:93
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 :...
std::vector< std::string > Strings
Definition DecayParser.h:30