/[PAMELA software]/DarthVader/ToFLevel2/src/ToFLevel2.cpp
ViewVC logotype

Diff of /DarthVader/ToFLevel2/src/ToFLevel2.cpp

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

revision 1.6 by pam-fi, Fri Jul 21 11:02:28 2006 UTC revision 1.8 by mocchiut, Thu Nov 9 17:05:48 2006 UTC
# Line 76  ToFLevel2::ToFLevel2() {     Line 76  ToFLevel2::ToFLevel2() {    
76    PMT = new TClonesArray("ToFPMT",12);    PMT = new TClonesArray("ToFPMT",12);
77    ToFTrk = new TClonesArray("ToFTrkVar",2);    ToFTrk = new TClonesArray("ToFTrkVar",2);
78    //    //
79    memset(tof_j_flag, 0, 6*sizeof(Int_t));    this->Clear();
80      //
81  };  };
82    
83  void ToFLevel2::Clear(){  void ToFLevel2::Clear(){
# Line 84  void ToFLevel2::Clear(){ Line 85  void ToFLevel2::Clear(){
85    ToFTrk->Clear();    ToFTrk->Clear();
86    PMT->Clear();    PMT->Clear();
87    memset(tof_j_flag, 0, 6*sizeof(Int_t));    memset(tof_j_flag, 0, 6*sizeof(Int_t));
88      unpackError = 0;
89    //    //
90  };  };
91    
# Line 334  void ToFLevel2::GetLevel2Struct(cToFLeve Line 336  void ToFLevel2::GetLevel2Struct(cToFLeve
336    
337    l2->ntoftrk = ToFTrk->GetEntries();    l2->ntoftrk = ToFTrk->GetEntries();
338    for(Int_t j=0;j<l2->ntoftrk;j++){    for(Int_t j=0;j<l2->ntoftrk;j++){
339      l2->toftrkseqno[j]= ((ToFTrkVar*)ToFTrk->At(j))->toftrkseqno;      l2->toftrkseqno[j]= ((ToFTrkVar*)ToFTrk->At(j))->trkseqno;
340      l2->npmttdc[j]= ((ToFTrkVar*)ToFTrk->At(j))->npmttdc;      l2->npmttdc[j]= ((ToFTrkVar*)ToFTrk->At(j))->npmttdc;
341      for(Int_t i=0;i<l2->npmttdc[j];i++)      for(Int_t i=0;i<l2->npmttdc[j];i++)
342        l2->pmttdc[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->pmttdc.At(i);        l2->pmttdc[i][j] = ((ToFTrkVar*)ToFTrk->At(j))->pmttdc.At(i);

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

  ViewVC Help
Powered by ViewVC 1.1.23