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

Annotation of /calo/flight/FUTILITIES/src/FCaloMATRA.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     // 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 <FCaloMATRAfun.h>
14     extern void info();
15     using namespace std;
16     //
17     int main(int numinp, char *inps[]){
18     TString name;
19     TString tyhist;
20     TString outdir;
21     TString format;
22     int from;
23     int to;
24     if ( numinp != 7 ){
25     if ( numinp > 1 ){
26     if ( !strcmp(inps[1],"--version") ){
27     info();
28     return(0);
29     };
30     };
31     printf("\nUsage:\n\n FCaloMATRA file from to plot_format output_directory figure_format \n");
32     printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
33     printf( " - from from event (progressive number), 0 = all \n");
34     printf( " - to to event (progressive number), 0 = all \n");
35     printf( " - plot_format can be box or lego \n");
36     printf( " - output_directory where to store figures \n");
37     printf( " - figure format any format recognized by ROOT (eps,gif,...)\n");
38     printf("\nExample: \n\nFCaloMATRA /home/pamela/filesfromyoda/dw_050301_00100/ 0 0 box /tmp/ eps \n\n");
39     return(0);
40     //
41     } else {
42     printf("\n Welcome to FCaloMATRA! \n");
43     name = (TString)inps[1];
44     from = atoi(inps[2]);
45     to = atoi(inps[3]);
46     tyhist = (TString)inps[4];
47     outdir = (TString)inps[5];
48     format = (TString)inps[6];
49     };
50     //
51     FCaloMATRA(name,from,to,tyhist,outdir,format);
52     //
53     return(0);
54     }

  ViewVC Help
Powered by ViewVC 1.1.23