Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PHPy8GenTrigger.C
Go to the documentation of this file.
1 #include "PHPy8GenTrigger.h"
2 
3 #include <Pythia8/Pythia.h>
4 
5 #include <iterator>
6 
7 using namespace std;
8 
9 //__________________________________________________________
10 PHPy8GenTrigger::PHPy8GenTrigger(const std::string &name):
11  _verbosity(0),
12  _name(name)
13  {}
14 
15 //__________________________________________________________
17 
18 std::vector<int> PHPy8GenTrigger::convertToInts(std::string s) {
19 
20  vector<int> theVec;
21  stringstream ss(s);
22  int i;
23  while (ss >> i) {
24  theVec.push_back(i);
25  if (ss.peek() == ',' ||
26  ss.peek() == ' ' ||
27  ss.peek() == ':' ||
28  ss.peek() == ';') ss.ignore();
29  }
30 
31  return theVec;
32 }
const double s
virtual ~PHPy8GenTrigger()
PHPy8GenTrigger(const std::string &name="PHPy8GenTrigger")
constructor
std::vector< int > convertToInts(std::string s)