/[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.2 - (show annotations) (download)
Thu Jan 23 11:24:01 2014 UTC (10 years, 10 months ago) by mocchiut
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -0 lines
Error occurred while calculating annotation data.
Compilation warnings using GCC4.7 fixed

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 <stdlib.h>
13 #include <iostream>
14 //
15 #include <FCaloMIPfun.h>
16 extern void info();
17 using namespace std;
18 //
19 int main(int numinp, char *inps[]){
20 TString name;
21 TString outdir;
22 TString figty;
23 int view;
24 int plane;
25 int strip;
26 int fromevent;
27 int toevent;
28 if ( numinp != 9 ){
29 if ( numinp > 1 ){
30 if ( !strcmp(inps[1],"--version") ){
31 info();
32 return(0);
33 };
34 };
35 printf("\nUsage:\n\n FCaloMIP file view plane strip fromevent toevent outDir figformat \n");
36 printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
37 printf( " - view 0 = both views, 1 = x-view, 2 = y-view \n");
38 printf( " - plane plane number, 0 = all \n");
39 printf( " - strip strip number, 0 = all \n");
40 printf( " - fromevent first event to process (progressive number), 0 = first \n");
41 printf( " - toevent last event to process (progressive number), 0 = last \n");
42 printf( " - outDir directory where to save figures\n");
43 printf( " - figformat format to save figures (eps,ps,root,...) \n");
44 printf("\nExample: \n\nFCaloMIP /home/pamela/filesfromyoda/dw_050301_00100/ 0 0 0 0 0 /home/pamela/ ps \n\n");
45 //
46 return(0);
47 } else {
48 printf("\n Welcome to FCaloMIP! \n");
49 name = (TString)inps[1];
50 view = atoi(inps[2]);
51 plane = atoi(inps[3]);
52 strip = atoi(inps[4]);
53 fromevent = atoi(inps[5]);
54 toevent = atoi(inps[6]);
55 outdir = (TString)inps[7];
56 figty = (TString)inps[8];
57 };
58 //
59 FCaloMIP(name,view,plane,strip,fromevent,toevent,outdir,figty);
60 //
61 return(0);
62 }

  ViewVC Help
Powered by ViewVC 1.1.23