/[PAMELA software]/PamCut/CollectionActions/RefitTrackAction/RefitTrackAction.cpp
ViewVC logotype

Diff of /PamCut/CollectionActions/RefitTrackAction/RefitTrackAction.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.5 by pam-fi, Mon Jun 7 13:49:04 2010 UTC revision 1.2 by pam-fi, Thu Jul 8 14:00:14 2010 UTC
# Line 20  void RefitTrackAction::OnGood(PamLevel2 Line 20  void RefitTrackAction::OnGood(PamLevel2
20    if (event->GetTrkLevel2()->GetNTracks() == 0)    if (event->GetTrkLevel2()->GetNTracks() == 0)
21      return;      return;
22    
23    // Reload the TRK parameters only if they have been changed (ie., if another instance of    // Reload the TRK alignment parameters only if they have been changed (ie., if another instance of
24    // this class used a different set of parameters).    // this class used a different set of parameters).
25    if (_trkParamsFile != _currTrkParamsFile) {    if (_trkParamsFile != _currTrkParamsFile) {
26      TrkParams::Set(_trkParamsFile, 5);      TrkParams::Set(_trkParamsFile, 5);
# Line 33  void RefitTrackAction::OnGood(PamLevel2 Line 33  void RefitTrackAction::OnGood(PamLevel2
33    if (!trkTrack)    if (!trkTrack)
34      return;      return;
35    
36      // Check if good clusters have meaningful energy releases
37      for (UInt_t ip = 0; ip < 6; ip++) {
38        if (trkTrack->XGood(ip) == 1 && trkTrack->GetDEDX(ip, 0) <= 0.)
39          trkTrack->xgood[ip] = 0; // Set it to bad
40        if (trkTrack->YGood(ip) == 1 && trkTrack->GetDEDX(ip, 1) <= 0.)
41          trkTrack->ygood[ip] = 0; // Set it to bad
42      }
43    
44    if (_currEvent != event->GetReadEntry()) {    if (_currEvent != event->GetReadEntry()) {
45      // Saves the original track data if the current event (recorded in the static member _currEvent) is      // Saves the original track data if the current event (recorded in the static member _currEvent) is
46      // different from the actually processed event. This way, multiple instances of the class      // different from the actually processed event. This way, multiple instances of the class

Legend:
Removed from v.1.1.2.5  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23