]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - prod/LHC08d5/simrun.C
Removing obsolete macros
[u/mrichter/AliRoot.git] / prod / LHC08d5 / simrun.C
diff --git a/prod/LHC08d5/simrun.C b/prod/LHC08d5/simrun.C
deleted file mode 100644 (file)
index dcfcba0..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-// #define VERBOSEARGS
-// simrun.C
-{
-  // extract the run and event variables given with --run <x> --event <y>
-  int nrun = 0;
-  int nevent = 0;
-  int seed = 0;
-  char sseed[1024];
-  char srun[1024];
-  char sevent[1024];
-  sprintf(srun,"");
-  sprintf(sevent,"");
-  for (int i=0; i< gApplication->Argc();i++){
-#ifdef VERBOSEARGS
-    printf("Arg %d:  %s\n",i,gApplication->Argv(i));
-#endif
-    if (!(strcmp(gApplication->Argv(i),"--run")))
-      nrun = atoi(gApplication->Argv(i+1));
-      sprintf(srun,"%d",nrun);
-    if (!(strcmp(gApplication->Argv(i),"--event")))
-      nevent = atoi(gApplication->Argv(i+1));
-      sprintf(sevent,"%d",nevent);
-  }
-
-  seed = nrun * 100000 + nevent;
-  sprintf(sseed,"%d",seed);
-
-  if (seed==0) {
-    fprintf(stderr,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
-    fprintf(stderr,"!!!!  WARNING! Seeding variable for MC is 0          !!!!\n");
-    fprintf(stderr,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
-  } else {
-    fprintf(stdout,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
-    fprintf(stdout,"!!!  MC Seed is %d \n",seed);
-    fprintf(stdout,"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
-  }
-
-  // set the seed environment variable
-  gSystem->Setenv("CONFIG_SEED",sseed);
-  gSystem->Setenv("DC_RUN",srun);
-  gSystem->Setenv("DC_EVENT",sevent);
-  gSystem->Setenv("ALIMDC_RAWDB1","./mdc1");
-  gSystem->Setenv("ALIMDC_RAWDB2","./mdc2");
-  gSystem->Setenv("ALIMDC_TAGDB","./mdc1/tag");
-  gSystem->Setenv("ALIMDC_RUNDB","./mdc1/meta");
-  gSystem->Exec("aliroot -b -q sim.C > sim.log 2>&1");
-  gSystem->Exec("mv syswatch.log simwatch.log");
-  gSystem->Exec("aliroot -b -q rec.C > rec.log 2>&1");
-  gSystem->Exec("mv syswatch.log recwatch.log");
-  gSystem->Exec("aliroot -b -q tag.C > tag.log 2>&1");
-  gSystem->Exec("aliroot -b -q $ALICE_ROOT/STEER/CheckESD.C > check.log 2>&1");
-  gSystem->Exec("aliroot -b -q $ALICE_ROOT/STEER/CreateAODfromESD.C  > aod.log 2>&1");
-}