CMS 3D CMS Logo

L1GtVhdlWriterBitManager.h
Go to the documentation of this file.
1 #ifndef L1GtConfigProducers_L1GtVhdlWriterBitManager_h
2 #define L1GtConfigProducers_L1GtVhdlWriterBitManager_h
3 
19 #include "L1GtVhdlTemplateFile.h"
20 
21 // system include files
22 
23 #include <iostream>
24 #include <fstream>
25 #include <map>
26 #include <string>
27 #include <vector>
28 
32 
34 private:
35  std::map<std::string, std::string> hex2binMap_;
36 
37 public:
39  std::string bin2hex(std::string binString);
40  std::string hex2bin(std::string hexString);
42  std::string mirror(unsigned int offset, std::string hexString, bool hexOutput = true);
43  std::string readMapInverse(const std::map<std::string, std::string> &map, std::string value);
45  std::string buildEtaMuon(const std::vector<L1GtMuonTemplate::ObjectParameter> *op,
46  const unsigned int &num,
47  const unsigned int &counter);
48  std::string buildEtaCalo(const std::vector<L1GtCaloTemplate::ObjectParameter> *op,
49  const unsigned int &num,
50  const unsigned int &counter);
52  std::string buildPhiMuon(const std::vector<L1GtMuonTemplate::ObjectParameter> *op,
53  const unsigned int &num,
54  const unsigned int &counter,
55  bool high);
56  std::string buildPhiCalo(const std::vector<L1GtCaloTemplate::ObjectParameter> *op,
57  const unsigned int &num,
58  const unsigned int &counter);
59  std::string buildPhiEnergySum(const std::vector<L1GtEnergySumTemplate::ObjectParameter> *op,
60  const unsigned int &num,
61  const unsigned int &counter);
66 };
67 #endif /*L1GtConfigProducers_L1GtVhdlWriterBitManager_h*/
counter
Definition: counter.py:1
L1GtVhdlWriterBitManager::readMapInverse
std::string readMapInverse(const std::map< std::string, std::string > &map, std::string value)
Definition: L1GtVhdlWriterBitManager.cc:61
L1GtCaloTemplate.h
L1GtVhdlWriterBitManager
Definition: L1GtVhdlWriterBitManager.h:33
L1GtVhdlWriterBitManager::buildDeltaEtaCalo
std::string buildDeltaEtaCalo(const L1GtCaloTemplate::CorrelationParameter *&cp, const unsigned int &counter)
Definition: L1GtVhdlWriterBitManager.cc:281
L1GtVhdlWriterBitManager::L1GtVhdlWriterBitManager
L1GtVhdlWriterBitManager()
Definition: L1GtVhdlWriterBitManager.cc:34
L1GtVhdlWriterBitManager::buildEtaMuon
std::string buildEtaMuon(const std::vector< L1GtMuonTemplate::ObjectParameter > *op, const unsigned int &num, const unsigned int &counter)
Definition: L1GtVhdlWriterBitManager.cc:167
L1GtMuonTemplate::CorrelationParameter
Definition: L1GtMuonTemplate.h:73
L1GtVhdlWriterBitManager::hex2binMap_
std::map< std::string, std::string > hex2binMap_
Definition: L1GtVhdlWriterBitManager.h:35
L1GtVhdlWriterBitManager::buildDeltaPhiCalo
std::string buildDeltaPhiCalo(const L1GtCaloTemplate::CorrelationParameter *&cp, const unsigned int &counter)
Definition: L1GtVhdlWriterBitManager.cc:315
L1GtVhdlWriterBitManager::buildPhiEnergySum
std::string buildPhiEnergySum(const std::vector< L1GtEnergySumTemplate::ObjectParameter > *op, const unsigned int &num, const unsigned int &counter)
Definition: L1GtVhdlWriterBitManager.cc:243
L1GtVhdlWriterBitManager::buildPhiCalo
std::string buildPhiCalo(const std::vector< L1GtCaloTemplate::ObjectParameter > *op, const unsigned int &num, const unsigned int &counter)
Definition: L1GtVhdlWriterBitManager.cc:225
L1GtCaloTemplate::CorrelationParameter
typedef for correlation parameters
Definition: L1GtCaloTemplate.h:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtVhdlWriterBitManager::buildEtaCalo
std::string buildEtaCalo(const std::vector< L1GtCaloTemplate::ObjectParameter > *op, const unsigned int &num, const unsigned int &counter)
Definition: L1GtVhdlWriterBitManager.cc:193
L1GtVhdlWriterBitManager::buildDeltaPhiMuon
std::string buildDeltaPhiMuon(const L1GtMuonTemplate::CorrelationParameter *&cp, const unsigned int &counter)
Definition: L1GtVhdlWriterBitManager.cc:365
L1GtMuonTemplate.h
value
Definition: value.py:1
L1GtVhdlWriterBitManager::buildDeltaEtaMuon
std::string buildDeltaEtaMuon(const L1GtMuonTemplate::CorrelationParameter *&cp, const unsigned int &counter)
Definition: L1GtVhdlWriterBitManager.cc:300
L1GtVhdlTemplateFile.h
L1GtVhdlWriterBitManager::buildPhiMuon
std::string buildPhiMuon(const std::vector< L1GtMuonTemplate::ObjectParameter > *op, const unsigned int &num, const unsigned int &counter, bool high)
Definition: L1GtVhdlWriterBitManager.cc:259
L1GtVhdlWriterBitManager::shiftLeft
std::string shiftLeft(std::string hexString)
Definition: L1GtVhdlWriterBitManager.cc:158
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
LaserClient_cfi.high
high
Definition: LaserClient_cfi.py:50
L1GtVhdlWriterBitManager::mirror
std::string mirror(unsigned int offset, std::string hexString, bool hexOutput=true)
Definition: L1GtVhdlWriterBitManager.cc:99
L1GtVhdlWriterBitManager::bin2hex
std::string bin2hex(std::string binString)
Definition: L1GtVhdlWriterBitManager.cc:83
L1GtEnergySumTemplate.h
L1GtVhdlWriterBitManager::hex2bin
std::string hex2bin(std::string hexString)
Definition: L1GtVhdlWriterBitManager.cc:71
L1GtVhdlWriterBitManager::capitalLetters
std::string capitalLetters(std::string hexString)
Definition: L1GtVhdlWriterBitManager.cc:137
genParticles_cff.map
map
Definition: genParticles_cff.py:11
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192