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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 23 11:24:00 2014 UTC (10 years, 10 months ago) by mocchiut
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -0 lines
Compilation warnings using GCC4.7 fixed

1 //
2 // FCaloLEVEL1.cc -- standalone program to call the FCaloLEVEL1 macro.
3 // by Emiliano Mocchiutti
4 //
5 // Version 1.00 (2005/08/16)
6 //
7 // Changelog:
8 //
9 // 0.00 - 1.00 : working.
10 //
11 #include <TString.h>
12 #include <iostream>
13 #include <stdlib.h>
14 #include <FCaloLEVEL1fun.h>
15 extern void info();
16 using namespace std;
17 //
18 int main(int numinp, char *inps[]){
19 TString name;
20 TString outdir;
21 TString calibname;
22 int force;
23 if ( numinp != 5 ){
24 if ( numinp > 1 ){
25 if ( !strcmp(inps[1],"--version") ){
26 info();
27 return(0);
28 };
29 };
30 printf("\nUsage:\n\n FCaloLEVEL1 file out_dir calib_file force \n");
31 printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000.root \n");
32 printf( " - out_dir output directory \n");
33 printf( " - calib_file calibration file (if any) in the same form as 'file' \n");
34 printf( " - force force flag (0 not force/1 force) \n");
35 printf("\nExample: \n\nFCaloLEVEL1 /home/pamela/filesfromyoda/dw_050301_00100.root /tmp/ \"\" 0 \n\n");
36 return(0);
37 //
38 } else {
39 printf("\n Welcome to FCaloLEVEL1! \n");
40 name = (TString)inps[1];
41 outdir = (TString)inps[2];
42 calibname = (TString)inps[3];
43 force = atoi(inps[4]);
44 };
45 //
46 int ERR = FCaloLEVEL1(name,outdir,calibname,force);
47 //
48 return(ERR);
49 }

  ViewVC Help
Powered by ViewVC 1.1.23