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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 23 11:24:02 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 // CaloPLANES.cc -- standalone program to call the CaloPLANES 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 #include <stdlib.h>
14 #include <FCaloPLANESfun.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 TString parity;
23 TString view;
24 int plane;
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 FCaloPLANES file view parity plane fromevent toevent outDir figformat \n");
35 printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
36 printf( " - view can be both, x or y\n");
37 printf( " - parity can be both, odd or even \n");
38 printf( " - plane plane number [1,11], 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\nFCaloPLANES /home/pamela/filesfromyoda/dw_050301_00100/ both both 0 0 0 /home/pamela/ ps \n\n");
44 return(0);
45 //
46 } else {
47 printf("\n Welcome to FCaloPLANES! \n");
48 name = (TString)inps[1];
49 view = (TString)inps[2];
50 parity = (TString)inps[3];
51 plane = 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 FCaloPLANES(name,view,parity,plane,fromevent,toevent,outdir,figty);
59 //
60 return(0);
61 }

  ViewVC Help
Powered by ViewVC 1.1.23