Skip to content
Snippets Groups Projects

Minor debug updates to current Rich/RichRecTools

Merged Christopher Rob Jones requested to merge jonrob/Rec:cherry-pick-24530a52 into master
2 files
+ 25
28
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -54,6 +54,9 @@ StatusCode BackgroundEstiAvHPD::initialize()
const StatusCode sc = Rich::Rec::ToolBase::initialize();
if ( sc.isFailure() ) { return Error( "Failed to initialize base class", sc ); }
// force debug
//setProperty( "OutputLevel", MSG::VERBOSE );
// Get Rich1
DeRich1 * aRich1 = getDet<DeRich1> ( DeRichLocations::Rich1 );
@@ -158,7 +161,6 @@ void BackgroundEstiAvHPD::computeBackgrounds( const LHCb::RichRecTrack * track )
void BackgroundEstiAvHPD::fillObservedSignalMap() const
{
_ri_debug << "Filling observed signals maps" << endmsg;
// Loop over pixels
for ( auto * pixel : *richPixels() )
{
@@ -178,9 +180,6 @@ void BackgroundEstiAvHPD::fillExpectedSignalMap( const LHCb::RichRecTrack * trac
{
if ( track && !m_ignoreExpSignal )
{
_ri_debug << " -> Track " << track->key() << " " << track->inUse()
<< " " << track->currentHypothesis()
<< endmsg;
// skip tracks not in use
if ( track->inUse() )
@@ -331,18 +330,18 @@ void BackgroundEstiAvHPD::overallRICHBackgrounds() const
auto * status = const_cast<LHCb::RichRecStatus*>(richStatus());
status->setDetOverallBkg(bckEstiUpdate);
if ( msgLevel(MSG::DEBUG) )
{
for ( const auto rich : detectors() )
{
debug() << "Overall backgrounds " << rich << " " << bckEstimate[rich] << endmsg;
// loop over HPDs with signal and print the backgrounds
for ( const auto& PD : m_pdData[rich] )
{
debug() << " " << PD.first << " bkg = " << PD.second.expBackgrd << endmsg;
}
}
}
// if ( msgLevel(MSG::DEBUG) )
// {
// for ( const auto rich : detectors() )
// {
// debug() << "Overall backgrounds " << rich << " " << bckEstimate[rich] << endmsg;
// // loop over HPDs with signal and print the backgrounds
// for ( const auto& PD : m_pdData[rich] )
// {
// debug() << " " << PD.first << " bkg = " << PD.second.expBackgrd << endmsg;
// }
// }
// }
}
Loading