1 #ifndef L1GtConfigProducers_L1GtVmeWriterCore_h 2 #define L1GtConfigProducers_L1GtVmeWriterCore_h 46 void writeVME(
const std::vector<ConditionMap> &conditionMap,
60 const int &spaceLevel,
const bool setMsb=
false);
std::map< L1GtConditionType, int > type2reg_
std::string m_outputDir
output directory
L1GtVmeWriterCore(const std::string &outputDir, const std::string &vmeXmlFile)
constructor
std::map< int, int > jetObj2reg_
void writeVME(const std::vector< ConditionMap > &conditionMap, const std::map< std::string, int > &cond2intMap, const L1GtVhdlTemplateFile &header, const int spacesPerLevel=2)
std::string m_vmeXmlFile
output file
std::string closeTag(const std::string &tag)
closes xml tag
std::string calculateJetsAddress(const int &countIndex, const int &obj, const int &index)
calculates addresses for jets counts
std::map< int, int > jetType2reg_
std::string openTag(const std::string &tag)
opens a new xml tag
std::map< std::string, int > reg2hex_
std::string spaces(const unsigned int &level)
returns a string containing spaces dependant on level
~L1GtVmeWriterCore() override
destructor
std::map< L1GtObject, int > object2reg_
int condIndex2reg(const unsigned int &index)
std::string vmeAddrValueBlock(const std::string &addr, const int &val, const int &spaceLevel, const bool setMsb=false)
builds a address value block
std::string calculateAddress(const L1GtObject &obj, const L1GtConditionType &type, const std::string ®, const int &index)
calculates address