/[PAMELA software]/calo/flight/FQLOOK/macros/FCaloQLOOK.cxx
ViewVC logotype

Diff of /calo/flight/FQLOOK/macros/FCaloQLOOK.cxx

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

revision 1.17 by mocchiut, Thu Sep 28 19:39:00 2006 UTC revision 1.18 by mocchiut, Fri Sep 29 06:22:43 2006 UTC
# Line 1  Line 1 
1  //  //
2  //   Check for possible errors and shows raw distribution of variables coming from the DSP (no calibrations needed) - Emiliano Mocchiutti  //   Check for possible errors and shows raw distribution of variables coming from the DSP (no calibrations needed) - Emiliano Mocchiutti
3  //  //
4  //   FCaloQLOOK.c      version 1.13  (2006-09-28)  //   FCaloQLOOK.c      version 1.14  (2006-09-29)
5  //  //
6  //   The only input needed is the path to the directory created by YODA for the data file you want to analyze.  //   The only input needed is the path to the directory created by YODA for the data file you want to analyze.
7  //  //
8  //   Changelog:  //   Changelog:
9  //  //
10    //   1.13 - 1.14 (2006-09-29): Flag the last entry in the txt file, count missing section when checking for DSP entries correspondence.
11    //
12  //   1.12 - 1.13 (2006-09-28): Give wrong number of events in compress mode, fixed.  //   1.12 - 1.13 (2006-09-28): Give wrong number of events in compress mode, fixed.
13  //  //
14  //   1.11 - 1.12 (2006-09-22): Check for different number of events, put output in a file and write down errors for each event. Fixed jumpev bug.  //   1.11 - 1.12 (2006-09-22): Check for different number of events, put output in a file and write down errors for each event. Fixed jumpev bug.
# Line 96  void sighandler(UInt_t pkt_num, UInt_t o Line 98  void sighandler(UInt_t pkt_num, UInt_t o
98      printf("PSCU-Pkt N. %u - OBT %u ms\n",pkt_num,obt);      printf("PSCU-Pkt N. %u - OBT %u ms\n",pkt_num,obt);
99      printf("Total events %u\n",totev);      printf("Total events %u\n",totev);
100      printf("(ROOT-tree entry %u )\n",entry);      printf("(ROOT-tree entry %u )\n",entry);
101        if ( (totev-1) == entry ) printf("NOTICE: this is last entry! \n");
102      printf("=================================================\n");      printf("=================================================\n");
103      evdone = true;      evdone = true;
104    };    };
# Line 1305  void FCaloQLOOK(TString filename, Int_t Line 1308  void FCaloQLOOK(TString filename, Int_t
1308    //    //
1309    Bool_t redevent = true;    Bool_t redevent = true;
1310    //    //
1311    if ( ver[0][3]+ver[0][16]+ver[0][17] == ver[1][3]+ver[1][16]+ver[1][17] && ver[1][3]+ver[1][16]+ver[1][17] == ver[2][3]+ver[2][16]+ver[2][17] && ver[2][3]+ver[2][16]+ver[2][17] == ver[3][3]+ver[3][16]+ver[3][17] ){    if ( ver[0][3]+ver[0][16]+ver[0][17]+ver[0][8] == ver[1][3]+ver[1][16]+ver[1][17]+ver[1][8] && ver[1][3]+ver[1][16]+ver[1][17]+ver[1][8] == ver[2][3]+ver[2][16]+ver[2][17]+ver[2][8] && ver[2][3]+ver[2][16]+ver[2][17]+ver[2][8] == ver[3][3]+ver[3][16]+ver[3][17]+ver[3][8] ){
1312      redevent = false;      redevent = false;
1313    };    };
1314    if ( redevent ) check = true;    if ( redevent ) check = true;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.23