/[PAMELA software]/DarthVader/TrackerLevel2/src/TrkLevel2.cpp
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/src/TrkLevel2.cpp

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

revision 1.10 by pam-fi, Thu Sep 28 14:04:39 2006 UTC revision 1.12 by mocchiut, Tue Oct 24 07:28:38 2006 UTC
# Line 11  using namespace std; Line 11  using namespace std;
11  extern "C" {      extern "C" {    
12      void dotrack_(int*, double*, double*, double*, double*, int*);      void dotrack_(int*, double*, double*, double*, double*, int*);
13      void dotrack2_(int*, double*, double*, double*, double*,double*, double*, double*,int*);      void dotrack2_(int*, double*, double*, double*, double*,double*, double*, double*,int*);
14      int  readb_(const char*);      int  readb_(const char*);
15  }  }
16  //--------------------------------------  //--------------------------------------
17  //  //
# Line 247  void TrkTrack::Clear(){ Line 247  void TrkTrack::Clear(){
247  //  //
248  //  //
249  //--------------------------------------  //--------------------------------------
250    void TrkTrack::Delete(){
251            Clear();
252            clx->Delete();
253            cly->Delete();
254    };
255            //--------------------------------------
256    //
257    //
258    //--------------------------------------
259    
260  //--------------------------------------  //--------------------------------------
261  //  //
# Line 569  void TrkLevel2::Clear(){ Line 578  void TrkLevel2::Clear(){
578  //  //
579  //  //
580  //--------------------------------------  //--------------------------------------
581    void TrkLevel2::Delete(){
582            
583            Clear();
584            Track->Delete();
585            SingletX->Delete();
586            SingletY->Delete();
587    }
588    //--------------------------------------
589    //
590    //
591    //--------------------------------------
592  /**  /**
593   * Sort physical tracks and stores them in a TObjectArray, ordering by increasing chi**2 value (in case of track image, it selects the one with lower chi**2). The total number of physical tracks is given by GetNTracks() and the it-th physical track can be retrieved by means of the method GetTrack(int it).   * Sort physical tracks and stores them in a TObjectArray, ordering by increasing chi**2 value (in case of track image, it selects the one with lower chi**2). The total number of physical tracks is given by GetNTracks() and the it-th physical track can be retrieved by means of the method GetTrack(int it).
594   * This method is overridden by PamLevel2::GetTracks(), where calorimeter and TOF information is used.   * This method is overridden by PamLevel2::GetTracks(), where calorimeter and TOF information is used.
# Line 712  Int_t TrkLevel2::GetNTracks(){ Line 732  Int_t TrkLevel2::GetNTracks(){
732                                    
733          Float_t ntot=0;          Float_t ntot=0;
734          TClonesArray &t = *Track;          TClonesArray &t = *Track;
735          for(int i=0; i<ntrk(); i++) {          for(int i=0; i<ntrk(); i++) {    
736                  if( ((TrkTrack *)t[i])->GetImageSeqNo() == -1 ) ntot+=1.;                  if( ((TrkTrack *)t[i])->GetImageSeqNo() == -1 ) ntot+=1.;
737                  else ntot+=0.5;                  else ntot+=0.5;
738          }          }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.23