CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 <cstdlib>
29 #include <cstdio>
30 
31 // ---------------------
32 // -- Class Interface --
33 // ---------------------
34 
36 public:
39 
41  virtual ~L1MuGMTLUTHelpers(){};
42 
44 
46 
47  class Tokenizer : public std::vector<std::string> {
48  public:
49  Tokenizer(const std::string& sep, const std::string& input) {
50  size_type i = 0, j = 0;
51  while ((j = input.find(sep, i)) != std::string::npos) {
52  push_back(input.substr(i, j - i));
53  i = j + sep.size();
54  }
55  push_back(input.substr(i));
56  };
57  };
58 
59  static int replace(std::string& input, const std::string& gone, const std::string& it, bool multiple);
60 };
61 
62 #endif
L1MuGMTLUTHelpers()
constructor
virtual ~L1MuGMTLUTHelpers()
destructor
uint16_t size_type
static std::string const input
Definition: EdmProvDump.cc:47
Tokenizer(const std::string &sep, const std::string &input)
deadvectors[0] push_back({0.0175431, 0.538005, 6.80997, 13.29})
static int replace(std::string &input, const std::string &gone, const std::string &it, bool multiple)