|
|
Go to the documentation of this file.
58 edm::LogInfo(
"L1GtConfigProducers") <<
"\n\nL1 GT VHDL directory: " <<
vhdlDir_ <<
"\n\n" << std::endl;
71 std::vector<ConditionMap> conditionMap = l1GtMenu->
gtConditionMap();
75 int printVerbosity = 0;
81 std::map<std::string, std::string> headerParameters;
82 std::vector<std::string> channelVector;
84 headerParameters[
"vhdl_path"] =
"/vhdllibrarypath";
85 headerParameters[
"designer_date"] =
"20.05.1986";
86 headerParameters[
"designer_name"] =
"Philipp Wagner";
87 headerParameters[
"version"] =
"2.0";
88 headerParameters[
"designer_comments"] =
"produced in CMSSW";
89 headerParameters[
"gtl_setup_name"] =
"L1Menu2007NovGR";
91 channelVector.push_back(
"-- ca1: ieg");
92 channelVector.push_back(
"-- ca2: eg");
93 channelVector.push_back(
"-- ca3: jet");
94 channelVector.push_back(
"-- ca4: fwdjet");
95 channelVector.push_back(
"-- ca5: tau");
96 channelVector.push_back(
"-- ca6: esums");
97 channelVector.push_back(
"-- ca7: jet_cnts");
98 channelVector.push_back(
"-- ca8: free");
99 channelVector.push_back(
"-- ca9: free");
100 channelVector.push_back(
"-- ca10: free");
103 if (std::filesystem::is_directory(
outputDir_)) {
104 std::cout << std::endl <<
"Ok - Output directory exists!" << std::endl;
107 std::cout << std::endl <<
"Directory: " <<
outputDir_ <<
" has been created!" << std::endl;
109 std::cout << std::endl <<
"Error while creating directory: " <<
outputDir_ <<
" !" << std::endl;
116 if (vhdlWriter.
makeFirmware(conditionMap, algorithmMap)) {
119 <<
"*********************** I'm ready ;-) **************************" << std::endl
121 <<
"You can find the firmware in dircetory: " <<
outputDir_ << std::endl
123 <<
"******************************************************************" << std::endl;
std::string vhdlDir_
templates directory
L1GtVhdlWriter(const edm::ParameterSet &)
constructor
Log< level::Info, false > LogInfo
void writeVME(const std::vector< ConditionMap > &conditionMap, const std::map< std::string, int > &cond2intMap, const L1GtVhdlTemplateFile &header, const int spacesPerLevel=2)
std::map< std::string, int > getCond2IntMap()
std::string outputDir_
output directory
void analyze(const edm::Event &, const edm::EventSetup &) override
~L1GtVhdlWriter() override
destructor
L1GtVhdlTemplateFile retrunCommonHeader()
returns the common header
bool makeFirmware(const std::vector< ConditionMap > &conditionMap, const AlgorithmMap &algorithmMap)
produces the firmware code
void buildCommonHeader(std::map< std::string, std::string > &headerParameters, const std::vector< std::string > &connectedChannels)
builds the common header for all files
T getParameter(std::string const &) const