Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHPy6GenTrigger.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHPy6GenTrigger.C
1 #include "PHPy6GenTrigger.h"
2 
3 #include <iterator>
4 
5 using namespace std;
6 
7 //__________________________________________________________
9  _verbosity(0),
10  _name(name) {}
11 
12 //__________________________________________________________
14 
16 
17  vector<int> theVec;
18  stringstream ss(s);
19  int i;
20  while (ss >> i) {
21  theVec.push_back(i);
22  if (ss.peek() == ',' ||
23  ss.peek() == ' ' ||
24  ss.peek() == ':' ||
25  ss.peek() == ';') ss.ignore();
26  }
27 
28  return theVec;
29 }