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"
25 ClassImp(AliFemtoEventReaderAODChain)
27 #if !(ST_NO_NAMESPACES)
28 using namespace units;
32 //____________________________
33 //constructor with 0 parameters , look at default settings
34 AliFemtoEventReaderAODChain::AliFemtoEventReaderAODChain():
35 AliFemtoEventReaderAOD()
37 // default constructor
40 AliFemtoEventReaderAODChain::AliFemtoEventReaderAODChain(const AliFemtoEventReaderAODChain &aReader) :
41 AliFemtoEventReaderAOD(aReader)
47 AliFemtoEventReaderAODChain::~AliFemtoEventReaderAODChain()
53 AliFemtoEventReaderAODChain& AliFemtoEventReaderAODChain::operator=(const AliFemtoEventReaderAODChain& aReader)
55 // assignment operator
64 AliFemtoString AliFemtoEventReaderAODChain::Report()
66 // create reader report
67 AliFemtoString temp = "\n This is the AliFemtoEventReaderAODChain\n";
71 AliFemtoEvent* AliFemtoEventReaderAODChain::ReturnHbtEvent()
73 // read in a next hbt event from the chain
74 // convert it to AliFemtoEvent and return
75 // for further analysis
76 if (!fEvent) return 0;
78 AliFemtoEvent *hbtEvent = 0;
80 // Get the PWG2 specific information if it exists
81 // fPWG2AODTracks = (TClonesArray *) fEvent->GetList()->FindObject("pwg2aodtracks");
83 // if (fPWG2AODTracks) {
84 // cout << "Found additional PWG2 specific information in the AOD!" << endl;
85 // cout << "Reading only tracks with the additional information" << endl;
88 // cout<<"starting to read event "<<fCurEvent<<endl;
90 hbtEvent = new AliFemtoEvent;
92 CopyAODtoFemtoEvent(hbtEvent);
99 void AliFemtoEventReaderAODChain::SetAODSource(AliAODEvent *aAOD)
101 // The chain loads the AOD for us
102 // You must provide the address where it can be found