]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - prod/LHC09a11/simrun.C
Removing obsolete macros
[u/mrichter/AliRoot.git] / prod / LHC09a11 / simrun.C
diff --git a/prod/LHC09a11/simrun.C b/prod/LHC09a11/simrun.C
deleted file mode 100644 (file)
index 6386f58..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-// #define VERBOSEARGS\r
-// simrun.C\r
-{\r
-  // extract the run and event variables given with \r
-  // --run <x> --event <y> --type <t>\r
-  // where "type" can be "ppMBias" or "pptrg2mu"\r
-  int nrun = 0;\r
-  int nevent = 0;\r
-  int seed = 0;\r
-  char sseed[1024];\r
-  char srun[1024];\r
-  char sevent[1024];\r
-  char type[1024];\r
-  sprintf(srun,"");\r
-  sprintf(sevent,"");\r
-  for (int i=0; i< gApplication->Argc();i++){\r
-#ifdef VERBOSEARGS\r
-    printf("Arg %d:  %s\n",i,gApplication->Argv(i));\r
-#endif\r
-    if (!(strcmp(gApplication->Argv(i),"--run")))\r
-      nrun = atoi(gApplication->Argv(i+1));\r
-    sprintf(srun,"%d",nrun);\r
-    if (!(strcmp(gApplication->Argv(i),"--event")))\r
-      nevent = atoi(gApplication->Argv(i+1));\r
-    sprintf(sevent,"%d",nevent);\r
-    if (!(strcmp(gApplication->Argv(i),"--type")))\r
-      strcpy(type,gApplication->Argv(i+1));\r
-  }\r
-  \r
-  seed = nrun * 100000 + nevent;\r
-  sprintf(sseed,"%d",seed);\r
-  \r
-  if (seed==0) {\r
-    fprintf(stderr,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");\r
-    fprintf(stderr,"!!!!  WARNING! Seeding variable for MC is 0          !!!!\n");\r
-    fprintf(stderr,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");\r
-  } else {\r
-    fprintf(stdout,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");\r
-    fprintf(stdout,"!!!  MC Seed is %d \n",seed);\r
-    fprintf(stdout,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");\r
-  }\r
-  \r
-  gSystem->Setenv("CONFIG_SEED",sseed);\r
-  gSystem->Setenv("CONFIG_RUN_TYPE",type);\r
-  gSystem->Setenv("DC_RUN",srun);\r
-\r
-  gSystem->Setenv("ALIMDC_RAWDB1","./mdc1");\r
-  gSystem->Setenv("ALIMDC_RAWDB2","./mdc2");\r
-  gSystem->Setenv("ALIMDC_TAGDB","./mdc1/tag");\r
-  gSystem->Setenv("ALIMDC_RUNDB","./mdc1/meta");\r
-  \r
-  gSystem->Exec("cp $ALICE_ROOT/.rootrc .rootrc");\r
-  gSystem->Exec("aliroot -b -q sim.C 2>&1 | tee sim.log");\r
-  gSystem->Exec("mkdir generated");\r
-  gSystem->Exec("mv *.root generated");\r
-  gSystem->Exec("ln -s generated/geometry.root");\r
-  gSystem->Exec("ln -s generated/raw.root");\r
-  gSystem->Exec("aliroot -b -q rec.C 2>&1 | tee rec.log");\r
-  gSystem->Exec("mv galice.root galice_rec.root");\r
-  gSystem->Exec("mv generated/*.root .");\r
-  gSystem->Exec("aliroot -b -q tag.C 2>&1 | tee tag.log");\r
-  gSystem->Exec("aliroot -b -q CheckESD.C 2>&1 | tee check.log");\r
-\r
-}\r