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