Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:12:34

0001 #include "PHPy6GenTrigger.h"
0002 
0003 #include <iterator>
0004 
0005 using namespace std;
0006 
0007 //__________________________________________________________
0008 PHPy6GenTrigger::PHPy6GenTrigger(const std::string &name):
0009   _verbosity(0),
0010   _name(name) {}
0011 
0012 //__________________________________________________________
0013 PHPy6GenTrigger::~PHPy6GenTrigger() {}
0014 
0015 std::vector<int> PHPy6GenTrigger::convertToInts(std::string s) {
0016   
0017   vector<int> theVec;
0018   stringstream ss(s);
0019   int i;  
0020   while (ss >> i) {
0021     theVec.push_back(i);
0022     if (ss.peek() == ',' ||
0023     ss.peek() == ' ' ||
0024     ss.peek() == ':' ||
0025     ss.peek() == ';') ss.ignore();
0026   }
0027 
0028   return theVec;
0029 }