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

Annotation of /calo/flight/FUTILITIES/src/FCaloTRKCALOALIG.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Mar 22 15:07:48 2006 UTC (18 years, 8 months ago) by mocchiut
Branch point for: FUTILITIES, MAIN
Initial revision

1 mocchiut 1.1 //
2     // CaloTRKCALOALIG.cc -- standalone program to call the CaloTRKCALOALIG 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 FCaloTrackerAlignmentRT(TString);
15     extern void info();
16     using namespace std;
17     //
18     int main(int numinp, char *inps[]){
19     TString name;
20     if ( numinp < 3 ){
21     if ( numinp == 2 ){
22     if ( !strcmp(inps[1],"--version") ){
23     info();
24     return(0);
25     };
26     if ( !strcmp(inps[1],"-h") || !strcmp(inps[1],"--help") ){
27     printf("\nUsage:\n\n FCaloTRKCALOALIG file \n");
28     printf("\n - file must be in the form: /path/to/filesfromyoda/dw_000000_00000/ \n");
29     printf("\nExample: \n\nFCaloTRKCALOALIG /home/pamela/filesfromyoda/dw_050301_00100/ \n\n");
30     return(0);
31     };
32     };
33     printf("\n Welcome to FCaloTRKCALOALIG! \n");
34     name = (TString)inps[1];
35     if ( numinp == 1 ){
36     printf("\n Welcome to FCaloTRKCALOALIG! \n");
37     //
38     printf("\n You must provide the following input parameters: \n\n");
39     //
40     char input[256];
41     //
42     printf(" Path to YODA unpacked file: \n ");
43     cin.getline(input,256);
44     name = (TString)input;
45     };
46     };
47     //
48     FCaloTrackerAlignmentRT(name);
49     //
50     return(0);
51     }

  ViewVC Help
Powered by ViewVC 1.1.23