CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTLUTHelpers.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // \class L1MuGMTLUTHelpers
10 //
11 //
12 // Author :
13 // H. Sakulin HEPHY Vienna
14 //
15 // Migrated to CMSSW:
16 // I. Mikulec
17 //
18 //--------------------------------------------------
19 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTLUTHelpers_h
20 #define L1TriggerGlobalMuonTrigger_L1MuGMTLUTHelpers_h
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 
26 #include <vector>
27 #include <string>
28 #include <stdlib.h>
29 #include <stdio.h>
30 
31 // ---------------------
32 // -- Class Interface --
33 // ---------------------
34 
36 
37  public:
40 
42  virtual ~L1MuGMTLUTHelpers() {};
43 
45 
47 
48  class Tokenizer : public std::vector<std::string> {
49  public:
51  size_type i=0, j=0;
52  while( (j=input.find(sep,i))!=std::string::npos) {
53  push_back(input.substr(i,j-i));
54  i = j+sep.size();
55  }
56  push_back(input.substr(i));
57  };
58 
59  };
60 
61  static int replace(std::string& input, const std::string& gone, const std::string& it, bool multiple);
62 };
63 
64 #endif
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
int i
Definition: DBlmapReader.cc:9
L1MuGMTLUTHelpers()
constructor
virtual ~L1MuGMTLUTHelpers()
destructor
uint16_t size_type
static std::string const input
Definition: EdmProvDump.cc:43
Tokenizer(const std::string &sep, const std::string &input)
int j
Definition: DBlmapReader.cc:9
static int replace(std::string &input, const std::string &gone, const std::string &it, bool multiple)