/[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.21 by pam-fi, Thu Jan 11 10:20:58 2007 UTC revision 1.24 by mocchiut, Wed Jan 31 16:15:55 2007 UTC
# Line 49  TrkTrack::TrkTrack(){ Line 49  TrkTrack::TrkTrack(){
49      };      };
50      clx = 0;      clx = 0;
51      cly = 0;      cly = 0;
52    //    clx = new TRefArray(6,0);
53    //    cly = new TRefArray(6,0);
54  };  };
55  //--------------------------------------  //--------------------------------------
56  //  //
# Line 79  TrkTrack::TrkTrack(const TrkTrack& t){ Line 81  TrkTrack::TrkTrack(const TrkTrack& t){
81          dedx_x[ip] = t.dedx_x[ip];          dedx_x[ip] = t.dedx_x[ip];
82          dedx_y[ip] = t.dedx_y[ip];          dedx_y[ip] = t.dedx_y[ip];
83      };      };
84      clx = new TRefArray(*(t.clx));      clx = 0;
85      cly = new TRefArray(*(t.cly));      cly = 0;
86        if(t.clx)clx = new TRefArray(*(t.clx));
87        if(t.cly)cly = new TRefArray(*(t.cly));
88                    
89  };  };
90  //--------------------------------------  //--------------------------------------
# Line 531  void TrkSinglet::Clear(){ Line 535  void TrkSinglet::Clear(){
535  //  //
536  //--------------------------------------  //--------------------------------------
537  TrkLevel2::TrkLevel2(){  TrkLevel2::TrkLevel2(){
538  //    cout <<"TrkLevel2::TrkLevel2()"<<endl;    //    cout <<"TrkLevel2::TrkLevel2()"<<endl;
539      for(Int_t i=0; i<12 ; i++){      for(Int_t i=0; i<12 ; i++){
540                  good[i] = -1;                  good[i] = -1;
541          };          };
542  //    Track    = new TClonesArray("TrkTrack");  // okkio!! memory-leak
543  //    SingletX = new TClonesArray("TrkSinglet");  //     Track    = new TClonesArray("TrkTrack");
544  //    SingletY = new TClonesArray("TrkSinglet");  //     SingletX = new TClonesArray("TrkSinglet");
545    //     SingletY = new TClonesArray("TrkSinglet");
546      Track    = 0;      Track    = 0;
547      SingletX = 0;      SingletX = 0;
548      SingletY = 0;      SingletY = 0;
# Line 547  TrkLevel2::TrkLevel2(){ Line 552  TrkLevel2::TrkLevel2(){
552  //  //
553  //  //
554  //--------------------------------------  //--------------------------------------
555    void TrkLevel2::Set(){
556        if(!Track)Track    = new TClonesArray("TrkTrack");
557        if(!SingletX)SingletX = new TClonesArray("TrkSinglet");
558        if(!SingletY)SingletY = new TClonesArray("TrkSinglet");
559    }
560    //--------------------------------------
561    //
562    //
563    //--------------------------------------
564  void TrkLevel2::Dump(){  void TrkLevel2::Dump(){
565                    
566          //          //

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.23