Skip to content
Snippets Groups Projects
Commit 052cbb31 authored by Ines Ochoa's avatar Ines Ochoa :cat2: Committed by Melissa Yexley
Browse files

a couple of minor changes to fix debug output

a couple of minor changes to fix debug output
parent 6d7c32d8
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,7 @@ std::string DebugInfoCollector::toString() const {
void DebugInfoCollector::write() const{
auto report = this->toString();
std::ofstream out(m_name+".log");
out << report;
out << report;
out.close();
}
......@@ -87,6 +87,14 @@ float DipzMLPLCondition::calcLogTerm(float acml, const pHypoJet &ip,
bool DipzMLPLCondition::isSatisfied(const HypoJetVector& ips,
const std::unique_ptr<ITrigJetHypoInfoCollector>& collector) const {
if(collector){
std::stringstream ss0;
const void* address = static_cast<const void*>(this);
ss0 << "DipzMLPLCondition: (" << address << ") starts\n";
collector -> collect(ss0.str(), "");
}
auto zhat = std::accumulate(ips.begin(),
ips.end(),
0.0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment