Protection against uninitialized fQADM
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17
18 //_________________________________________________________________________
19 //  Base class for the clusterization algorithm (pure abstract)
20 //*--
21 //*-- Author: Yves Schutz  SUBATECH 
22 //////////////////////////////////////////////////////////////////////////////
23
24 // --- ROOT system ---
25
26 // --- Standard library ---
27
28 // --- AliRoot header files ---
29 #include "AliPHOSClusterizer.h"
30 #include "AliPHOSGetter.h" 
31
32 ClassImp(AliPHOSClusterizer)
33
34 //____________________________________________________________________________
35 AliPHOSClusterizer::AliPHOSClusterizer():
36   TTask("",""),
37   fEventFolderName(""),
38   fFirstEvent(0),
39   fLastEvent(-1),
40   fRawReader(0),
41   fQADM(0)
42 {
43   // ctor
44 }
45
46 //____________________________________________________________________________
47 AliPHOSClusterizer::AliPHOSClusterizer(const TString alirunFileName, 
48                                        const TString eventFolderName):
49   TTask("PHOS"+AliConfig::Instance()->GetReconstructionerTaskName(), 
50         alirunFileName), fEventFolderName(eventFolderName),
51   fFirstEvent(0),
52   fLastEvent(-1),
53   fRawReader(0),
54   fQADM(0)
55 {
56   // ctor
57 }
58
59 //____________________________________________________________________________
60 AliPHOSClusterizer::AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer) :
61   TTask(clusterizer),fEventFolderName(clusterizer.GetEventFolderName()),
62   fFirstEvent(clusterizer.GetFirstEvent()),fLastEvent(clusterizer.GetLastEvent()),
63   fRawReader(clusterizer.GetRawReader()),
64   fQADM(clusterizer.GetQualAssDataMaker())
65   
66 {
67   //Copy constructor
68 }
69 //____________________________________________________________________________
70 AliPHOSClusterizer::~AliPHOSClusterizer()
71 {
72   // dtor
73          
74  //Remove this from the parental task before destroying
75   if(AliPHOSGetter::Instance()->PhosLoader())
76     AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
77 }
78
79