/[PAMELA software]/quicklook/calo/FQLOOK/src/FCaloQLOOK.cc
ViewVC logotype

Annotation of /quicklook/calo/FQLOOK/src/FCaloQLOOK.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Thu Mar 9 16:14:33 2006 UTC (18 years, 9 months ago) by mocchiut
Branch: FQLOOK
CVS Tags: start, v1r01
Changes since 1.1: +0 -0 lines
First calorimeter flight quick look release

1 mocchiut 1.1 //
2     // FCaloQLOOK.cc -- standalone program to call the FCaloQLOOK macro.
3     // by Emiliano Mocchiutti
4     //
5     // Version 1.00 (2005/02/28)
6     //
7     // Changelog:
8     //
9     // 0.00 - 1.00 : working.
10     //
11     #include <TString.h>
12     #include <iostream>
13     //
14     extern void FCaloQLOOK(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 FCaloQLOOK 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\nFCaloQLOOK /home/pamela/filesfromyoda/dw_050301_00100/ 0 0 /tmp/ eps \n\n");
38     return(0);
39     //
40     } else {
41     printf("\n Welcome to FCaloQLOOK! \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     FCaloQLOOK(name,fromev,toev,outdir,format);
50     //
51     return(0);
52     }

  ViewVC Help
Powered by ViewVC 1.1.23