/[PAMELA software]/calo/ground/QLOOK/src/CaloPULSE.cc
ViewVC logotype

Contents of /calo/ground/QLOOK/src/CaloPULSE.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Mon Dec 5 16:12:47 2005 UTC (19 years ago) by mocchiut
Branch: MAIN, QLOOK
CVS Tags: start, v3r00, v3r01, HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Imported sources

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

  ViewVC Help
Powered by ViewVC 1.1.23