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 merge requests found
......@@ -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