/[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.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
CVS Tags: start, v1r03, v1r01
Changes since 1.1: +0 -0 lines
Flight Utilities calorimeter package 1st release

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

  ViewVC Help
Powered by ViewVC 1.1.23