Commit 2d244bc0 authored by Sarah Seif El Nasr's avatar Sarah Seif El Nasr
Browse files

Modified latency scan to actually fill 2D latency histogram with number of...

Modified latency scan to actually fill 2D latency histogram with number of hits. And pulled from latest upstream Dev branch.
parent 73375433
......@@ -76,6 +76,8 @@ void LatencyScan::Initialize (uint32_t pStartLatency, uint32_t pLatencyRange, bo
else
cLatenciesHisto = new TH2D(cName, Form ( "Latencies FE%d; Stub Latency; Trigger Latency ;# of Events Containing a Hit", cFeId ) , 255 , 0-0.5 , 255-0.5 , 512 , 0-0.5 , 512-0.5 );
bookHistogram ( cFe, "module_latencies", cLatenciesHisto );
}
}
......@@ -143,6 +145,9 @@ void LatencyScan::ScanLatencies ( uint8_t pStartLatency, uint8_t pLatencyRange,
}
// now fill all the histograms with the information you just retrieved
TString cHistName = Form("h_module_latencies_Fe%d" , cFe->getFeId() );
TH2D* cLatenciesHisto = dynamic_cast<TH2D*> ( getHist ( cFe , cHistName.Data() ) );
cLatenciesHisto->Fill( cStubLatency , cL1Latency, cNevents_wHit ) ;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment