Adding simple example to load default debug streamer
[u/mrichter/AliRoot.git] / TPC / AliAnaTPCTrackBase.h
CommitLineData
e2b3cee0 1#ifndef ALIANATPCTRACKBASE_H\r
2#define ALIANATPCTRACKBASE_H\r
3\r
4// ROOT includes\r
5#include <TList.h>\r
6#include <TH1.h>\r
7#include <TH2.h>\r
8\r
9// AliRoot includes\r
10#include <AliAnalysisTask.h>\r
11#include <AliESDEvent.h>\r
12#include <AliESDfriend.h>\r
13#include <AliESDtrack.h>\r
14#include <AliESDfriendTrack.h>\r
15#include <AliTPCseed.h>\r
16\r
17class AliAnaTPCTrackBase : public AliAnalysisTask {\r
18 public:\r
19 AliAnaTPCTrackBase();\r
20 AliAnaTPCTrackBase(const char *name);\r
3c077364 21 AliAnaTPCTrackBase(const AliAnaTPCTrackBase&ana);\r
22 AliAnaTPCTrackBase& operator=(const AliAnaTPCTrackBase&ana);\r
e2b3cee0 23 virtual ~AliAnaTPCTrackBase() {};\r
24 \r
25 virtual void ConnectInputData(Option_t *);\r
26 virtual void CreateOutputObjects();\r
27 virtual void Exec(Option_t *option);\r
28 virtual void Terminate(Option_t *);\r
29 virtual void SetDebugLevel(Int_t level) {fDebug = level;}\r
30 virtual void SetMaxTracks(Int_t max=10) {fMaxTracks = max;}\r
31 \r
32 protected:\r
33 virtual Int_t FillTrackHistograms(Int_t nTracks, AliESDtrack* track, \r
34 AliESDfriendTrack* friendTrack, \r
35 AliTPCseed* seed);\r
36 \r
37 Int_t fDebug; // Debug flag\r
38 AliESDEvent* fESD; //! ESD\r
39 AliESDfriend* fESDfriend; //! ESD friend\r
40 TList* fListOfHists; //! Output list of histograms\r
41 \r
42 Int_t fMaxTracks; // Max tracks in histogram\r
3c077364 43 TH1F* fESDTracks; //! N ESD tracks\r
44 TH1F* fGoodTracks; //! GOOD tracks\r
e2b3cee0 45\r
46 ClassDef(AliAnaTPCTrackBase, 1); // Analysis task base class for TPC tracks and clusters\r
47};\r
48\r
49#endif\r