1 ////////////////////////////////////////////////////////////////////////////////
3 // AliFemtoEventReaderAODChain - the reader class for the Alice AOD from Chain//
4 // Reads in AOD information and converts it into internal AliFemtoEvent //
5 // Authors: Adam Kisiel kisiel@mps.ohio-state.edu //
7 ////////////////////////////////////////////////////////////////////////////////
9 #include "AliFemtoEventReaderAODChain.h"
13 #include "AliAODEvent.h"
14 #include "AliAODTrack.h"
15 #include "AliAODVertex.h"
17 #include "AliFmPhysicalHelixD.h"
18 #include "AliFmThreeVectorF.h"
20 #include "SystemOfUnits.h"
22 #include "AliFemtoEvent.h"
23 #include "AliFemtoModelHiddenInfo.h"
27 ClassImp(AliFemtoEventReaderAODChain)
29 #if !(ST_NO_NAMESPACES)
30 using namespace units;
34 //____________________________
35 //constructor with 0 parameters , look at default settings
36 AliFemtoEventReaderAODChain::AliFemtoEventReaderAODChain():
37 AliFemtoEventReaderAOD()
39 // default constructor
42 AliFemtoEventReaderAODChain::AliFemtoEventReaderAODChain(const AliFemtoEventReaderAODChain &aReader) :
43 AliFemtoEventReaderAOD(aReader)
49 AliFemtoEventReaderAODChain::~AliFemtoEventReaderAODChain()
55 AliFemtoEventReaderAODChain& AliFemtoEventReaderAODChain::operator=(const AliFemtoEventReaderAODChain& aReader)
57 // assignment operator
66 AliFemtoString AliFemtoEventReaderAODChain::Report()
68 // create reader report
69 AliFemtoString temp = "\n This is the AliFemtoEventReaderAODChain\n";
73 AliFemtoEvent* AliFemtoEventReaderAODChain::ReturnHbtEvent()
75 // read in a next hbt event from the chain
76 // convert it to AliFemtoEvent and return
77 // for further analysis
78 if (!fEvent) return 0;
80 AliFemtoEvent *hbtEvent = 0;
82 // Get the PWG2 specific information if it exists
83 // fPWG2AODTracks = (TClonesArray *) fEvent->GetList()->FindObject("pwg2aodtracks");
85 // if (fPWG2AODTracks) {
86 // cout << "Found additional PWG2 specific information in the AOD!" << endl;
87 // cout << "Reading only tracks with the additional information" << endl;
90 // cout<<"starting to read event "<<fCurEvent<<endl;
92 //hbtEvent = new AliFemtoEvent;
93 hbtEvent = CopyAODtoFemtoEvent();
100 void AliFemtoEventReaderAODChain::SetAODSource(AliAODEvent *aAOD)
102 // The chain loads the AOD for us
103 // You must provide the address where it can be found