small changes
authorjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 May 2010 12:28:28 +0000 (12:28 +0000)
committerjotwinow <jotwinow@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 21 May 2010 12:28:28 +0000 (12:28 +0000)
PWG1/TPC/AliPerformanceEff.cxx
PWG1/TPC/macros/LoadMyLibs.C
PWG1/macros/RunPerformanceTrain.C

index 24231c4..34f506c 100644 (file)
@@ -205,8 +205,10 @@ void AliPerformanceEff::ProcessTPC(AliMCEvent* const mcEvent, AliESDEvent *const
     labelsAllRec[iTrack]=label;\r
 \r
     // TPC only\r
-    if(IsRecTPC(track) != 0) \r
+    if(IsRecTPC(track) != 0) { \r
       labelsRec[iTrack]=label;\r
+    }\r
+\r
   }\r
 \r
   // \r
@@ -220,8 +222,8 @@ void AliPerformanceEff::ProcessTPC(AliMCEvent* const mcEvent, AliESDEvent *const
     return;\r
   }\r
 \r
-  //Int_t nPart  = stack->GetNtrack();\r
-  Int_t nPart  = stack->GetNprimary();\r
+  Int_t nPart  = stack->GetNtrack();\r
+  //Int_t nPart  = stack->GetNprimary();\r
   for (Int_t iMc = 0; iMc < nPart; ++iMc) \r
   {\r
     TParticle* particle = stack->Particle(iMc);\r
@@ -824,10 +826,12 @@ void AliPerformanceEff::Analyse()
 \r
   if(GetAnalysisMode() != 5) {\r
 \r
-  fEffHisto->GetAxis(0)->SetRangeUser(-0.9,0.9); // eta range\r
-  fEffHisto->GetAxis(2)->SetRangeUser(0.1,10.); // pt range\r
+  fEffHisto->GetAxis(0)->SetRangeUser(-0.9,0.89); // eta range\r
+  fEffHisto->GetAxis(2)->SetRangeUser(0.1,10.);   // pt range\r
+\r
 \r
   // rec efficiency vs pt\r
+  fEffHisto->GetAxis(3)->SetRangeUser(0.,3.99);  // reconstructed \r
   TH1D *ptAll = fEffHisto->Projection(2);\r
 \r
   fEffHisto->GetAxis(4)->SetRangeUser(1.,1.);  // reconstructed \r
index 5921309..f05becb 100644 (file)
@@ -7,6 +7,7 @@ void LoadMyLibs() {
   CheckLoadLibrary("libTree");
   CheckLoadLibrary("libGui");
   CheckLoadLibrary("libMinuit");
+  CheckLoadLibrary("libSTAT");
   
   // Load AliRoot libraries
   
@@ -18,11 +19,31 @@ void LoadMyLibs() {
   CheckLoadLibrary("libSTEER");
   CheckLoadLibrary("libRAWDatasim");
 
+
+  gSystem->Load("libANALYSIS");
+  gSystem->Load("libANALYSISalice");
+  gSystem->Load("libCORRFW");
+
+  gSystem->Load("libPWG0base");
+  gSystem->Load("libPWG0dep");
+  gSystem->Load("libPWG0selectors");
+
+  gSystem->Load("libTPCcalib.so");
+  gSystem->Load("libTENDER");
+  gSystem->Load("libPWG1");
+  
+  gSystem->Load("libPHOSUtils");
+  gSystem->Load("libEMCALUtils");
+  gSystem->Load("libPWG4PartCorrBase");
+  gSystem->Load("libPWG4PartCorrDep");
+
+  /*
   CheckLoadLibrary("libANALYSIS");
   CheckLoadLibrary("libAOD");
   CheckLoadLibrary("libANALYSISalice");
   CheckLoadLibrary("libTENDER");
   CheckLoadLibrary("libSTAT");
+  */
 
   CheckLoadLibrary("libTPCbase");
   CheckLoadLibrary("libTPCsim");
index 7cd96d2..c835358 100644 (file)
@@ -239,7 +239,13 @@ void RunPerformanceTrain(Char_t *file="esd.root", Int_t runNumber = 2, const cha
   // Muon Efficiency
   //
   if(iPWG1perfMuonEff) {
-  //
+  gROOT->LoadMacro("$ALICE_ROOT/PWG3/muondep/AddTaskMUONTrackingEfficiency.C");
+  AliAnalysisTaskMuonTrackingEff *taskMuonTrackEff = AliAnalysisTaskMuonTrackingEff();
+  if(!taskMuonTrackEff) { 
+     Error("RunPerformanceTrain","AliAnalysisTaskMuonTrackingEff not created!");
+     return;
+  }
+  mgr->AddTask(taskMuonTrackEff);
   } 
   else {
     Printf("RunPerformanceTrain: Muon Efficiency - EXCLUDED!");