]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/FEMTOSCOPY/AliFemto/AliFemtoEventReaderESD.h
Migration of PWG2/FEMTOSCOPY to PWGCF/FEMTOSCOPY
[u/mrichter/AliRoot.git] / PWGCF / FEMTOSCOPY / AliFemto / AliFemtoEventReaderESD.h
1 ////////////////////////////////////////////////////////////////////////////////
2 ///                                                                          ///
3 /// AliFemtoEventReaderESD - the reader class for the Alice ESD              ///
4 /// Reads in ESD information and converts it into internal AliFemtoEvent     ///
5 /// Reads in AliESDfriend to create shared hit/quality information           ///
6 /// Authors: Marek Chojnacki mchojnacki@knf.pw.edu.pl                        ///
7 ///          Adam Kisiel kisiel@mps.ohio-state.edu                           ///
8 ///                                                                          ///
9 ////////////////////////////////////////////////////////////////////////////////
10
11 /*
12  *$Id$
13  *$Log$
14  *Revision 1.1.2.1  2007/09/30 11:38:59  akisiel
15  *Adapt the readers to the new AliESDEvent structure
16  *
17  *Revision 1.1  2007/05/16 10:22:11  akisiel
18  *Making the directory structure of AliFemto flat. All files go into one common directory
19  *
20  *Revision 1.4  2007/05/03 09:45:20  akisiel
21  *Fixing Effective C++ warnings
22  *
23  *Revision 1.3  2007/04/27 07:25:16  akisiel
24  *Make revisions needed for compilation from the main AliRoot tree
25  *
26  *Revision 1.1.1.1  2007/04/25 15:38:41  panos
27  *Importing the HBT code dir
28  *
29  */
30   
31
32 #ifndef ALIFEMTOEVENTREADERESD_H
33 #define ALIFEMTOEVENTREADERESD_H
34 #include "AliFemtoEventReader.h"
35 #include "AliFemtoEnumeration.h"
36
37 #include <string>
38 #include <vector>
39 #include "TTree.h"
40 #include "TChain.h"
41 #include "AliESDEvent.h"
42 #include <list>
43
44 class AliFemtoEvent;
45
46 class AliFemtoEventReaderESD : public AliFemtoEventReader 
47 {
48  public:
49   AliFemtoEventReaderESD();
50   AliFemtoEventReaderESD(const AliFemtoEventReaderESD &aReader);
51   virtual ~AliFemtoEventReaderESD();
52
53   AliFemtoEventReaderESD& operator=(const AliFemtoEventReaderESD& aReader);
54
55   virtual AliFemtoEvent* ReturnHbtEvent();
56   AliFemtoString Report();
57   //void SetFileName(const char* fileName);
58   void SetInputFile(const char* inputFile);
59   void SetConstrained(const bool constrained);
60   bool GetConstrained() const;
61   void SetReadTPCInner(const bool readinner);
62   bool GetReadTPCInner() const;
63
64  protected:
65
66  private:
67   string         fInputFile;        // name of input file with ESD filenames
68   string         fFileName;         // name of current ESD file
69   bool           fConstrained;      // flag to set which momentum from ESD file will be use
70   bool           fReadInner;        // flag to set if one wants to read TPC-only momentum
71                                     // instead of the global one
72   int            fNumberofEvent;    // number of Events in ESD file
73   int            fCurEvent;         // number of current event
74   TChain*        fTree;             // ESD tree
75   TFile*         fEsdFile;          // ESD file 
76   AliESDEvent*   fEvent;            // ESD event
77                 
78 #ifdef __ROOT__
79   ClassDef(AliFemtoEventReaderESD, 11)
80 #endif
81
82     };
83   
84 #endif
85
86