]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
New version of train macro and configuration
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 19 Nov 2009 09:28:08 +0000 (09:28 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 19 Nov 2009 09:28:08 +0000 (09:28 +0000)
ANALYSIS/macros/AnalysisTrainNew.C
ANALYSIS/macros/ConfigTrain.C

index 399e47a5a87c6ca66e911a7a2e90830a65bcd2a1..7f7e0584b68e8c898c7b8f8788b2c56a961f6782 100644 (file)
@@ -16,7 +16,7 @@
 //    root[1] AnalysisTrainNew(ana_mode, plugin_mode, "train_default_<date>/ConfigTrain.C")
 
 //==================   TRAIN NAME   ============================================
-TString     train_name         = "LHC09a3ESD"; // *CHANGE ME* (no blancs or special characters)
+TString     train_name         = "TR004_LHC09a3ESD"; // *CHANGE ME* (no blancs or special characters)
 TString     job_tag            = "ESD+MC analysis -> AOD + delta AOD + histograms"; // *CHANGE ME*
 //==============================================================================
 
@@ -40,7 +40,7 @@ Bool_t      useProductionMode  = kTRUE;   // use the plugin in production mode
 Bool_t      usePAR             = kFALSE;  // use par files for extra libs
 Bool_t      useCPAR            = kFALSE;  // use par files for common libs
 TString     root_version       = "v20091109";  // *CHANGE ME IF MORE RECENT IN GRID*
-TString     aliroot_version    = "v4-18-09-AN";  // *CHANGE ME IF MORE RECENT IN GRID*                                          
+TString     aliroot_version    = "v4-18-10-AN";  // *CHANGE ME IF MORE RECENT IN GRID*                                          
 // Change production base directory here
 TString     alien_datadir      = "/alice/sim/PDC_08b/LHC09a3";
 // AliEn output directory. If blank will become output_<train_name>
@@ -55,7 +55,7 @@ TString     outputStorages      = "ALICE::NIHAM::File,ALICE::CNAF::SE,ALICE::FZK
 // Number of runs per master job
 Int_t       nRunsPerMaster     = 10;
 // Maximum number of files per job (gives size of AOD)
-Int_t       nFilesPerJob       = 10;
+Int_t       nFilesPerJob       = 50;
 // Set the run range
 //Int_t       run_range[2]       =  {70000, 70220};  // LHC09a4   *CHANGE ME*
 Int_t       run_range[2]       =  {90000, 90025};
@@ -85,7 +85,7 @@ Int_t       iESDfilter         = 1;      // ESD to AOD filter (barrel + muon tra
 Int_t       iMUONcopyAOD       = 0;      // Task that copies only muon events in a separate AOD (PWG3)
 Int_t       iJETAN             = 1;      // Jet analysis (PWG4) - needs ESD filter
 Int_t       iPWG4partcorr      = 1;      // Gamma-hadron correlations task (PWG4)
-Int_t       iPWG4gammaconv     = 1;      // Gamma conversion analysis (PWG4)  # NOT YET WORKING - WAITING FOR FEEDBACK #
+Int_t       iPWG4gammaconv     = 1;      // Gamma conversion analysis (PWG4)
 Int_t       iPWG4omega3pi      = 1;      // Omega to 3 pi analysis (PWG4)
 Int_t       iPWG3vertexing     = 1;      // Vertexing HF task (PWG2)
 Int_t       iPWG3hfe           = 1;      // Electrons analysis (PWG3)
@@ -97,7 +97,7 @@ Int_t        iPWG2checkcascade = 1;         // Check cascades task
 Int_t        iPWG2perfcascade  = 1;         // Check performance cascade
 Int_t        iPWG2checkv0      = 1;         // Check V0 task
 Int_t        iPWG2strange      = 1;         // Strangeness task
-Int_t       iPWG2flow          = 1;      // Flow analysis tasks (PWG2)   = crashes in AliCFManager
+Int_t       iPWG2flow          = 1;      // Flow analysis tasks (PWG2)
 Int_t       iPWG2res           = 1;      // Resonances task (PWG2)
 Int_t        iPWG2rsneff       = 1;      // Resonances efficiency
 Int_t       iPWG2kink          = 1;      // Kink analysis tasks (PWG2)
@@ -116,7 +116,8 @@ Int_t       iPWG2forward       = 1;      // FMD analysis (PWG2)
 // ### Configuration macros used for each module
 //==============================================================================
 TString     configPWG2femto    = "$ALICE_ROOT/PWG2/FEMTOSCOPY/macros/Train/Train3/ConfigFemtoAnalysis.C";
-TString     configPWG3d2h      = "$ALICE_ROOT/PWG3/vertexingHF/ConfigVertexingHF.C";
+//TString     configPWG3d2h      = "$ALICE_ROOT/PWG3/vertexingHF/ConfigVertexingHF_highmult.C";
+TString     configPWG3d2h      = "$ALICE_ROOT/PWG3/vertexingHF/ConfigVertexingHF_highmult.C";
 // Temporaries.
 TString anaPars = "";
 TString anaLibs = "";
@@ -409,11 +410,6 @@ void AnalysisTrainNew(const char *analysis_mode="grid",
       // Analysis type can be ESD, AOD, MC, ESDMC0, ESDMC1
       TString type = "AOD";
       if (!iAODanalysis) type = "ESD";
-      if (useMC) {
-         type += "MC";
-         if (!kineFromESD) type += "1";
-         else type += "0";
-      }   
       // Boolean to fill/not fill the QA histograms
       Bool_t QA = kTRUE;   
       // Boolean to use/not use weights for the Q vector
@@ -439,6 +435,7 @@ void AnalysisTrainNew(const char *analysis_mode="grid",
    // PWG3 vertexing
    if (iPWG3vertexing) {
       gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/AddTaskVertexingHF.C");
+      if (!iPWG3d2h) TFile::Cp(gSystem->ExpandPathName(configPWG3d2h.Data()), Form("%s/ConfigVertexingHF.C", train_name.Data()));
       AliAnalysisTaskSEVertexingHF *taskvertexingHF = AddTaskVertexingHF();
       if (!taskvertexingHF) ::Warning("AnalysisTrainNew", "AliAnalysisTaskSEVertexingHF cannot run for this train conditions - EXCLUDED");
    }   
@@ -1309,6 +1306,7 @@ void WriteConfig()
    out << "   iPWG2forward    = " << iPWG2forward << ";" << endl << endl;
    out << "// Configuration fot the wagons" << endl;
    out << "   configPWG2femto = \"" << configPWG2femto << "\";" << endl;
+   out << "   configPWG3d2h   = \"" << configPWG3d2h << "\";" << endl;
    out << "}" << endl;
    ::Info("AnalysisTrainNew.C::WriteConfig", "Train configuration wrote to file %s", Form("config_%s.C", train_name.Data()));
    gSystem->ChangeDirectory(cdir);
index 67a6830fbde01c4fe678ccf0e7f09677135ac4ce..3de7083f30acda7c334100f0094a4c9f04eea94c 100644 (file)
@@ -1,41 +1,42 @@
 {
-   train_name      = "train_LHC09a4ESDanalysis";
+   train_name      = "train_LHC09a3ESD";
    proof_cluster   = "alicecaf.cern.ch";
    useAFPAR        = 0;
    proof_dataset   = "/COMMON/COMMON/LHC09a4_run8100X#/esdTree";
    usePLUGIN       = 1;
    usePAR          = 0;
    useCPAR         = 0;
-   root_version    = "v5-25-02";
-   aliroot_version = "v4-18-08-AN";
-   alien_datadir   = "/alice/sim/PDC_09/LHC09a4/";
-   alien_outdir    = "/alice/sim/PDC_09/LHC09a4/analysis/ESD/pass1";
+   root_version    = "v20091109";
+   aliroot_version = "v4-18-10-AN";
+   alien_datadir   = "/alice/sim/PDC_08b/LHC09a3";
+   alien_outdir    = "/alice/sim/PDC_08b/LHC09a3/AOD";
    maxMergeFiles   = 50;
-   mergeExclude    = "AliAOD.root AliAOD.VertexingHF.root";
+   mergeExclude    = "AliAOD.root AliAOD.VertexingHF.root AliAOD.Jets.root deltaAODPartCorr.root";
    nRunsPerMaster  = 10;
-   nFilesPerJob    = 200;
-   run_range[0]    = 81655;
-   run_range[1]    = 81656;
+   nFilesPerJob    = 10;
+   run_range[0]    = 90000;
+   run_range[1]    = 90025;
    useDBG          = 0;
    useMC           = 1;
-   useTAGS         = 0;
-   useKFILTER      = 0;
+   useTAGS         = 1;
+   useKFILTER      = 1;
    useTR           = 1;
-   useCORRFW       = 0;
+   useCORRFW       = 1;
    useAODTAGS      = 0;
    saveTrain       = kFALSE;
 
    // Analysis modules
    iAODanalysis    = 0;
-   iAODhandler     = 0;
-   iESDfilter      = 0;
-   iMUONcopyAOD    = 0; 
-   iJETAN          = 0;  // AOD prod
-   iPWG4partcorr   = 0;  // AOD prod
+   iAODhandler     = 1;
+   iESDfilter      = 1;
+   iMUONcopyAOD    = 0;
+   iJETAN          = 1;
+   iPWG4partcorr   = 1;
    iPWG4gammaconv  = 1;
    iPWG4omega3pi   = 1;
-   iPWG3vertexing  = 0;  // AOD prod
+   iPWG3vertexing  = 1;
    iPWG3hfe        = 1;
+   iPWG3d2h        = 1;
    iPWG2femto      = 1;
    iPWG2spectra    = 1;
      iPWG2protons      = 1;
      iPWG2strange      = 1;
    iPWG2flow       = 1;
    iPWG2res        = 1;
+     iPWG2rsneff   = 1;
    iPWG2kink       = 1;
      iPWG2kinkESDMC    = 1;
-     iPWG2kinkres      = 1;
      iPWG2kinklikesign = 1;
+     iPWG2kinkKstarESD = 1;
+     iPWG2kinkKstarMC  = 1;
+     iPWG2kinkL1520ESD = 1;
+     iPWG2kinkL1520MC  = 1;
+     iPWG2kinkPhiESD   = 1;
+     iPWG2kinkPhiMC    = 1;
    iPWG2unicor     = 1;
    iPWG2evchar     = 1;
-   iPWG2forward    = 0;  // error
+   iPWG2forward    = 1;
 
 // Configuration fot the wagons
-   configPWG2femto = $ALICE_ROOT/PWG2/FEMTOSCOPY/macros/Train/Train3/ConfigFemtoAnalysis.C;
+   configPWG2femto = "$ALICE_ROOT/PWG2/FEMTOSCOPY/macros/Train/Train3/ConfigFemtoAnalysis.C";
+   configPWG3d2h = "$ALICE_ROOT/PWG3/vertexingHF/ConfigVertexingHF_highmult.C";
 }