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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 23 11:24:03 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 // CaloPULSE.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 <FCaloPULSEfun.h>
15 extern void info();
16 using namespace std;
17 //
18 int main(int numinp, char *inps[]){
19 TString program;
20 TString name;
21 TString outdir;
22 TString figty;
23 int sflag;
24 if ( numinp != 6 ){
25 if ( numinp > 1 ){
26 if ( !strcmp(inps[1],"--version") ){
27 info();
28 return(0);
29 };
30 };
31 printf("\nUsage:\n\n FCaloPULSE program file outDir save_flag figformat \n");
32 printf("\n - program can be PULSE or MATRA \n");
33 printf( " - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
34 printf( " - outDir directory where to save figures\n");
35 printf( " - save_flag when 0 does not save figures, when 1 saves figures\n");
36 printf( " - figformat format to save figures (eps,ps,root,...) \n");
37 printf("\nExample: \n\nFCaloPULSE PULSE /home/pamela/filesfromyoda/dw_050301_00100/ /home/pamela/ 1 ps \n\n");
38 return(0);
39 //
40 } else {
41 printf("\n Welcome to FCaloPULSE! \n");
42 program = (TString)inps[1];
43 name = (TString)inps[2];
44 outdir = (TString)inps[3];
45 sflag = atoi(inps[4]);
46 figty = (TString)inps[5];
47 };
48 //
49 if ( !strcmp(program.Data(),"PULSE") ){
50 printf("\n Calling FCaloPULSE\n");
51 FCaloPULSE(name,outdir,sflag,figty);
52 };
53 if ( !strcmp(program.Data(),"MATRA") ){
54 printf("\n Calling FCaloPULSEMATRA\n");
55 FCaloPULSEMATRA(name,outdir,sflag,figty);
56 };
57 //
58 return(0);
59 }

  ViewVC Help
Powered by ViewVC 1.1.23