Skip to content
Snippets Groups Projects
Verified Commit d36e1c74 authored by Tadej Novak's avatar Tadej Novak
Browse files

Fix compilation warning

parent 816e39e4
No related branches found
No related tags found
3 merge requests!59674InDetPerformanceMonitoring with LumiBlock selection,!59383cppcheck in trigger code: Prefer prefix ++/-- operators for non-primitive types.,!590062022-12-05: Daily sweep of 22.0 into master
......@@ -49,11 +49,11 @@ MUCTPISLAnyHit::execute( const std::string& name, const TObject& object, const d
{
using namespace std;
TH2 * hist;
const TH2 *hist;
//ensure that input histo is 2D
if( object.IsA()->InheritsFrom( "TH2" ) ) {
hist = (TH2*)&object;
hist = dynamic_cast<const TH2 *>(&object);
if (hist->GetDimension() != 2 ){
throw dqm_core::BadConfig( ERS_HERE, name, "dimension != 2 " );
}
......
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