Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHPy6GenTrigger.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHPy6GenTrigger.cc
1 #include "PHPy6GenTrigger.h"
2 
3 #include <sstream>
4 
5 //__________________________________________________________
7  : m_Name(name)
8 {
9 }
10 
11 //__________________________________________________________
13 
15 {
16  std::vector<int> theVec;
17  std::stringstream ss(s);
18  int i;
19  while (ss >> i)
20  {
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 }