CMS 3D CMS Logo

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::replace
static int replace(std::string &input, const std::string &gone, const std::string &it, bool multiple)
Definition: L1MuGMTLUTHelpers.cc:29
mps_fire.i
i
Definition: mps_fire.py:428
L1MuGMTLUTHelpers::Tokenizer::Tokenizer
Tokenizer(const std::string &sep, const std::string &input)
Definition: L1MuGMTLUTHelpers.h:49
input
static const std::string input
Definition: EdmProvDump.cc:48
L1MuGMTLUTHelpers::~L1MuGMTLUTHelpers
virtual ~L1MuGMTLUTHelpers()
destructor
Definition: L1MuGMTLUTHelpers.h:41
L1MuGMTLUTHelpers::Tokenizer
Lookup Functions.
Definition: L1MuGMTLUTHelpers.h:47
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
L1MuGMTLUTHelpers
Definition: L1MuGMTLUTHelpers.h:35
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
L1MuGMTLUTHelpers::L1MuGMTLUTHelpers
L1MuGMTLUTHelpers()
constructor
Definition: L1MuGMTLUTHelpers.h:38