]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FEMTOSCOPY/AliFemto/AliFemtoEventReaderESDChain.h
Update runBatch.C for the new AddTask.C macro
[u/mrichter/AliRoot.git] / PWG2 / FEMTOSCOPY / AliFemto / AliFemtoEventReaderESDChain.h
1 ////////////////////////////////////////////////////////////////////////////////
2 //                                                                            //
3 // AliFemtoEventReaderESDChain - the reader class for the Alice ESD           //
4 // tailored for the Task framework                                            //
5 // Reads in AliESDfriend to create shared hit/quality information             //
6 // Authors: Adam Kisiel kisiel@mps.ohio-state.edu                             //
7 //                                                                            //
8 ////////////////////////////////////////////////////////////////////////////////
9 #ifndef ALIFEMTOEVENTREADERESDCHAIN_H
10 #define ALIFEMTOEVENTREADERESDCHAIN_H
11
12 #include "AliFemtoEventReader.h"
13 #include "AliFemtoEnumeration.h"
14
15 #include <string>
16 #include <vector>
17 #include "TTree.h"
18 #include "AliESDEvent.h"
19 #include "AliESDfriend.h"
20 #include <list>
21
22 class AliFemtoEvent;
23
24 class AliFemtoEventReaderESDChain : public AliFemtoEventReader 
25 {
26  public:
27   AliFemtoEventReaderESDChain();
28   AliFemtoEventReaderESDChain(const AliFemtoEventReaderESDChain& aReader);
29   ~AliFemtoEventReaderESDChain();
30
31   AliFemtoEventReaderESDChain& operator=(const AliFemtoEventReaderESDChain& aReader);
32
33   AliFemtoEvent* ReturnHbtEvent();
34   AliFemtoString Report();
35   void SetConstrained(const bool constrained);
36   void SetReadTPCInner(const bool readinner);
37   void SetUseTPCOnly(const bool usetpconly);
38
39   bool GetConstrained() const;
40   bool GetReadTPCInner() const;
41   bool GetUseTPCOnly() const;
42
43   void SetESDSource(AliESDEvent *aESD);
44   //  void SetESDfriendSource(AliESDfriend *aFriend);
45
46  protected:
47
48  private:
49   string         fFileName;      //name of current ESD file
50   bool           fConstrained;   //flag to set which momentum from ESD file will be use
51   bool           fReadInner;     // flag to set if one wants to read TPC-only momentum
52                                  // and store it in the hidden info
53   bool           fUseTPCOnly;    // flag to set if one wants to replace the global parameters 
54                                  // by the TPC only ones
55   int            fNumberofEvent; //number of Events in ESD file
56   int            fCurEvent;      //number of current event
57   unsigned int   fCurFile;       //number of current file
58   AliESDEvent*   fEvent;         //ESD event
59   //  AliESDfriend*  fEventFriend;
60
61 /*   list<Int_t>  **fSharedList;       //! Table (one list per padrow) of clusters which are shared */
62 /*   list<Int_t>  **fClusterPerPadrow; //! Table (one list per padrow) of clusters in each padrow */
63                 
64   Float_t GetSigmaToVertex(double *impact, double *covar);
65
66 #ifdef __ROOT__
67   ClassDef(AliFemtoEventReaderESDChain, 1)
68 #endif
69
70     };
71   
72 #endif
73
74