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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.23