Skip to content

Commit

Permalink
do not drop tracks in RefitProcessor
Browse files Browse the repository at this point in the history
    - ensures that the output collection has the same number of entries
      in the same order as the input collection
    - needed to idenify/compar refitted tracks
  • Loading branch information
gaede committed Aug 21, 2019
1 parent 26f948c commit 166ffb0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions source/Refitting/src/RefitProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,10 @@ void RefitProcessor::processEvent( LCEvent * evt ) {

if( error != IMarlinTrack::success || refittedTrack->getNdf() < 0 ) {

streamlog_out(MESSAGE) << "::createTrack: EVENT: << " << evt->getEventNumber()
<< " >> Track fit returns error code " << error << " NDF = " << refittedTrack->getNdf()
<< ". Number of hits = "<< trkHits.size() << std::endl;
streamlog_out(DEBUG6) << "in event << " << evt->getEventNumber()
<< " >> track refit returns error code " << error << "; NDF = " << refittedTrack->getNdf()
<< ". Number of hits = "<< trkHits.size() << std::endl ;

//fg: to write out also incomplete tracks comment this out
delete refittedTrack;
continue ;
}


Expand Down Expand Up @@ -343,10 +340,7 @@ void RefitProcessor::processEvent( LCEvent * evt ) {
marlinTrk->getHitsInFit(hits_in_fit);

if( hits_in_fit.size() < 3 ) {
streamlog_out(DEBUG3) << "RefitProcessor: Less than 3 hits in fit: Track Discarded. Number of hits = " << trkHits.size() << std::endl;
delete marlinTrk ;
delete refittedTrack;
continue ;
streamlog_out(DEBUG6) << "RefitProcessor: Less than 3 hits in fit: number of hits = " << trkHits.size() << std::endl;
}


Expand Down

0 comments on commit 166ffb0

Please sign in to comment.