/[PAMELA software]/PamCut/CollectionActions/Histo2DActions/TofDedxVsRigHistoAction/TofDedxVsRigHistoAction.cpp
ViewVC logotype

Diff of /PamCut/CollectionActions/Histo2DActions/TofDedxVsRigHistoAction/TofDedxVsRigHistoAction.cpp

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

revision 1.1.2.3 by pam-fi, Tue Jan 3 08:45:27 2012 UTC revision 1.2 by pam-fi, Tue Jan 3 08:57:21 2012 UTC
# Line 77  void TofDedxVsRigHistoAction::OnGood(Pam Line 77  void TofDedxVsRigHistoAction::OnGood(Pam
77    static float dEdxLayer;    static float dEdxLayer;
78    static unsigned int badLayers;    static unsigned int badLayers;
79    
80    static int trkSeqNo;    int idx = 0;
   static int idx;  
   trkSeqNo = event->GetTrack(0)->GetTrkTrack()->GetSeqNo();  
81    for (int i = 0; i < event->GetToFLevel2()->ntrk(); i++) {    for (int i = 0; i < event->GetToFLevel2()->ntrk(); i++) {
82      if (event->GetToFLevel2()->GetToFTrkVar(i)->trkseqno == trkSeqNo)      if (event->GetToFLevel2()->GetToFTrkVar(i)->trkseqno == event->GetTrack(0)->GetTrkTrack()->GetSeqNo())
83        idx = i;        idx = i;
84    }    }
85    
# Line 129  void TofDedxVsRigHistoAction::OnGood(Pam Line 127  void TofDedxVsRigHistoAction::OnGood(Pam
127      else      else
128        badLayers++;        badLayers++;
129    }    }
130    if (badLayers == 0) {    if (badLayers != _nLayers) {
131      dEdx /= _nLayers;      dEdx /= _nLayers - badLayers;
132      Fill(event->GetTrack(0)->GetTrkTrack()->GetRigidity(), dEdx);      Fill(event->GetTrack(0)->GetTrkTrack()->GetRigidity(), dEdx);
133    }    }
134    else    else

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

  ViewVC Help
Powered by ViewVC 1.1.23