]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliRunTag.h
Do not reset a zero pointer to MC info
[u/mrichter/AliRoot.git] / STEER / AliRunTag.h
index f46c14e3d080a9e342ecda98efe4c3ddf9a00949..7672f8bd20558f6004f4b6ea845345c555cefd0e 100644 (file)
@@ -18,6 +18,7 @@
 #include <TClonesArray.h>
 #include "AliLHCTag.h"
 #include "AliDetectorTag.h"
+#include "AliQA.h"
 
 class AliEventTag;
 //class AliDetectorTag;
@@ -46,7 +47,8 @@ class AliRunTag : public TObject {
   void SetNEvents(Int_t Pn) { fNumEvents = Pn; }
   void SetLHCTag(Float_t Plumin, TString type);
   void SetDetectorTag(UInt_t mask);
-  void SetQA(ULong_t * qa, Int_t qalength) ; 
+  void SetQA(const AliQA &qa) { fQA=qa; }      
+  void SetQAArray(ULong_t * qa, Int_t qalength) ; 
   void SetEventSpecies(Bool_t * es, Int_t eslength) ;
   void AddEventTag(const AliEventTag &t);
   void Clear(const char * opt = "");
@@ -70,7 +72,8 @@ class AliRunTag : public TObject {
   AliLHCTag  *GetLHCTag() {return &fLHCTag; } 
   AliDetectorTag *GetDetectorTags() {return &fDetectorTag;}
   const TClonesArray *GetEventTags() const {return &fEventTag;}
-  ULong_t *  GetQA() const {return fQA;}       
+  const AliQA *GetQA() const {return &fQA;}
+  ULong_t *  GetQAArray() const {return fQAArray;}     
   Int_t      GetQALength() const { return fQALength ; }
   Bool_t *   GetEventSpecies() const {return fEventSpecies;}   
   Int_t      GetESLength() const { return fESLength ; }
@@ -94,12 +97,13 @@ class AliRunTag : public TObject {
   TClonesArray fEventTag;                //array with all event tags
   AliDetectorTag fDetectorTag;           //array with all the detector tags
   AliLHCTag    fLHCTag;                  //LHC tag object
+  AliQA        fQA;                      //needed for backward compaibility
   Int_t        fQALength;                // Length of the fQA array  
-  ULong_t *    fQA ;                     //[fQALength] QA objects's data       
+  ULong_t *    fQAArray ;                //[fQALength] QA objects's data       
   Int_t        fESLength;                // Length of the Event Specie Length
   Bool_t *     fEventSpecies;           //[fESLength] EventSpecies in this run 
   
-  ClassDef(AliRunTag,4)  //(ClassName, ClassVersion)
+  ClassDef(AliRunTag,6)  //(ClassName, ClassVersion)
 };
 //___________________________________________________________________________