Rename to AliESDComparison.C (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Feb 2004 14:09:06 +0000 (14:09 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Feb 2004 14:09:06 +0000 (14:09 +0000)
EVGEN/TestPrimaries.C
STEER/AliESDComparison.C [moved from STEER/AliESDcomparison.C with 97% similarity]
TOF/AliTOFComparison.C
build/Makefile.icc
macros/ConfigPPR.C

index 0e66897..be9ad1e 100644 (file)
@@ -60,7 +60,8 @@ void TestPrimaries(Int_t evNumber1=0, Int_t evNumber2=0)
            Float_t eta   = -TMath::Log(TMath::Tan(theta/2.));
            Float_t y     = 0.5*TMath::Log((E+Pz+1.e-13)/(E-Pz+1.e-13));
            
-           if (child1 >= 0) continue;
+           //      if (child1 >= 0) continue;
+           if (mother > 0) continue;
            if (DataBase->GetParticle(mpart)->Charge() == 0) continue;
            Float_t wgt = 1./(Float_t ((evNumber2-evNumber1)+1.));
            thetaH->Fill(theta*180./TMath::Pi(),wgt);
similarity index 97%
rename from STEER/AliESDcomparison.C
rename to STEER/AliESDComparison.C
index aed736a..f0a59f6 100644 (file)
@@ -26,7 +26,7 @@
 extern AliRun *gAlice;
 extern TROOT *gROOT;
 
-Int_t AliESDcomparison(const Char_t *dir=".") { 
+Int_t AliESDComparison(const Char_t *dir=".") { 
    Double_t pi=0.2,pa=2;
 
    TH2F *tpcHist=(TH2F*)gROOT->FindObject("tpcHist");
@@ -227,6 +227,9 @@ Int_t AliESDcomparison(const Char_t *dir=".") {
    prFake->Draw("same");
 
    ef->Close();
+   TFile fc("AliESDComparison.root","RECREATE");
+   c1->Write();
+   fc.Close();
 
    delete rl;
 
index dce1890..0ba60c9 100644 (file)
@@ -245,6 +245,10 @@ Int_t AliTOFComparison() {
      break;
    }
 
+   TFile fc("AliTOFComparison.root","RECREATE");
+   c1->Write();
+   fc.Close();
+
    return 0;
 }
 
index fe05d8f..54fecb0 100644 (file)
@@ -2,7 +2,7 @@ PLATFORM:=linuxicc
 
 # The compilers
 CXX           = icc 
-F77          = ifc
+F77          = ifort
 CC           = icc
 
 # Global optimisation
@@ -52,7 +52,7 @@ GLIBS         = $(LIBNOVER)
 #System libraries
 SYSLIBS =
 
-EXEFLAGS+= -L/usr/local/lib -lXt -lCEPCF90 -lF90 -lPEPCF90 -lintrins
+EXEFLAGS+= -L/usr/local/lib -lXt -L/opt/intel_fc_80/lib -lifport -lifcore
 
 
 
index d2cd9e8..bdac0d3 100644 (file)
@@ -55,7 +55,22 @@ enum PprRun_t
     kHijing_jj25,  kHijing_jj50, kHijing_jj75, kHijing_jj100, kHijing_jj200, 
     kHijing_gj25,  kHijing_gj50, kHijing_gj75, kHijing_gj100, kHijing_gj200,
     kHijing_pA, kPythia6, kPythia6Jets, kD0PbPb5500, kD_TRD, kB_TRD, kJpsi_TRD,
-    kU_TRD, kPyJJ, kPyGJ
+    kU_TRD, kPyJJ, kPyGJ, kRunMax
+};
+
+const char* pprRunName[kRunMax] = {
+    "test50",
+    "kParam_8000",   "kParam_4000",  "kParam_2000", 
+    "kHijing_cent1", "kHijing_cent2", 
+    "kHijing_per1",  "kHijing_per2", "kHijing_per3", "kHijing_per4",  
+    "kHijing_per5",
+    "kHijing_jj25",  "kHijing_jj50", "kHijing_jj75", "kHijing_jj100", 
+    "kHijing_jj200", 
+    "kHijing_gj25",  "kHijing_gj50", "kHijing_gj75", "kHijing_gj100", 
+    "kHijing_gj200",
+    "kHijing_pA", "kPythia6", "kPythia6Jets", "kD0PbPb5500", "kD_TRD", 
+    "kB_TRD", "kJpsi_TRD",
+    "kU_TRD", "kPyJJ", "kPyGJ"
 };
 
 enum PprGeo_t 
@@ -80,6 +95,7 @@ static PprRun_t srun = kPythia6;
 static PprGeo_t sgeo = kHoles;
 static PprRad_t srad = kGluonRadiation;
 static PprMag_t smag = k5kG;
+static Int_t    sseed = 12345; //Set 0 to use the current time
 
 // Comment line 
 static TString  comment;
@@ -88,14 +104,18 @@ static TString  comment;
 Float_t EtaToTheta(Float_t arg);
 AliGenerator* GeneratorFactory(PprRun_t srun);
 AliGenHijing* HijingStandard();
+void ProcessEnvironmentVars();
 
 void Config()
 {
     // ThetaRange is (0., 180.). It was (0.28,179.72) 7/12/00 09:00
     // Theta range given through pseudorapidity limits 22/6/2001
 
+    // Get settings from environment variables
+    ProcessEnvironmentVars();
+
     // Set Random Number seed
-  gRandom->SetSeed(12345); //Set 0 to use the current time
+    gRandom->SetSeed(sseed);
     cout<<"Seed for random number generation= "<<gRandom->GetSeed()<<endl; 
 
 
@@ -946,6 +966,7 @@ AliGenerator* GeneratorFactory(PprRun_t srun) {
        gGener=gener;
       }
       break;
+    default: break;
     }
     return gGener;
 }
@@ -976,4 +997,20 @@ AliGenHijing* HijingStandard()
 }
 
 
+void ProcessEnvironmentVars()
+{
+    // Run type
+    if (gSystem->Getenv("CONFIG_RUN_TYPE")) {
+      for (Int_t iRun = 0; iRun < kRunMax; iRun++) {
+       if (strcmp(gSystem->Getenv("CONFIG_RUN_TYPE"), pprRunName[iRun])==0) {
+         srun = (PprRun_t)iRun;
+         cout<<"Run type set to "<<pprRunName[iRun]<<endl;
+       }
+      }
+    }
 
+    // Random Number seed
+    if (gSystem->Getenv("CONFIG_SEED")) {
+      sseed = atoi(gSystem->Getenv("CONFIG_SEED"));
+    }
+}