/[PAMELA software]/DarthVader/AnticounterLevel2/src/AcCore.cpp
ViewVC logotype

Diff of /DarthVader/AnticounterLevel2/src/AcCore.cpp

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

revision 1.3 by mocchiut, Fri Jun 30 09:21:50 2006 UTC revision 1.4 by mocchiut, Fri Aug 4 10:31:24 2006 UTC
# Line 166  int AcCore(ULong64_t run, TFile *file, T Line 166  int AcCore(ULong64_t run, TFile *file, T
166    GL_ROOT *glroot = new GL_ROOT();    GL_ROOT *glroot = new GL_ROOT();
167    //GL_PARAM *glparam = new GL_PARAM();    //GL_PARAM *glparam = new GL_PARAM();
168    //    //
169      UShort_t CRCcheck[2]= {0,0};
170      UShort_t Status[2]= {0,0};
171      UShort_t Hitmap[2]= {0,0};
172      UShort_t Hitstatus[2]= {0,0};
173      UShort_t Trigger[2]  = {0,0};
174      UShort_t Trigg_old[2] = {0,0};
175      UShort_t Counter[2][16];
176      UShort_t Counter_old[2][16];
177      UShort_t Shift[2][16];
178      Int_t vec[2][16][16];
179      Int_t tmp = 0;
180      memset(vec, 0, 2*16*16*sizeof(UShort_t));
181      memset(Shift, 0, 2*16*sizeof(UShort_t));
182      memset(Counter, 0, 2*16*sizeof(UShort_t));
183      memset(Counter_old, 0, 2*16*sizeof(UShort_t));
184      //
185    // Let's start!    // Let's start!
186    //    //
187    //    //
# Line 468  int AcCore(ULong64_t run, TFile *file, T Line 484  int AcCore(ULong64_t run, TFile *file, T
484        /***********************************************/        /***********************************************/
485        // Here starts Anticounter specific code (Silvio)        // Here starts Anticounter specific code (Silvio)
486        //        //
487        UShort_t CRCcheck[2];        memset(vec, 0, 2*16*16*sizeof(UShort_t));
488        UShort_t Status[2];        memset(Shift, 0, 2*16*sizeof(UShort_t));
489        UShort_t Hitmap[2];        memset(Counter, 0, 2*16*sizeof(UShort_t));
490        UShort_t Hitstatus[2];        memset(Counter_old, 0, 2*16*sizeof(UShort_t));
491        UShort_t Trigger[2];        memset(CRCcheck, 0, 2*sizeof(UShort_t));
492        UShort_t Trigg_old[2];        memset(Status, 0, 2*sizeof(UShort_t));
493        UShort_t Counter[2][16];        memset(Hitmap, 0, 2*sizeof(UShort_t));
494        UShort_t Counter_old[2][16];        memset(Hitstatus, 0, 2*sizeof(UShort_t));
495                memset(Trigger, 0, 2*sizeof(UShort_t));
496        UShort_t Shift[2][16];        memset(Trigg_old, 0, 2*sizeof(UShort_t));
497        Int_t vec[2][16][16];        tmp = 0;
   
       Int_t tmp;  
498        //        //
499        for(Int_t gg = 0; gg < 2; gg++)        for(Int_t gg = 0; gg < 2; gg++)
500          {          {
# Line 648  int AcCore(ULong64_t run, TFile *file, T Line 662  int AcCore(ULong64_t run, TFile *file, T
662    //    //
663    if ( verbose ) printf("\n Exiting...\n");    if ( verbose ) printf("\n Exiting...\n");
664    if( ac ) ac->Delete();    if( ac ) ac->Delete();
665      //
666      if ( acl2 ) delete acl2;
667      if ( acclone ) delete acclone;
668      if ( glroot ) delete glroot;
669      if ( runinfo ) delete runinfo;
670      //
671    if(code < 0) throw code;    if(code < 0) throw code;
672    return(code);    return(code);
673  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.23