7 coeFileName(iConfig.getUntrackedParameter<
std::
string>(
"coeFileName",
"")),
9 ntracksmax(iConfig.getUntrackedParameter<unsigned
int>(
"ntracksmax")),
11 debug_(iConfig.getUntrackedParameter<
int>(
"debug", 0)) {
20 char depth_width[256];
23 "; of depth=%i, and width=%i. In this case, values are specified\n",
26 std::vector<std::string> vheader = {
"; Sample memory initialization file for Dual Port Block Memory,\n",
31 "; This .COE file specifies the contents for a block memory\n",
33 "; in binary format.\n",
34 "memory_initialization_radix=2;\n",
35 "memory_initialization_vector=\n"};
36 for (uint32_t
i = 0;
i < vheader.size(); ++
i)
37 fprintf(
file,
"%s", vheader[
i].c_str());
42 bool has_track =
false;
43 for (
unsigned int irow = 0; irow <
ntracksmax; irow++) {
44 for (
unsigned int icol = 0; icol <
regions.size(); icol++) {
52 current_track =
regions[icol].track[irow];
99 printf(
"region: eta=[%f,%f] phi=%f+/-%f\n",
104 printf(
"l1t::PFTrack (pT,eta,phi) [float] = (%f,%f,%f)\n",
105 current_track.
src->
p4().Pt(),
106 current_track.
src->
p4().Eta(),
107 current_track.
src->
p4().Phi());
108 printf(
"l1t::PFTrack (pT,eta,phi) [int] = (%i,%i,%i)\n",
112 printf(
"l1tpf_impl::PropagatedTrack (1/pT,eta,phi) [int,10] = (%i,%i,%i)\n",
116 printf(
"l1tpf_impl::PropagatedTrack (1/pT,eta,phi) [int,2] = (%s,%s,%s)\n",
117 std::bitset<16>(current_track.
hwPt).to_string().c_str(),
118 std::bitset<32>(current_track.
hwVtxEta).to_string().c_str(),
119 std::bitset<32>(current_track.
hwVtxPhi).to_string().c_str());