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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Mar 22 15:07:48 2006 UTC (18 years, 8 months ago) by mocchiut
Branch: MAIN
Branch point for: FUTILITIES
Initial revision

1 //
2 // CaloMIP.cc -- standalone program to call the CaloMIP macro.
3 // by Emiliano Mocchiutti
4 //
5 // Version 1.00 (2005/11/07)
6 //
7 // Changelog:
8 //
9 // 0.00 - 1.00 : working.
10 //
11 #include <TString.h>
12 #include <iostream>
13 //
14 #include <FCaloMIPfun.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 figty;
22 int view;
23 int plane;
24 int strip;
25 int fromevent;
26 int toevent;
27 if ( numinp != 9 ){
28 if ( numinp > 1 ){
29 if ( !strcmp(inps[1],"--version") ){
30 info();
31 return(0);
32 };
33 };
34 printf("\nUsage:\n\n FCaloMIP file view plane strip fromevent toevent outDir figformat \n");
35 printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
36 printf( " - view 0 = both views, 1 = x-view, 2 = y-view \n");
37 printf( " - plane plane number, 0 = all \n");
38 printf( " - strip strip number, 0 = all \n");
39 printf( " - fromevent first event to process (progressive number), 0 = first \n");
40 printf( " - toevent last event to process (progressive number), 0 = last \n");
41 printf( " - outDir directory where to save figures\n");
42 printf( " - figformat format to save figures (eps,ps,root,...) \n");
43 printf("\nExample: \n\nFCaloMIP /home/pamela/filesfromyoda/dw_050301_00100/ 0 0 0 0 0 /home/pamela/ ps \n\n");
44 //
45 return(0);
46 } else {
47 printf("\n Welcome to FCaloMIP! \n");
48 name = (TString)inps[1];
49 view = atoi(inps[2]);
50 plane = atoi(inps[3]);
51 strip = atoi(inps[4]);
52 fromevent = atoi(inps[5]);
53 toevent = atoi(inps[6]);
54 outdir = (TString)inps[7];
55 figty = (TString)inps[8];
56 };
57 //
58 FCaloMIP(name,view,plane,strip,fromevent,toevent,outdir,figty);
59 //
60 return(0);
61 }

  ViewVC Help
Powered by ViewVC 1.1.23