| 33 |
L1->SetFromLevel1Struct(); |
L1->SetFromLevel1Struct(); |
| 34 |
} |
} |
| 35 |
|
|
| 36 |
// See if the event has a track before reprocessing |
if (_reprocL2) { |
| 37 |
TrkLevel2 *trkl2 = event->GetTrkLevel2(); |
// See if the event has a track before reprocessing |
| 38 |
bool hadTrack = false; |
TrkLevel2 *trkl2 = event->GetTrkLevel2(); |
| 39 |
if (trkl2->GetTrkLevel2()->GetNTracks() > 0) |
bool hadTrack = false; |
| 40 |
hadTrack = true; |
if (trkl2->GetTrkLevel2()->GetNTracks() > 0) |
| 41 |
|
hadTrack = true; |
| 42 |
|
|
| 43 |
// Reprocess |
// Reprocess |
| 44 |
_reprocessed++; |
_reprocessed++; |
| 45 |
L1->ProcessEvent();// re-processing level1->level2 |
L1->ProcessEvent();// re-processing level1->level2 |
| 46 |
|
|
| 47 |
trkl2 = event->GetTrkLevel2(); |
trkl2 = event->GetTrkLevel2(); |
| 48 |
trkl2->Clear(); |
trkl2->Clear(); |
| 49 |
trkl2->SetFromLevel2Struct(); |
trkl2->SetFromLevel2Struct(); |
| 50 |
|
|
| 51 |
// See if we gained or lost a track; |
// See if we gained or lost a track; |
| 52 |
if (trkl2->GetNTracks() > 0) { |
if (trkl2->GetNTracks() > 0) { |
| 53 |
if (!hadTrack) { |
if (!hadTrack) { |
| 54 |
_recoveredTracks++; |
_recoveredTracks++; |
| 55 |
|
} |
| 56 |
|
} |
| 57 |
|
else if (hadTrack) { |
| 58 |
|
_lostTracks++; |
| 59 |
} |
} |
|
} |
|
|
else if (hadTrack) { |
|
|
_lostTracks++; |
|
| 60 |
} |
} |
| 61 |
} |
} |
|
|
|