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

Annotation of /calo/ground/QLOOK/src/CaloPLANES.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Dec 5 16:12:47 2005 UTC (19 years ago) by mocchiut
Branch point for: MAIN, QLOOK
Initial revision

1 mocchiut 1.1 //
2     // CaloPLANES.cc -- standalone program to call the CaloPLANES macro.
3     // by Emiliano Mocchiutti
4     //
5     // Version 1.00 (2005/11/07)
6     //
7     // Changelog:
8     //
9     // 0.00 - 1.00 : working.
10     //
11     #include <TString.h>
12     #include <caloclasses.h>
13     #include <iostream>
14     //
15     extern void CaloPLANES(TString, TString, TString, int, int, int, TString, TString);
16     extern void info();
17     using namespace std;
18     //
19     int main(int numinp, char *inps[]){
20     TString name;
21     TString outdir;
22     TString figty;
23     TString parity;
24     TString view;
25     int plane;
26     int fromevent;
27     int toevent;
28     if ( numinp != 9 ){
29     if ( numinp > 1 ){
30     if ( !strcmp(inps[1],"--version") ){
31     info();
32     return(0);
33     };
34     };
35     printf("\nUsage:\n\n CaloPLANES file view parity plane fromevent toevent outDir figformat \n");
36     printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
37     printf( " - view can be both, x or y\n");
38     printf( " - parity can be both, odd or even \n");
39     printf( " - plane plane number [1,11], 0 = all \n");
40     printf( " - fromevent first event to process (progressive number), 0 = first \n");
41     printf( " - toevent last event to process (progressive number), 0 = last \n");
42     printf( " - outDir directory where to save figures\n");
43     printf( " - figformat format to save figures (eps,ps,root,...) \n");
44     printf("\nExample: \n\nCaloPLANES /home/pamela/filesfromyoda/dw_050301_00100/ both both 0 0 0 /home/pamela/ ps \n\n");
45     return(0);
46     //
47     } else {
48     printf("\n Welcome to CaloPLANES! \n");
49     name = (TString)inps[1];
50     view = (TString)inps[2];
51     parity = (TString)inps[3];
52     plane = atoi(inps[4]);
53     fromevent = atoi(inps[5]);
54     toevent = atoi(inps[6]);
55     outdir = (TString)inps[7];
56     figty = (TString)inps[8];
57     };
58     //
59     CaloPLANES(name,view,parity,plane,fromevent,toevent,outdir,figty);
60     //
61     return(0);
62     }

  ViewVC Help
Powered by ViewVC 1.1.23