| 1 |
// |
| 2 |
// FCaloCALIBSCAN.cc -- standalone program to call the FCaloCALIBSCAN macro. |
| 3 |
// by Emiliano Mocchiutti |
| 4 |
// |
| 5 |
// Version 1.00 (2006/03/08) |
| 6 |
// |
| 7 |
// Changelog: |
| 8 |
// |
| 9 |
// 0.00 - 1.00 : working. |
| 10 |
// |
| 11 |
#include <TString.h> |
| 12 |
#include <iostream> |
| 13 |
// |
| 14 |
#include <FCaloCALIBSCANfun.h> |
| 15 |
extern void info(); |
| 16 |
using namespace std; |
| 17 |
// |
| 18 |
int main(int numinp, char *inps[]){ |
| 19 |
TString name; |
| 20 |
TString list; |
| 21 |
if ( numinp != 3 ){ |
| 22 |
if ( numinp > 1 ){ |
| 23 |
if ( !strcmp(inps[1],"--version") ){ |
| 24 |
info(); |
| 25 |
return(0); |
| 26 |
}; |
| 27 |
}; |
| 28 |
printf("\nUsage:\n\n FCaloCALIBSCAN file list \n"); |
| 29 |
printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000.root \n"); |
| 30 |
printf( " - list text file containing a list of file in the format dw_000000_00000.root \n"); |
| 31 |
printf( " if a list is given file becomes the directory where to find files. \n"); |
| 32 |
printf("\nExample: \n\nFCaloCALIBSCAN /home/pamela/filesfromyoda/ mylist.txt \n\n"); |
| 33 |
// |
| 34 |
return(0); |
| 35 |
} else { |
| 36 |
printf("\n Welcome to FCaloCALIBSCAN! \n"); |
| 37 |
name = (TString)inps[1]; |
| 38 |
list = (TString)inps[2]; |
| 39 |
}; |
| 40 |
// |
| 41 |
FCaloCALIBSCAN(name,list); |
| 42 |
// |
| 43 |
return(0); |
| 44 |
} |