Minor changes in the local case based on the v4-04-Rev-14
authorpanos <panos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Jul 2007 15:50:49 +0000 (15:50 +0000)
committerpanos <panos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Jul 2007 15:50:49 +0000 (15:50 +0000)
PWG2/AnalysisMacros/Local/AliAnalysisTaskPt.cxx
PWG2/AnalysisMacros/Local/demoLocal.C
PWG2/AnalysisMacros/Local/runAnalysis.C

index 2191bef..d560630 100644 (file)
@@ -4,6 +4,7 @@
 #include "TH1.h"
 #include "TCanvas.h"
 #include "TSystem.h"
+#include "Riostream.h"
 
 #include "AliAnalysisTask.h"
 
@@ -56,8 +57,8 @@ void AliAnalysisTaskPt::Exec(Option_t *) {
   Long64_t ientry = chain->GetReadEntry();
   if (!fESD) return;
 
-  printf("Tracks: %d \n",fESD->GetNumberOfTracks());
-
+  cout<<"Entry: "<<ientry<<" - Tracks: "<<fESD->GetNumberOfTracks()<<endl;
+  
   for(Int_t iTracks = 0; iTracks < fESD->GetNumberOfTracks(); iTracks++) {
     AliESDtrack * ESDTrack = fESD->GetTrack(iTracks);
     //UInt_t status = ESDTrack->GetStatus();
index 105603a..534794e 100644 (file)
@@ -2,13 +2,16 @@
 void demoLocal() {
   //____________________________________________//
   AliTagAnalysis *TagAna = new AliTagAnalysis(); 
-  TagAna->ChainLocalTags(".");
+  TagAna->ChainLocalTags("../../Tags");
 
-  AliRunTagCuts *RunCuts = new AliRunTagCuts();
-  AliEventTagCuts *EvCuts = new AliEventTagCuts();
-  EvCuts->SetMultiplicityRange(11,12);  
+  AliRunTagCuts *runCuts = new AliRunTagCuts();
+  AliLHCTagCuts *lhcCuts = new AliLHCTagCuts();
+  AliDetectorTagCuts *detCuts = new AliDetectorTagCuts();
+  AliEventTagCuts *evCuts = new AliEventTagCuts();
+  evCuts->SetMultiplicityRange(11,12);  
+  
   TChain* chain = 0x0;
-  chain = TagAna->QueryTags(RunCuts,EvCuts);
+  chain = TagAna->QueryTags(runCuts,lhcCuts,detCuts,evCuts);
 
   //____________________________________________//
   // Make the analysis manager
index f086231..55bffd4 100644 (file)
@@ -1,7 +1,8 @@
 void runAnalysis() {
   TStopwatch timer;
   timer.Start();
-  //____________________________________________________//
+  gSystem->Load("libTree.so");
+   //____________________________________________________//
   //_____________Setting up ESD.par_____________________//
   //____________________________________________________//
   setupPar("ESD");