]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSClusterizer.cxx
Initialize fQADM in constructor
[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 // --- AliRoot header files ---
33 #include "AliPHOSQualAssDataMaker.h"
34
35 ClassImp(AliPHOSClusterizer)
36
37 //____________________________________________________________________________
38 AliPHOSClusterizer::AliPHOSClusterizer():
39   TTask("",""),
40   fEventFolderName(""),
41   fFirstEvent(0),
42   fLastEvent(-1),
43   fRawReader(0),
44   fQADM(0)
45 {
46   // ctor
47 }
48
49 //____________________________________________________________________________
50 AliPHOSClusterizer::AliPHOSClusterizer(const TString alirunFileName, 
51                                        const TString eventFolderName):
52   TTask("PHOS"+AliConfig::Instance()->GetReconstructionerTaskName(), 
53         alirunFileName), fEventFolderName(eventFolderName),
54   fFirstEvent(0),
55   fLastEvent(-1),
56   fRawReader(0),
57   fQADM(0)
58 {
59   // ctor
60   fQADM = new AliPHOSQualAssDataMaker() ;  
61   //initiaizes the quality assurance data maker
62   fQADM ->Init(AliQualAss::kRECPOINTS) ;    
63 }
64
65 //____________________________________________________________________________
66 AliPHOSClusterizer::AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer) :
67   TTask(clusterizer),fEventFolderName(clusterizer.GetEventFolderName()),
68   fFirstEvent(clusterizer.GetFirstEvent()),fLastEvent(clusterizer.GetLastEvent()),
69   fRawReader(clusterizer.GetRawReader()),
70   fQADM(clusterizer.GetQualAssDataMaker())
71   
72 {
73   //Copy constructor
74 }
75 //____________________________________________________________________________
76 AliPHOSClusterizer::~AliPHOSClusterizer()
77 {
78   // dtor
79          
80  //Remove this from the parental task before destroying
81   if(AliPHOSGetter::Instance()->PhosLoader())
82     AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
83 }
84
85