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

Contents of /calo/ground/QLOOK/src/CaloQLOOK.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 // CaloQLOOK.cc -- standalone program to call the CaloQLOOK 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 //
14 extern void CaloQLOOK(TString , int , int , TString , TString );
15 extern void info();
16 using namespace std;
17 //
18 int main(int numinp, char *inps[]){
19 TString name;
20 TString outdir;
21 TString format;
22 int fromev;
23 int toev;
24 if ( numinp != 6 ){
25 if ( numinp > 1 ){
26 if ( !strcmp(inps[1],"--version") ){
27 info();
28 return(0);
29 };
30 };
31 printf("\nUsage:\n\n CaloQLOOK file from_event to_event output_dir figure_format \n");
32 printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
33 printf( " - from_event is an integer (progressive number) \n");
34 printf( " - to_event is an integer (progressive number) \n");
35 printf( " - output_dir directory where to store figures \n");
36 printf( " - figure format any format recognized by ROOT (eps,gif,...)\n");
37 printf("\nExample: \n\nCaloQLOOK /home/pamela/filesfromyoda/dw_050301_00100/ 0 0 /tmp/ eps \n\n");
38 return(0);
39 //
40 } else {
41 printf("\n Welcome to CaloQLOOK! \n");
42 name = (TString)inps[1];
43 fromev = atoi(inps[2]);
44 toev = atoi(inps[3]);
45 outdir = (TString)inps[4];
46 format = (TString)inps[5];
47 };
48 //
49 CaloQLOOK(name,fromev,toev,outdir,format);
50 //
51 return(0);
52 }

  ViewVC Help
Powered by ViewVC 1.1.23