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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 23 11:24:01 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 // CaloMATRA.cc -- standalone program to call the CaloMATRA macro.
3 // by Emiliano Mocchiutti
4 //
5 // Version 1.00 (2005/08/16)
6 //
7 // Changelog:
8 //
9 // 0.00 - 1.00 : working.
10 //
11 #include <TString.h>
12 #include <iostream>
13 #include <stdlib.h>
14 #include <FCaloMATRAfun.h>
15 extern void info();
16 using namespace std;
17 //
18 int main(int numinp, char *inps[]){
19 TString name;
20 TString tyhist;
21 TString outdir;
22 TString format;
23 int from;
24 int to;
25 if ( numinp != 7 ){
26 if ( numinp > 1 ){
27 if ( !strcmp(inps[1],"--version") ){
28 info();
29 return(0);
30 };
31 };
32 printf("\nUsage:\n\n FCaloMATRA file from to plot_format output_directory figure_format \n");
33 printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
34 printf( " - from from event (progressive number), 0 = all \n");
35 printf( " - to to event (progressive number), 0 = all \n");
36 printf( " - plot_format can be box or lego \n");
37 printf( " - output_directory where to store figures \n");
38 printf( " - figure format any format recognized by ROOT (eps,gif,...)\n");
39 printf("\nExample: \n\nFCaloMATRA /home/pamela/filesfromyoda/dw_050301_00100/ 0 0 box /tmp/ eps \n\n");
40 return(0);
41 //
42 } else {
43 printf("\n Welcome to FCaloMATRA! \n");
44 name = (TString)inps[1];
45 from = atoi(inps[2]);
46 to = atoi(inps[3]);
47 tyhist = (TString)inps[4];
48 outdir = (TString)inps[5];
49 format = (TString)inps[6];
50 };
51 //
52 FCaloMATRA(name,from,to,tyhist,outdir,format);
53 //
54 return(0);
55 }

  ViewVC Help
Powered by ViewVC 1.1.23