/[PAMELA software]/PamCut/TrkCuts/TrkChi2DeflTimeCut/TrkChi2DeflTimeCut.cpp
ViewVC logotype

Diff of /PamCut/TrkCuts/TrkChi2DeflTimeCut/TrkChi2DeflTimeCut.cpp

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

revision 1.6 by pam-fi, Fri Sep 2 16:28:17 2011 UTC revision 1.7 by pam-fi, Wed Mar 25 17:38:08 2015 UTC
# Line 8  Line 8 
8  #include "TrkChi2DeflTimeCut.h"  #include "TrkChi2DeflTimeCut.h"
9    
10  double TrkChi2DeflTimeCut::_GetChi2(PamLevel2 *event) {  double TrkChi2DeflTimeCut::_GetChi2(PamLevel2 *event) {
11    return event->GetTrack(0)->GetTrkTrack()->chi2;  //  return event->GetTrack(0)->GetTrkTrack()->chi2;
12        return (event->GetNTracks(_trkAlg)<=0 ? -1. : event->GetTrack(0,_trkAlg)->GetExtTrack()->chi2);
13  }  }
14    
15  int TrkChi2DeflTimeCut::Check(PamLevel2 *event) {  int TrkChi2DeflTimeCut::Check(PamLevel2 *event) {
# Line 16  int TrkChi2DeflTimeCut::Check(PamLevel2 Line 17  int TrkChi2DeflTimeCut::Check(PamLevel2
17    double chi2 = _GetChi2(event);    double chi2 = _GetChi2(event);
18    if (chi2 < 0.)    if (chi2 < 0.)
19      return 0;      return 0;
20    Double_t etaMod = fabs(event->GetTrack(0)->GetTrkTrack()->GetDeflection());  //   Double_t etaMod = fabs(event->GetTrack(0)->GetTrkTrack()->GetDeflection());
21    Int_t nHitX = event->GetTrack(0)->GetTrkTrack()->GetNX();  //   Int_t nHitX = event->GetTrack(0)->GetTrkTrack()->GetNX();
22      Double_t etaMod = fabs(event->GetTrack(0,_trkAlg)->GetExtTrack()->GetDeflection());
23      Int_t nHitX = event->GetTrack(0,_trkAlg)->GetExtTrack()->GetNX();
24        
25  //  cout << " nHitX " << nHitX << endl;  //  cout << " nHitX " << nHitX << endl;
26        

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23