]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FEMTOSCOPY/AliFemto/Reader/AliFemtoEventReaderESD.h
Modifications needed for the compilation of the femtoscopy code (Adam-Mike)
[u/mrichter/AliRoot.git] / PWG2 / FEMTOSCOPY / AliFemto / Reader / AliFemtoEventReaderESD.h
1 /*
2  *$Id$
3  *$Log$
4  *Revision 1.1.1.1  2007/04/25 15:38:41  panos
5  *Importing the HBT code dir
6  *
7  *Revision 1.3  2007/03/13 15:30:03  mchojnacki
8  *adding reader for simulated data
9  *
10  *Revision 1.2  2007/03/07 13:36:17  mchojnacki
11  *Add some comments
12  *
13  *Revision 1.1.1.1  2007/03/07 10:14:49  mchojnacki
14  *First version on CVS
15  *
16  */
17   
18
19 #ifndef AliFemtoEventReaderESD_hh
20 #define AliFemtoEventReaderESD_hh
21 //Reader for ESD files for StHbt version 10 with hidden info part
22 //made by Marek Chojnacki mchojnacki@knf.pw.edu.pl
23 // Version 11 Added AliESDfriend reading
24 // Adam Kisiel kisiel@mps.ohio-state.edu
25 #include "Base/AliFemtoEventReader.h"
26 #include "Infrastructure/AliFemtoEnumeration.h"
27
28 #include <string>
29 #include <vector>
30 #include "TTree.h"
31 #include "AliESD.h"
32 #include "AliESDfriend.h"
33 #include <list>
34
35 class AliFemtoEvent;
36
37 class AliFemtoEventReaderESD : public AliFemtoEventReader 
38 {
39  public:
40   AliFemtoEventReaderESD();
41   ~AliFemtoEventReaderESD();
42   AliFemtoEvent* ReturnHbtEvent();
43   AliFemtoString Report();
44   //void SetFileName(const char* fileName);
45   void SetInputFile(const char* inputFile);
46   void SetConstrained(const bool constrained);
47   bool GetConstrained() const;
48
49  protected:
50
51  private:
52   bool           GetNextFile();//setting next file to read 
53
54   string         fInputFile; //name of input file
55   string         fFileName; //name of current ESD file
56   bool           fConstrained; //flag to set which momentum from ESD file will be use
57   int            fNumberofEvent;//number of Events in ESD file
58   int            fCurEvent; //number of current event
59   unsigned int   fCurFile; //number of current file
60   vector<string> fListOfFiles;//list of ESD files               
61   TTree*         fTree;//ESD tree
62   AliESD*        fEvent;//ESD event
63   TFile*         fEsdFile;//ESD file 
64   AliESDfriend*  fEventFriend;
65
66   list<Int_t>  **fSharedList;
67   list<Int_t>  **fClusterPerPadrow;
68                 
69 #ifdef __ROOT__
70   ClassDef(AliFemtoEventReaderESD, 10)
71 #endif
72
73     };
74   
75 #endif
76
77