/[PAMELA software]/DarthVader/src/DarthVader.cpp
ViewVC logotype

Diff of /DarthVader/src/DarthVader.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by mocchiut, Wed Sep 6 11:03:34 2006 UTC revision 1.10 by mocchiut, Thu Sep 7 08:50:38 2006 UTC
# Line 38  void usage(){ Line 38  void usage(){
38    printf("\n            [-host host] [-user username] [-psw password] [+-all] [+-detector [ detector options ] ]\n");    printf("\n            [-host host] [-user username] [-psw password] [+-all] [+-detector [ detector options ] ]\n");
39    printf("\n --version       print informations about compilation and exit\n");    printf("\n --version       print informations about compilation and exit\n");
40    printf("\n -h | --help     print this help and exit \n");    printf("\n -h | --help     print this help and exit \n");
41    printf("\n -v | --verbose  be verbose [default: print nothing on STDOUT]\n");    printf("\n -v | --verbose  be verbose [default]\n");
42      printf("\n -s | --silent   print nothing on STDOUT]\n");
43    printf("\n -idRun          ID_RUN: ID number of the run to be processed \n");    printf("\n -idRun          ID_RUN: ID number of the run to be processed \n");
44    printf("\n -processFile    output filename [default ID_RUN.Level2.root]\n");    printf("\n -processFile    output filename [default ID_RUN.Level2.root]\n");
45    printf("\n -host           name for the host [default = mysql://localhost/pamelaprod]\n");    printf("\n -host           name for the host [default = $PAM_DBHOST or mysql://localhost/pamelaprod]\n");
46    printf("\n -user           username for the DB [default = anonymous] \n");    printf("\n -user           username for the DB [default = $PAM_DBUSER or \"anonymous\"] \n");
47    printf("\n -psw            password for the DB [default = \"\"]\n");    printf("\n -psw            password for the DB [default = $PAM_DBPSW or \"\"]\n");
48    printf("\n +all | +ALL     call all detectors software [default]\n");    printf("\n +all | +ALL     call all detectors software [default]\n");
49    printf("\n -all | -ALL     call nothing\n");    printf("\n -all | -ALL     call nothing\n");
50    printf("\n +detector       process detector; detector can be: TOF,TRK,CAL,TRG,ORB,S4,ND,AC,RUN\n");    printf("\n +detector       process detector; detector can be: TOF,TRK,CAL,TRG,ORB,S4,ND,AC,RUN\n");
# Line 78  int main(int numinp, char *inps[]){ Line 79  int main(int numinp, char *inps[]){
79    Int_t NDSGN = 0;    Int_t NDSGN = 0;
80    //    //
81    Bool_t debug = false;    Bool_t debug = false;
82    Bool_t beverbose = false;    Bool_t beverbose = true;
83    Bool_t givenid = false;    Bool_t givenid = false;
84    Bool_t CAL = true;    Bool_t CAL = true;
85    Bool_t TRK = true;    Bool_t TRK = true;
# Line 121  int main(int numinp, char *inps[]){ Line 122  int main(int numinp, char *inps[]){
122    TString user = "anonymous";    TString user = "anonymous";
123    TString psw = "";    TString psw = "";
124    //    //
125      //
126      const char *pamdbhost=gSystem->Getenv("PAM_DBHOST");
127      const char *pamdbuser=gSystem->Getenv("PAM_DBUSER");
128      const char *pamdbpsw=gSystem->Getenv("PAM_DBPSW");
129      if ( strcmp(pamdbhost,"") ) host = pamdbhost;
130      if ( strcmp(pamdbuser,"") ) user = pamdbuser;
131      if ( strcmp(pamdbpsw,"") ) psw = pamdbpsw;
132      //
133      //
134    TFile *processFile = 0;    TFile *processFile = 0;
135    //    //
136    // Checking input parameters    // Checking input parameters
# Line 197  int main(int numinp, char *inps[]){ Line 207  int main(int numinp, char *inps[]){
207            found = true;            found = true;
208            beverbose = true;            beverbose = true;
209          };          };
210            if ( !strcmp(inps[i],"-s") || !strcmp(inps[i],"--silent") ){
211              found = true;
212              beverbose = false;
213            };
214          //          //
215          if ( !strcmp(inps[i],"-g") || !strcmp(inps[i],"--debug") ){          if ( !strcmp(inps[i],"-g") || !strcmp(inps[i],"--debug") ){
216            debug = true;            debug = true;
# Line 566  int main(int numinp, char *inps[]){ Line 580  int main(int numinp, char *inps[]){
580      case -8:   message += " No Header branch in LEVEL0 Physics tree"; break;      case -8:   message += " No Header branch in LEVEL0 Physics tree"; break;
581      case -9:   message += " No Registry branch in LEVEL0 Physics tree"; break;      case -9:   message += " No Registry branch in LEVEL0 Physics tree"; break;
582      case -11:  message += " LEVEL0 Physics tree is empty"; break;      case -11:  message += " LEVEL0 Physics tree is empty"; break;
583      case -12:  message += " Too few entries in the registry tree"; break;      case -12:  message += " Too few entries in the tree"; break;
584      case -13:  message += " Cannot create processFolder directory"; break;      case -13:  message += " Cannot create processFolder directory"; break;
585      case -14:  message += " Error querying the DB"; break;      case -14:  message += " Error querying the DB"; break;
586      case -15:  message += " Cannot open file for writing"; break;      case -15:  message += " Cannot open file for writing"; break;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.23