]> git.uio.no Git - u/mrichter/AliRoot.git/blame - CORRFW/test/AliCFSingleTrackTask.h
add documentation and example macro
[u/mrichter/AliRoot.git] / CORRFW / test / AliCFSingleTrackTask.h
CommitLineData
563113d0 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16//-----------------------------------------------------------------------
17// Author : R. Vernet, Consorzio Cometa - Catania (it)
18//-----------------------------------------------------------------------
19
20#ifndef ALICFSINGLETRACKTASK_H
21#define ALICFSINGLETRACKTASK_H
22
23#include "AliAnalysisTask.h"
24
25class TH1I;
26class TParticle ;
27class TFile ;
28class AliMCEventHandler;
29class AliESDEvent;
30class AliStack ;
31class AliCFManager;
32class TChain;
33class AliESDtrack;
34
35class AliCFSingleTrackTask : public AliAnalysisTask {
36 public:
37
38 enum {
39 kStepGenerated = 0,
40 kStepReconstructible = 1,
41 kStepReconstructed = 2,
42 kStepSelected = 3
43 };
44
45 AliCFSingleTrackTask();
46 AliCFSingleTrackTask(const Char_t* name);
47 AliCFSingleTrackTask& operator= (const AliCFSingleTrackTask& c);
48 AliCFSingleTrackTask(const AliCFSingleTrackTask& c);
49 virtual ~AliCFSingleTrackTask();
50
51 // ANALYSIS FRAMEWORK STUFF to loop on data and fill output objects
52 void ConnectInputData(Option_t *option="");
53 void CreateOutputObjects();
54 void Exec(Option_t *option);
55 void Init(); //loads the CF manager
56 void LocalInit() {Init();} //needed for the slaves
57 void Terminate(Option_t *);
58
59 // CORRECTION FRAMEWORK RELATED FUNCTIONS
60 void SetCFManager(AliCFManager* io) {fCFManager = io;} // global correction manager
61 AliCFManager * GetCFManager() {return fCFManager;} // get corr manager
62 protected:
63
64 TChain *fChain ; //! chained files
65 AliESDEvent *fESD ; //! pointer to the ESD event read
66 AliCFManager *fCFManager ; // pointer to the CF manager
67 TList *fQAHistList ; // list of QA histograms
68
69 // Histograms
70 //Number of events
71 TH1I *fHistEventsProcessed; //! simple histo for monitoring the number of events processed
72
73 ClassDef(AliCFSingleTrackTask,1);
74};
75
76#endif