Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHSartreGenTrigger.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHSartreGenTrigger.cc
1 #include "PHSartreGenTrigger.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 
18 {
19  vector<int> theVec;
20  stringstream ss(s);
21  int i;
22  while (ss >> i)
23  {
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 }