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"
17 #include "AliFemtoV0.h"
24 #include <AliGenEventHeader.h>
28 class AliFemtoEventReaderKinematicsChain : public AliFemtoEventReader
31 enum EventMult {kGlobalCount=0, kVZERO=1};
32 typedef enum EventMult EstEventMult;
34 AliFemtoEventReaderKinematicsChain();
35 AliFemtoEventReaderKinematicsChain(const AliFemtoEventReaderKinematicsChain& aReader);
36 ~AliFemtoEventReaderKinematicsChain();
38 AliFemtoEventReaderKinematicsChain& operator=(const AliFemtoEventReaderKinematicsChain& aReader);
40 AliFemtoEvent* ReturnHbtEvent();
41 AliFemtoString Report();
42 void SetConstrained(const bool constrained);
43 bool GetConstrained() const;
45 //void SetESDSource(AliESDEvent *aESD);
46 void SetStackSource(AliStack *aStack);
47 void SetGenEventHeader(AliGenEventHeader *aGenHeader);
48 void SetRotateToEventPlane(short dorotate);
49 void SetUseMultiplicity(EstEventMult aType);
50 void CopyAODtoFemtoV0(TParticle *tv0, AliFemtoV0 *tFemtoV0 );
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 AliStack *fStack; // Kinematics stack pointer
61 AliGenEventHeader *fGenHeader; // Link to the generator event header
62 EstEventMult fEstEventMult; // Type of the event multiplicity estimator
63 short fRotateToEventPlane; // Rotate the event so that event plane is at x=0
65 Float_t GetSigmaToVertex(double *impact, double *covar);
68 ClassDef(AliFemtoEventReaderKinematicsChain, 1)