ROOT logo
////////////////////////////////////////////////////////////////////////////////
//                                                                            //
// AliFemtoEventReaderAODChain - the reader class for the Alice AOD from Chain//
// Reads in AOD information and converts it into internal AliFemtoEvent       //
// Authors: Adam Kisiel kisiel@mps.ohio-state.edu                             //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////

#include "AliFemtoEventReaderAODChain.h"

#include "TFile.h"
#include "TTree.h"
#include "AliAODEvent.h"
#include "AliAODTrack.h"
#include "AliAODVertex.h"

#include "AliFmPhysicalHelixD.h"
#include "AliFmThreeVectorF.h"

#include "SystemOfUnits.h"

#include "AliFemtoEvent.h"
#include "AliFemtoModelHiddenInfo.h"



ClassImp(AliFemtoEventReaderAODChain)

#if !(ST_NO_NAMESPACES)
  using namespace units;
#endif

using namespace std;
//____________________________
//constructor with 0 parameters , look at default settings 
AliFemtoEventReaderAODChain::AliFemtoEventReaderAODChain():
  AliFemtoEventReaderAOD()
{
  // default constructor
}

AliFemtoEventReaderAODChain::AliFemtoEventReaderAODChain(const AliFemtoEventReaderAODChain &aReader) :
  AliFemtoEventReaderAOD(aReader)
{
  // copy constructor
}
//__________________
//Destructor
AliFemtoEventReaderAODChain::~AliFemtoEventReaderAODChain()
{
  // destructor
}

//__________________
AliFemtoEventReaderAODChain& AliFemtoEventReaderAODChain::operator=(const AliFemtoEventReaderAODChain& aReader)
{
  // assignment operator
  if (this == &aReader)
    return *this;

  *this = aReader;

  return *this;
}
//__________________
AliFemtoString AliFemtoEventReaderAODChain::Report()
{
  // create reader report
  AliFemtoString temp = "\n This is the AliFemtoEventReaderAODChain\n";
  return temp;
}

AliFemtoEvent* AliFemtoEventReaderAODChain::ReturnHbtEvent()
{
  // read in a next hbt event from the chain
  // convert it to AliFemtoEvent and return
  // for further analysis
  if (!fEvent) return 0;

  AliFemtoEvent *hbtEvent = 0;

  // Get the PWG2 specific information if it exists
//   fPWG2AODTracks = (TClonesArray *) fEvent->GetList()->FindObject("pwg2aodtracks");

//   if (fPWG2AODTracks) {
//     cout << "Found additional PWG2 specific information in the AOD!" << endl;
//     cout << "Reading only tracks with the additional information" << endl;
//   }

  // cout<<"starting to read event "<<fCurEvent<<endl;

  //hbtEvent = new AliFemtoEvent;
  hbtEvent = CopyAODtoFemtoEvent();

  fCurEvent++;
  return hbtEvent;
}

//___________________
void AliFemtoEventReaderAODChain::SetAODSource(AliAODEvent *aAOD)
{
  // The chain loads the AOD for us
  // You must provide the address where it can be found
  fEvent = aAOD;
}




 AliFemtoEventReaderAODChain.cxx:1
 AliFemtoEventReaderAODChain.cxx:2
 AliFemtoEventReaderAODChain.cxx:3
 AliFemtoEventReaderAODChain.cxx:4
 AliFemtoEventReaderAODChain.cxx:5
 AliFemtoEventReaderAODChain.cxx:6
 AliFemtoEventReaderAODChain.cxx:7
 AliFemtoEventReaderAODChain.cxx:8
 AliFemtoEventReaderAODChain.cxx:9
 AliFemtoEventReaderAODChain.cxx:10
 AliFemtoEventReaderAODChain.cxx:11
 AliFemtoEventReaderAODChain.cxx:12
 AliFemtoEventReaderAODChain.cxx:13
 AliFemtoEventReaderAODChain.cxx:14
 AliFemtoEventReaderAODChain.cxx:15
 AliFemtoEventReaderAODChain.cxx:16
 AliFemtoEventReaderAODChain.cxx:17
 AliFemtoEventReaderAODChain.cxx:18
 AliFemtoEventReaderAODChain.cxx:19
 AliFemtoEventReaderAODChain.cxx:20
 AliFemtoEventReaderAODChain.cxx:21
 AliFemtoEventReaderAODChain.cxx:22
 AliFemtoEventReaderAODChain.cxx:23
 AliFemtoEventReaderAODChain.cxx:24
 AliFemtoEventReaderAODChain.cxx:25
 AliFemtoEventReaderAODChain.cxx:26
 AliFemtoEventReaderAODChain.cxx:27
 AliFemtoEventReaderAODChain.cxx:28
 AliFemtoEventReaderAODChain.cxx:29
 AliFemtoEventReaderAODChain.cxx:30
 AliFemtoEventReaderAODChain.cxx:31
 AliFemtoEventReaderAODChain.cxx:32
 AliFemtoEventReaderAODChain.cxx:33
 AliFemtoEventReaderAODChain.cxx:34
 AliFemtoEventReaderAODChain.cxx:35
 AliFemtoEventReaderAODChain.cxx:36
 AliFemtoEventReaderAODChain.cxx:37
 AliFemtoEventReaderAODChain.cxx:38
 AliFemtoEventReaderAODChain.cxx:39
 AliFemtoEventReaderAODChain.cxx:40
 AliFemtoEventReaderAODChain.cxx:41
 AliFemtoEventReaderAODChain.cxx:42
 AliFemtoEventReaderAODChain.cxx:43
 AliFemtoEventReaderAODChain.cxx:44
 AliFemtoEventReaderAODChain.cxx:45
 AliFemtoEventReaderAODChain.cxx:46
 AliFemtoEventReaderAODChain.cxx:47
 AliFemtoEventReaderAODChain.cxx:48
 AliFemtoEventReaderAODChain.cxx:49
 AliFemtoEventReaderAODChain.cxx:50
 AliFemtoEventReaderAODChain.cxx:51
 AliFemtoEventReaderAODChain.cxx:52
 AliFemtoEventReaderAODChain.cxx:53
 AliFemtoEventReaderAODChain.cxx:54
 AliFemtoEventReaderAODChain.cxx:55
 AliFemtoEventReaderAODChain.cxx:56
 AliFemtoEventReaderAODChain.cxx:57
 AliFemtoEventReaderAODChain.cxx:58
 AliFemtoEventReaderAODChain.cxx:59
 AliFemtoEventReaderAODChain.cxx:60
 AliFemtoEventReaderAODChain.cxx:61
 AliFemtoEventReaderAODChain.cxx:62
 AliFemtoEventReaderAODChain.cxx:63
 AliFemtoEventReaderAODChain.cxx:64
 AliFemtoEventReaderAODChain.cxx:65
 AliFemtoEventReaderAODChain.cxx:66
 AliFemtoEventReaderAODChain.cxx:67
 AliFemtoEventReaderAODChain.cxx:68
 AliFemtoEventReaderAODChain.cxx:69
 AliFemtoEventReaderAODChain.cxx:70
 AliFemtoEventReaderAODChain.cxx:71
 AliFemtoEventReaderAODChain.cxx:72
 AliFemtoEventReaderAODChain.cxx:73
 AliFemtoEventReaderAODChain.cxx:74
 AliFemtoEventReaderAODChain.cxx:75
 AliFemtoEventReaderAODChain.cxx:76
 AliFemtoEventReaderAODChain.cxx:77
 AliFemtoEventReaderAODChain.cxx:78
 AliFemtoEventReaderAODChain.cxx:79
 AliFemtoEventReaderAODChain.cxx:80
 AliFemtoEventReaderAODChain.cxx:81
 AliFemtoEventReaderAODChain.cxx:82
 AliFemtoEventReaderAODChain.cxx:83
 AliFemtoEventReaderAODChain.cxx:84
 AliFemtoEventReaderAODChain.cxx:85
 AliFemtoEventReaderAODChain.cxx:86
 AliFemtoEventReaderAODChain.cxx:87
 AliFemtoEventReaderAODChain.cxx:88
 AliFemtoEventReaderAODChain.cxx:89
 AliFemtoEventReaderAODChain.cxx:90
 AliFemtoEventReaderAODChain.cxx:91
 AliFemtoEventReaderAODChain.cxx:92
 AliFemtoEventReaderAODChain.cxx:93
 AliFemtoEventReaderAODChain.cxx:94
 AliFemtoEventReaderAODChain.cxx:95
 AliFemtoEventReaderAODChain.cxx:96
 AliFemtoEventReaderAODChain.cxx:97
 AliFemtoEventReaderAODChain.cxx:98
 AliFemtoEventReaderAODChain.cxx:99
 AliFemtoEventReaderAODChain.cxx:100
 AliFemtoEventReaderAODChain.cxx:101
 AliFemtoEventReaderAODChain.cxx:102
 AliFemtoEventReaderAODChain.cxx:103
 AliFemtoEventReaderAODChain.cxx:104
 AliFemtoEventReaderAODChain.cxx:105
 AliFemtoEventReaderAODChain.cxx:106
 AliFemtoEventReaderAODChain.cxx:107
 AliFemtoEventReaderAODChain.cxx:108
 AliFemtoEventReaderAODChain.cxx:109