fDetectorDirName = GetName() ;
}
+//____________________________________________________________________________
+AliQADataMakerRec::~AliQADataMakerRec()
+{
+ //dtor: delete the TObjArray and thei content
+ fESDsQAList->Delete() ;
+ fRawsQAList->Delete() ;
+ fRecPointsQAList->Delete() ;
+ delete fESDsQAList ;
+ delete fRawsQAList ;
+ delete fRecPointsQAList ;
+}
+
//__________________________________________________________________
AliQADataMakerRec& AliQADataMakerRec::operator = (const AliQADataMakerRec& qadm )
{
SetCycle(cycles) ;
if ( task == AliQA::kRAWS ) {
- fRawsQAList = new TObjArray(100) ;
- InitRaws() ;
+ if (! fRawsQAList ) {
+ fRawsQAList = new TObjArray(100) ;
+ InitRaws() ;
+ }
rv = fRawsQAList ;
} else if ( task == AliQA::kRECPOINTS ) {
- fRecPointsQAList = new TObjArray(100) ;
- InitRecPoints() ;
+ if ( ! fRecPointsQAList ) {
+ fRecPointsQAList = new TObjArray(100) ;
+ InitRecPoints() ;
+ }
rv = fRecPointsQAList ;
} else if ( task == AliQA::kESDS ) {
- fESDsQAList = new TObjArray(100) ;
- InitESDs() ;
+ if ( ! fESDsQAList ) {
+ fESDsQAList = new TObjArray(100) ;
+ InitESDs() ;
+ }
rv = fESDsQAList ;
}
AliQADataMakerRec(const char * name="", const char * title="") ; // ctor
AliQADataMakerRec(const AliQADataMakerRec& qadm) ;
AliQADataMakerRec& operator = (const AliQADataMakerRec& qadm) ;
- virtual ~AliQADataMakerRec() {;} // dtor
+ virtual ~AliQADataMakerRec() ; // dtor
virtual Int_t Add2DigitsList(TH1 * /*hist*/, const Int_t /*index*/) { return -1 ; }
virtual Int_t Add2ESDsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fESDsQAList) ; }
fDetectorDirName = GetName() ;
}
+//____________________________________________________________________________
+AliQADataMakerSim::~AliQADataMakerSim()
+{
+ //dtor: delete the TObjArray and thei content
+ fDigitsQAList->Delete() ;
+ fHitsQAList->Delete() ;
+ fSDigitsQAList->Delete() ;
+ delete fDigitsQAList ;
+ delete fHitsQAList ;
+ delete fSDigitsQAList ;
+}
+
//__________________________________________________________________
AliQADataMakerSim& AliQADataMakerSim::operator = (const AliQADataMakerSim& qadm )
{
SetCycle(cycles) ;
TObjArray * rv = NULL ;
if ( task == AliQA::kHITS ) {
- fHitsQAList = new TObjArray(100) ;
- InitHits() ;
+ if ( ! fHitsQAList ) {
+ fHitsQAList = new TObjArray(100) ;
+ InitHits() ;
+ }
rv = fHitsQAList ;
} else if ( task == AliQA::kSDIGITS ) {
- fSDigitsQAList = new TObjArray(100) ;
- InitSDigits() ;
+ if ( ! fSDigitsQAList ) {
+ fSDigitsQAList = new TObjArray(100) ;
+ InitSDigits() ;
+ }
rv = fSDigitsQAList ;
} else if ( task == AliQA::kDIGITS ) {
- fDigitsQAList = new TObjArray(100);
- InitDigits() ;
+ if ( ! fDigitsQAList ) {
+ fDigitsQAList = new TObjArray(100) ;
+ InitDigits() ;
+ }
rv = fDigitsQAList ;
}
AliQADataMakerSim(const char * name="", const char * title="") ; // ctor
AliQADataMakerSim(const AliQADataMakerSim& qadm) ;
AliQADataMakerSim& operator = (const AliQADataMakerSim& qadm) ;
- virtual ~AliQADataMakerSim() {;} // dtor
+ virtual ~AliQADataMakerSim() ; // dtor
virtual Int_t Add2DigitsList(TH1 * hist, const Int_t index) { return Add2List(hist, index, fDigitsQAList) ; }
virtual Int_t Add2ESDsList(TH1 * /*hist*/, const Int_t /*index*/) { return -1 ; }