#include <DumpClustersDetails.h>
|
template<typename T > |
void | dumpInfos (const T &cells, const std::string &moduleType) const |
|
| DumpLegacySoA ()=default |
|
Definition at line 150 of file DumpClustersDetails.h.
◆ DumpLegacySoA()
hgcalUtils::DumpLegacySoA::DumpLegacySoA |
( |
| ) |
|
|
default |
◆ dumpInfos()
template<typename T >
void hgcalUtils::DumpLegacySoA::dumpInfos |
( |
const T & |
cells, |
|
|
const std::string & |
moduleType |
|
) |
| const |
|
inline |
Definition at line 155 of file DumpClustersDetails.h.
References hgcalTBTopologyTester_cfi::cells, corrVsCorr::filename, dqm-mbProfile::format, mps_fire::i, MainPageGenerator::l, das-up-to-nevents::outfile, and hcalRecHitTable_cff::time.
Referenced by HGCalCLUEAlgoT< TILE, STRATEGY >::makeClusters().
157 pid_t pid = getpid();
164 int random_number = 100 + rand() % 900;
166 filename <<
"RECHITS_LEGACY_" << pid <<
"_" << moduleType <<
"_" << random_number <<
".txt";
169 for (
unsigned int l = 0;
l <
cells.size();
l++) {
170 for (
unsigned int i = 0;
i <
cells.at(
l).dim1.size(); ++
i) {
172 "Idx Cell: {}, x: {:.{}f}, y: {:.{}f}, layer: {}, weight: {:.{}f}, sigmaNoise: {:.{}f}, " 173 "delta: {:.{}f}, rho: {:.{}f}, nearestHigher: {}, clsIdx: {}, isSeed: {}, detid: {}",
176 std::numeric_limits<float>::max_digits10,
178 std::numeric_limits<float>::max_digits10,
181 std::numeric_limits<float>::max_digits10,
182 (
cells.at(
l).sigmaNoise.at(
i)),
183 std::numeric_limits<float>::max_digits10,
185 std::numeric_limits<float>::max_digits10,
187 std::numeric_limits<float>::max_digits10,
188 cells.at(
l).nearestHigher.at(
i),
189 cells.at(
l).clusterIndex.at(
i),