ATLAS Offline Software
DecayParser.h
Go to the documentation of this file.
1 
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 
21 // STL includes
22 #include <string>
23 #include <vector>
24 
25 // fwd declare
26 struct _object;
27 typedef _object PyObject;
28 
29 namespace 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 
117 inline
118 const std::vector<McUtils::Strings>&
120 {
121  return m_parents;
122 }
123 
124 inline
125 const std::vector<McUtils::Strings>&
127 {
128  return m_children;
129 }
130 
131 #endif //> MCPARTICLEUTILS_DECAYPARSER_H
DecayParser::m_parseFct
PyObject * m_parseFct
python function to parse the input string modeling the decay pattern to look for.
Definition: DecayParser.h:93
DecayParser::parse
void parse(const std::string &cmd)
Non-const methods:
Definition: DecayParser.cxx:80
rerun_display.cmd
string cmd
Definition: rerun_display.py:67
DecayParser::operator=
DecayParser & operator=(const DecayParser &obj)
Assignment operator:
Definition: DecayParser.cxx:218
McUtils::Strings
std::vector< std::string > Strings
Definition: DecayParser.h:30
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:99
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:105
DecayParser::~DecayParser
virtual ~DecayParser()
Destructor:
Definition: DecayParser.cxx:51
DecayParser::DecayParser
DecayParser(const DecayParser &rhs)
Copy constructor:
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
PyObject
_object PyObject
Definition: DecayParser.h:26
McUtils
Definition: DecayParser.h:29
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:190
DecayParser::DecayParser
DecayParser()
Default constructor:
DecayParser::getParents
const std::vector< McUtils::Strings > & getParents() const
I/O operators.
Definition: DecayParser.h:119
DecayParser::getChildren
const std::vector< McUtils::Strings > & getChildren() const
Definition: DecayParser.h:126
DecayParser::pdgId
int pdgId(const std::string &pdgIdString) const
Definition: DecayParser.cxx:68
python.PyAthena.obj
obj
Definition: PyAthena.py:132
DecayParser::dump
void dump() const
Const methods:
Definition: DecayParser.cxx:59
PyObject
_object PyObject
Definition: IPyComponent.h:26
DecayParser
Definition: DecayParser.h:34