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

Contents of /calo/ground/QLOOK/src/CaloMATRA.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
Imported sources

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 extern void CaloMATRA(TString, int, int, TString, TString, TString);
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 CaloMATRA 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\nCaloMATRA /home/pamela/filesfromyoda/dw_050301_00100/ 0 0 box /tmp/ eps \n\n");
39 return(0);
40 //
41 } else {
42 printf("\n Welcome to CaloMATRA! \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 CaloMATRA(name,from,to,tyhist,outdir,format);
52 //
53 return(0);
54 }

  ViewVC Help
Powered by ViewVC 1.1.23