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

Merge branch 'master' into 'master'

Bug fixed in reconstruction of Endcap ToF.

See merge request !233
parents 4ff446a5 38ca1a85
No related branches found
No related tags found
1 merge request!233Bug fixed in reconstruction of Endcap ToF.
...@@ -143,17 +143,12 @@ void TofRecAlg::FindToFHits(const edm4hep::Track& _track, bool& _hasFTDHit, bool ...@@ -143,17 +143,12 @@ void TofRecAlg::FindToFHits(const edm4hep::Track& _track, bool& _hasFTDHit, bool
_Tofy = SimTHit.getPosition()[1]; _Tofy = SimTHit.getPosition()[1];
_Tofz = SimTHit.getPosition()[2]; _Tofz = SimTHit.getPosition()[2];
} }
else if( det_id == lcio::ILDDetID::FTD ){ else if( det_id == lcio::ILDDetID::ETD ){
const int cellID = SimTHit.getCellID(); _Toft = SimTHit.getTime();
encoder.setValue(cellID); _Tofx = SimTHit.getPosition()[0];
int layer = encoder[lcio::ILDCellID0::layer]; _Tofy = SimTHit.getPosition()[1];
if(layer==4){ _Tofz = SimTHit.getPosition()[2];
_Toft = SimTHit.getTime(); _hasFTDHit = true;
_Tofx = SimTHit.getPosition()[0]; }//find etd hit
_Tofy = SimTHit.getPosition()[1];
_Tofz = SimTHit.getPosition()[2];
_hasFTDHit = true;
}//find ftd hit
}//find ftd hit
}//end track hits loop }//end track hits loop
} }
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