1 /////////////////////////////////////////////////////////////////////////////////////
3 // AliFemtoEventReaderKinematicsChain - the reader class for the Alice ESD and //
4 // the model Kinematics information tailored for the Task framework and the //
5 // Reads in AliESDfriend to create shared hit/quality information //
6 // Authors: Malgorzata Janik, Warsaw University of Technology, majanik@cern.ch //
7 // Lukasz Graczykowski, Warsaw University of Technology, lgraczyk@cern.ch //
9 /////////////////////////////////////////////////////////////////////////////////////
12 #ifndef ALIFEMTOEVENTREADERKINEMATICSCHAIN_H
13 #define ALIFEMTOEVENTREADERKINEMATICSCHAIN_H
15 #include "AliFemtoEventReader.h"
16 #include "AliFemtoEnumeration.h"
23 #include <AliGenEventHeader.h>
27 class AliFemtoEventReaderKinematicsChain : public AliFemtoEventReader
30 AliFemtoEventReaderKinematicsChain();
31 AliFemtoEventReaderKinematicsChain(const AliFemtoEventReaderKinematicsChain& aReader);
32 ~AliFemtoEventReaderKinematicsChain();
34 AliFemtoEventReaderKinematicsChain& operator=(const AliFemtoEventReaderKinematicsChain& aReader);
36 AliFemtoEvent* ReturnHbtEvent();
37 AliFemtoString Report();
38 void SetConstrained(const bool constrained);
39 bool GetConstrained() const;
41 //void SetESDSource(AliESDEvent *aESD);
42 void SetStackSource(AliStack *aStack);
43 void SetGenEventHeader(AliGenEventHeader *aGenHeader);
44 void SetRotateToEventPlane(short dorotate);
49 string fFileName; // name of current ESD file
50 bool fConstrained; // flag to set which momentum from ESD file will be use
51 int fNumberofEvent; // number of Events in ESD file
52 int fCurEvent; // number of current event
53 unsigned int fCurFile; // number of current file
54 AliStack *fStack; // Kinematics stack pointer
55 AliGenEventHeader *fGenHeader; // Link to the generator event header
57 short fRotateToEventPlane; // Rotate the event so that event plane is at x=0
59 Float_t GetSigmaToVertex(double *impact, double *covar);
62 ClassDef(AliFemtoEventReaderKinematicsChain, 1)