1 #ifndef ALIANALYSISRLCONTAINER_H
2 #define ALIANALYSISRLCONTAINER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 // Author: Andrei Gheata, 31/05/2006
9 //==============================================================================
10 // AliAnalysysRLContainer - Special container working with AliRunLoader
12 //==============================================================================
14 #ifndef ALIANALYSISDATQCONTAINER_H
15 #include "AliAnalysisDataContainer.h"
24 class AliAnalysisRLContainer : public AliAnalysisDataContainer {
27 AliAnalysisRLContainer();
28 AliAnalysisRLContainer(const char *name);
29 virtual ~AliAnalysisRLContainer();
32 AliRunLoader *GetRunLoader();
33 AliHeader *GetHeader();
35 TTree *GetKinematics();
36 AliESD *GetESD() const {return fESD;}
37 virtual void GetEntry(Long64_t ientry);
38 virtual Bool_t SetData(TObject *data, Option_t *option="");
39 // Send a notify signal to the container
40 virtual void NotifyChange(ENotifyMessage type);
43 void DeleteKinematicsFile();
44 void DeleteRunLoader();
46 AliRunLoader* fRunLoader; //! pointer to the RunLoader if galice.root was opened
47 AliESD* fESD; //! "ESD" branch in fChain
48 TFile* fKineFile; //! pointer to Kinematics.root if the file was opened
49 Bool_t fKinematicsLoaded; // determines if the stack is properly loaded (AliRunLoader::LoadKinematics() succeeded), this is needed because the GetStack returnes a invalid stack object when the function failed
50 Bool_t fHeaderLoaded; // determines if the header is properly loaded
52 ClassDef(AliAnalysisRLContainer,1) // Class describing a data container using AliRunLoader