Obsolete
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Aug 2008 11:24:15 +0000 (11:24 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Aug 2008 11:24:15 +0000 (11:24 +0000)
ANALYSIS/AliAnalysisTaskPtME.cxx [deleted file]
ANALYSIS/AliAnalysisTaskPtME.h [deleted file]

diff --git a/ANALYSIS/AliAnalysisTaskPtME.cxx b/ANALYSIS/AliAnalysisTaskPtME.cxx
deleted file mode 100644 (file)
index 225dd3f..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-
-#include "TH1F.h"
-#include "TCanvas.h"
-#include "AliAODEvent.h"
-#include "AliAODTrack.h"
-#include "AliAnalysisTaskPtME.h"
-
-// example of an analysis task creating a p_t spectrum
-// Authors: Panos Cristakoglou, Jan Fiete Grosse-Oetringhaus, Christian Klein-Boesing
-
-ClassImp(AliAnalysisTaskPtME)
-
-//________________________________________________________________________
-AliAnalysisTaskPtME::AliAnalysisTaskPtME(const char *name) 
-  : AliAnalysisTaskME(name), fHistPt(0)
-{
-  // Constructor
-  // Define input and output slots here
-  DefineOutput(1, TH1F::Class());
-}
-
-
-//________________________________________________________________________
-void AliAnalysisTaskPtME::UserCreateOutputObjects()
-{
-  // Create histograms
-  // Called once
-
-  fHistPt = new TH1F("fHistPt", "P_{T} distribution", 15, 0.1, 3.1);
-  fHistPt->GetXaxis()->SetTitle("P_{T} (GeV/c)");
-  fHistPt->GetYaxis()->SetTitle("dN/dP_{T} (c/GeV)");
-  fHistPt->SetMarkerStyle(kFullCircle);
-}
-
-//________________________________________________________________________
-void AliAnalysisTaskPtME::UserExec(Option_t *) 
-{
-  // Main loop
-  // Called for each event
-
-    for (Int_t jev = 0; jev < 3; jev++) {
-       AliAODEvent* aod = GetEvent(jev);
-       Int_t ntracks =  aod->GetNumberOfTracks();
-       printf("Number of tracks %5d %5d\n", jev, ntracks);
-       
-       for (Int_t iTracks = 0; iTracks < aod->GetNumberOfTracks(); iTracks++) 
-       {
-                   AliAODTrack* track = aod->GetTrack(iTracks);
-           if (!track) {
-               Printf("ERROR: Could not receive track %d", iTracks);
-               continue;
-           }
-           
-           fHistPt->Fill(track->Pt());
-       } //track loop
-    } // event loop
-  // Post output data.
-  PostData(0, fHistPt);
-}      
-
-//________________________________________________________________________
-void AliAnalysisTaskPtME::Terminate(Option_t *) 
-{
-  // Draw result to the screen
-  // Called once at the end of the query
-
-  TCanvas *c1 = new TCanvas("AliAnalysisTaskPt","Pt",10,10,510,510);
-  c1->cd(1)->SetLogy();
-  fHistPt->DrawCopy("E");
-}
diff --git a/ANALYSIS/AliAnalysisTaskPtME.h b/ANALYSIS/AliAnalysisTaskPtME.h
deleted file mode 100644 (file)
index 8b17fd8..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include");\r
-#ifndef AliAnalysisTaskPt_cxx\r
-#define AliAnalysisTaskPt_cxx\r
-\r
-// example of an analysis task creating a p_t spectrum\r
-// Authors: Panos Cristakoglou, Jan Fiete Grosse-Oetringhaus, Christian Klein-Boesing\r
-\r
-class TH1F;\r
-class AliESDEvent;\r
-\r
-#include "AliAnalysisTaskME.h"\r
-\r
-class AliAnalysisTaskPtME : public AliAnalysisTaskME {\r
- public:\r
-  AliAnalysisTaskPtME(const char *name = "AliAnalysisTaskPt");\r
-  virtual ~AliAnalysisTaskPtME() {}\r
-  \r
-  virtual void   UserCreateOutputObjects();\r
-  virtual void   UserExec(Option_t *option);\r
-  virtual void   Terminate(Option_t *);\r
-  \r
- private:\r
-  TH1F        *fHistPt; //Pt spectrum\r
-   \r
-  AliAnalysisTaskPtME(const AliAnalysisTaskPtME&); // not implemented\r
-  AliAnalysisTaskPtME& operator=(const AliAnalysisTaskPtME&); // not implemented\r
-  \r
-  ClassDef(AliAnalysisTaskPtME, 1); // example of analysis\r
-};\r
-\r
-#endif\r