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 // $Date: 2006/05/15 13:56:02 $
12 // $Revision: 1.1 $
13 //
14 // Author :
15 // H. Sakulin HEPHY Vienna
16 //
17 // Migrated to CMSSW:
18 // I. Mikulec
19 //
20 //--------------------------------------------------
21 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTLUTHelpers_h
22 #define L1TriggerGlobalMuonTrigger_L1MuGMTLUTHelpers_h
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 
28 #include <vector>
29 #include <string>
30 #include <stdlib.h>
31 #include <stdio.h>
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
38 
39  public:
42 
44  virtual ~L1MuGMTLUTHelpers() {};
45 
47 
49 
50  class Tokenizer : public std::vector<std::string> {
51  public:
52  Tokenizer(const std::string & sep, const std::string & input){
53  size_type i=0, j=0;
54  while( (j=input.find(sep,i))!=std::string::npos) {
55  push_back(input.substr(i,j-i));
56  i = j+sep.size();
57  }
58  push_back(input.substr(i));
59  };
60 
61  };
62 
63  static int replace(std::string& input, const std::string& gone, const std::string& it, bool multiple);
64 
65  static std::string upperCase(const std::string& s);
66 
67  static std::string lowerCase(const std::string& s);
68 
69 };
70 
71 #endif
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
int i
Definition: DBlmapReader.cc:9
L1MuGMTLUTHelpers()
constructor
virtual ~L1MuGMTLUTHelpers()
destructor
uint16_t size_type
Tokenizer(const std::string &sep, const std::string &input)
static std::string lowerCase(const std::string &s)
int j
Definition: DBlmapReader.cc:9
static std::string upperCase(const std::string &s)
tuple input
Definition: collect_tpl.py:10
static int replace(std::string &input, const std::string &gone, const std::string &it, bool multiple)
string s
Definition: asciidump.py:422