]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Small changes
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Nov 2010 15:30:36 +0000 (15:30 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Nov 2010 15:30:36 +0000 (15:30 +0000)
PWG2/FORWARD/analysis2/AddTaskFMD.C
PWG2/FORWARD/analysis2/AliForwardMultiplicity.h
PWG2/FORWARD/analysis2/Pass1.C
PWG2/FORWARD/analysis2/RunManager.C

index 1fa1d1ced10a99225b3e91c9b55ae3d1e014c1ac..0873fe7f8566f4ebaada538ccbc73bea5892f36e 100644 (file)
@@ -15,6 +15,7 @@ AddTaskFMD(Int_t nCutBins=1, Float_t correctionCut=0.1)
   AliForwardMultiplicity* task = new AliForwardMultiplicity("FMD");
   task->GetHistCollector().SetNCutBins(nCutBins);
   task->GetHistCollector().SetCorrectionCut(correctionCut);
+  task->SetLowFluxCut(1000);
   mgr->AddTask(task);
   
   AliFMDAnaParameters* pars = AliFMDAnaParameters::Instance();
index 2f77714f19e4f15d74fe0ee6d76df067b06fc8cf..56a38d882752b0be443b4f72d04fa1f443a9820e 100644 (file)
@@ -100,6 +100,13 @@ public:
    */
   void         Print(Option_t* option="") const;
 
+  /** 
+   * Set the number of SPD tracklets for which we consider the event a
+   * low-flux event or not .
+   * 
+   * @param c Cut (default 1000)
+   */
+  void SetLowFluxCut(Int_t c) { fLowFluxCut = c; }
   /**
    * Get reference to the SharingFilter algorithm 
    * 
index bd963ab24b88612d4157318a4ba88fbb553f9d3f..34bf28988d8c59494810050f5690551d9d63ee00 100644 (file)
@@ -12,11 +12,12 @@ void
 Pass1(const char* file="AliESDs.root", 
       Int_t       nEvents=1000, 
       Int_t       nCutBins=1, 
-      Int_t       correctionCut=0.1)
+      Int_t       correctionCut=0.1,
+      Int_t       proof)
 {
   gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/RunManager.C"); 
 
-  RunManager(file, kFALSE, nEvents, nCutBins, correctionCut);
+  RunManager(file, kFALSE, nEvents, nCutBins, correctionCut, proof);
 }
 //
 // EOF
index d8a48b65d06a3982e07f3db4ef7d3ee8eb61ddae..c67a2967da36c3a01b79568126993e099b84ece0 100644 (file)
@@ -30,13 +30,7 @@ void RunManager(const char* esd, Bool_t mc=kFALSE, Int_t nEvents=1000,
   gSystem->Load("libPWG2forward2");
 
   if (proof) { 
-    gEnv->SetValue("Proof.GlobalPackageDirs", 
-                  Form("%s:%s", 
-                       gEnv->GetValue("Proof.GlobalPackageDirs", "."), 
-                       gSystem->Getenv("ALICE_ROOT")));
-    Info("RunManager", "PAR path=%s", 
-        gEnv->GetValue("Proof.GlobalPackageDirs", "."));
-    TProof::Open("workers=1");
+    TProof::Open("workers=2");
     const char* pkgs[] = { "STEERBase", "ESD", "AOD", "ANALYSIS", 
                           "ANALYSISalice", "PWG2forward", "PWG2forward2", 0};
     const char** pkg = pkgs;
@@ -45,7 +39,6 @@ void RunManager(const char* esd, Bool_t mc=kFALSE, Int_t nEvents=1000,
       gProof->EnablePackage(*pkg);    
       pkg++;
     }
-    gProof->ShowPackages();
   }
   
   //You can expand this chain if you have more data :-)
@@ -55,6 +48,8 @@ void RunManager(const char* esd, Bool_t mc=kFALSE, Int_t nEvents=1000,
   //Creating the manager and handlers
   AliAnalysisManager *mgr  = new AliAnalysisManager("Analysis Train", 
                                                    "FMD analysis train");
+  mgr->SetDebugLevel(3);
+
   AliESDInputHandler *esdHandler = new AliESDInputHandler();
   esdHandler->SetInactiveBranches("AliESDACORDE "
                                  "AliRawDataErrorLogs "
@@ -79,7 +74,7 @@ void RunManager(const char* esd, Bool_t mc=kFALSE, Int_t nEvents=1000,
   // AOD output handler
   AliAODHandler* aodHandler   = new AliAODHandler();
   mgr->SetOutputEventHandler(aodHandler);
-  aodHandler->SetOutputFileName("foo.root");
+  aodHandler->SetOutputFileName("AliAODs.root");
     
   gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/AddTaskFMD.C");
   gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C");
@@ -98,7 +93,7 @@ void RunManager(const char* esd, Bool_t mc=kFALSE, Int_t nEvents=1000,
   }
   // Some informative output 
   mgr->PrintStatus();
-  mgr->SetUseProgressBar(kTRUE);
+  // mgr->SetUseProgressBar(kTRUE);
 
   // Write train to file - a test 
 #if 0