/[PAMELA software]/calo/flight/FUTILITIES/src/FCaloCHECKCRC.cc
ViewVC logotype

Contents of /calo/flight/FUTILITIES/src/FCaloCHECKCRC.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jun 30 12:08:16 2006 UTC (18 years, 5 months ago) by mocchiut
Branch: MAIN
CVS Tags: v1r03, HEAD
Added FCaloCHECKCRC utility

1 //
2 // Version 1.00 (2005/08/16)
3 //
4 // Changelog:
5 //
6 // 0.00 - 1.00 : working.
7 //
8 #include <TString.h>
9 #include <iostream>
10 #include <FCaloCHECKCRCfun.h>
11 extern void info();
12 using namespace std;
13 //
14 int main(int numinp, char *inps[]){
15 TString name1;
16 TString name2;
17 if ( numinp != 3 ){
18 if ( numinp > 1 ){
19 if ( !strcmp(inps[1],"--version") ){
20 info();
21 return(0);
22 };
23 };
24 printf("\nUsage:\n\n FCaloCHECKCRC filename1 filename2 \n");
25 printf("\n - filename1 must be in the form: /path/to/filesfromyoda/dw_000000_00000.root \n");
26 printf( " - filename2 must be in the form: /path/to/filesfromyoda/dw_000000_00000.root \n");
27 printf("\nExample: \n\nFCaloCHECKCRC /home/pamela/filesfromyoda/dw_050301_00100.root /home/pamela/filesfromyoda/dw_050301_00101.root\n\n");
28 return(0);
29 //
30 } else {
31 printf("\n Welcome to FCaloCHEKCRC! \n");
32 name1 = (TString)inps[1];
33 name2 = (TString)inps[2];
34 };
35 //
36 int ERR = FCaloCHECKCRC(name1,name2);
37 //
38 return(ERR);
39 }

  ViewVC Help
Powered by ViewVC 1.1.23