/[PAMELA software]/DarthVader/S4Level2/src/S4Core.cpp
ViewVC logotype

Diff of /DarthVader/S4Level2/src/S4Core.cpp

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

revision 1.1 by mocchiut, Fri May 19 13:15:26 2006 UTC revision 1.3 by mocchiut, Fri Aug 4 10:31:31 2006 UTC
# Line 307  int S4Core(ULong64_t run, TFile *file, T Line 307  int S4Core(ULong64_t run, TFile *file, T
307          //          //
308          // copy s4clone to mydec          // copy s4clone to mydec
309          //          //
310          s4 = new S4Level2();          //      s4 = new S4Level2();
311            s4->Clear();
312          memcpy(&s4,&s4clone,sizeof(s4clone));          memcpy(&s4,&s4clone,sizeof(s4clone));
313          //          //
314          // Fill entry in the new tree          // Fill entry in the new tree
# Line 471  int S4Core(ULong64_t run, TFile *file, T Line 472  int S4Core(ULong64_t run, TFile *file, T
472        //        //
473        // start processing        // start processing
474        //        //
475        s4 = new S4Level2();        //      s4 = new S4Level2();
476          s4->Clear();
477        l0S4->GetEntry(ei);        l0S4->GetEntry(ei);
478        if (l0s4e->unpackError == 1)  continue;              if (l0s4e->unpackError == 1)  continue;      
479        s4->S4adc = l0s4e->S4_DATA;        s4->S4adc = l0s4e->S4_DATA;
# Line 514  int S4Core(ULong64_t run, TFile *file, T Line 516  int S4Core(ULong64_t run, TFile *file, T
516          //          //
517          // copy s4clone to s4          // copy s4clone to s4
518          //          //
519          s4 = new S4Level2();          //      s4 = new S4Level2();
520            s4->Clear();
521          memcpy(&s4,&s4clone,sizeof(s4clone));          memcpy(&s4,&s4clone,sizeof(s4clone));
522          //          //
523          // Fill entry in the new tree          // Fill entry in the new tree
# Line 546  int S4Core(ULong64_t run, TFile *file, T Line 549  int S4Core(ULong64_t run, TFile *file, T
549    //    //
550    if (verbose) printf("\n Exiting...\n");    if (verbose) printf("\n Exiting...\n");
551    if(S4tr)S4tr->Delete();    if(S4tr)S4tr->Delete();
552      //
553      if ( s4 ) delete s4;
554      if ( s4clone ) delete s4clone;
555      if ( glroot ) delete glroot;
556      if ( runinfo ) delete runinfo;
557      //
558    if(code < 0)  throw code;    if(code < 0)  throw code;
559    return(code);    return(code);
560  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23