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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed Mar 22 15:07:48 2006 UTC (18 years, 8 months ago) by mocchiut
Branch: FUTILITIES, MAIN
CVS Tags: start, v1r03, v1r01, HEAD
Changes since 1.1: +0 -0 lines
Flight Utilities calorimeter package 1st release

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 }

  ViewVC Help
Powered by ViewVC 1.1.23