diff --git a/Rich/RichTools/src/RichHPDHotPixelFinder.cpp b/Rich/RichTools/src/RichHPDHotPixelFinder.cpp index 4edf60be147119301aa4cf0bba667b48c187d943..d6de15cc9ea9913e12a8da4ebe690bc053111d40 100755 --- a/Rich/RichTools/src/RichHPDHotPixelFinder.cpp +++ b/Rich/RichTools/src/RichHPDHotPixelFinder.cpp @@ -101,7 +101,7 @@ void HPDHotPixelFinder::findHotPixels() _ri_verbo << " -> pixel is hot ...." << endmsg; std::ostringstream mess; HPDC.first.fillStream(mess,false); // No bits in both opt and dbg builds - mess << " (" << (unsigned int)(HPDC.first) << ") At least " + mess << " (" << HPDC.first.key() << ") At least " << 100.0*m_hotOcc << "% hot in " << m_nEventsForAverage << " events"; // make result object diff --git a/Rich/RichTools/src/RichHPDOccupancyTool.cpp b/Rich/RichTools/src/RichHPDOccupancyTool.cpp index 44a111cb0e64df06ffc45b126e2cc753234cab24..7acde74c0ebd995a081b4a108cb6272f178c45b6 100755 --- a/Rich/RichTools/src/RichHPDOccupancyTool.cpp +++ b/Rich/RichTools/src/RichHPDOccupancyTool.cpp @@ -139,9 +139,8 @@ StatusCode HPDOccupancyTool::umsUpdateRICH2() StatusCode HPDOccupancyTool::initOccMap( const Rich::DetectorType rich ) { - if ( msgLevel(MSG::VERBOSE) ) - verbose() << "Update triggered for " << rich - << " HPD average occupancies" << endmsg; + _ri_verbo << "Update triggered for " << rich + << " HPD average occupancies" << endmsg; // clear the map m_occMap[rich].clear(); @@ -160,7 +159,8 @@ StatusCode HPDOccupancyTool::initOccMap( const Rich::DetectorType rich ) try { // extract numbers from string - const LHCb::RichSmartID HPD( std::stoi( s.substr(0,slash) ) ); + const LHCb::RichSmartID::KeyType key( std::stoi( s.substr(0,slash) ) ); + const LHCb::RichSmartID HPD( key ); const double occ{ std::stod( s.substr(slash+1) ) }; // update local data map @@ -310,7 +310,7 @@ void HPDOccupancyTool::createHPDBackXML( const Rich::DetectorType rich ) const if ( d.fillCount() > m_minFills ) { std::ostringstream entry; - entry << (int)s.first << "/" << occ; // force key to be printed as a _signed_ int... + entry << (int64_t)s.first << "/" << occ; // force key to be printed as a _signed_ int... entries.push_back( entry.str() ); } } diff --git a/Rich/RichTools/src/RichHPDOccupancyTool.h b/Rich/RichTools/src/RichHPDOccupancyTool.h index 65006b8bc2f389cd64339634e49ef97682e6784a..200b7a48a593a4f35e438eb06d4203a62f8f938f 100755 --- a/Rich/RichTools/src/RichHPDOccupancyTool.h +++ b/Rich/RichTools/src/RichHPDOccupancyTool.h @@ -14,6 +14,7 @@ // STD #include +#include // from Gaudi #include "GaudiKernel/IToolSvc.h" diff --git a/Rich/RichTools/src/RichSmartIDTool.cpp b/Rich/RichTools/src/RichSmartIDTool.cpp index 6f471b7e526b51aab77290c851f13341ad743757..402ac4c4e04ac4e6fafbed823fd2c201e54f85df 100755 --- a/Rich/RichTools/src/RichSmartIDTool.cpp +++ b/Rich/RichTools/src/RichSmartIDTool.cpp @@ -183,7 +183,7 @@ Rich::SmartIDTool::smartID ( const Gaudi::XYZPoint& globalPoint, Error ( "Caught GaudiException " + excpt.tag() + " message '" + excpt.message() + "'" ); // reset smartid to an invalid one - smartid = LHCb::RichSmartID(0); + smartid = LHCb::RichSmartID( LHCb::RichSmartID::KeyType(0) ); // return failure status return false;