Skip to content
Snippets Groups Projects
Commit 62329a7b authored by FU Chengdong's avatar FU Chengdong
Browse files

fix fatal while NHits=0

parent d878fe64
No related branches found
No related tags found
No related merge requests found
......@@ -147,24 +147,23 @@ StatusCode PlanarDigiAlg::execute()
auto SimTHit = STHcol->at( 0 ) ;
encoder.setValue(SimTHit.getCellID()) ;
det_id = encoder[lcio::ILDCellID0::subdet] ;
}
if ( det_id == lcio::ILDDetID::VXD ){}
else if( det_id == lcio::ILDDetID::SIT ){}
else if( det_id == lcio::ILDDetID::SET ){}
else if( det_id == lcio::ILDDetID::FTD ){}
else {
fatal() << "unsupported detector ID = " << det_id
<< ": file " << __FILE__ << " line " << __LINE__
<< endmsg;
return StatusCode::FAILURE;
if ( det_id == lcio::ILDDetID::VXD ){}
else if( det_id == lcio::ILDDetID::SIT ){}
else if( det_id == lcio::ILDDetID::SET ){}
else if( det_id == lcio::ILDDetID::FTD ){}
else {
fatal() << "unsupported detector ID = " << det_id << " CellID = " << SimTHit.getCellID()
<< ": file " << __FILE__ << " line " << __LINE__
<< endmsg;
return StatusCode::FAILURE;
}
}
//smearing
debug() << " processing collection " << _inColHdl.fullKey()
<< " with " << nSimHits << " hits ... " << endmsg ;
int i = 0;
for( auto SimTHit : *STHcol ) {
......
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