]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSClusterizer.cxx
1fd2aaa36f997dbe17df0d51edd97cfab5cabfb9
[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():TTask("","")
36 {
37   // ctor
38
39   fEventFolderName = "" ; 
40   fFirstEvent = 0 ; 
41   fLastEvent  = -1 ; 
42   fRawReader  = 0 ;
43 }
44
45 //____________________________________________________________________________
46 AliPHOSClusterizer::AliPHOSClusterizer(const TString alirunFileName, 
47                                        const TString eventFolderName):
48   TTask("PHOS"+AliConfig::Instance()->GetReconstructionerTaskName(), 
49         alirunFileName), fEventFolderName(eventFolderName)
50 {
51   // ctor
52  
53   fFirstEvent = 0 ; 
54   fLastEvent  = -1 ; 
55   fRawReader  = 0 ;
56 }
57
58 //____________________________________________________________________________
59 AliPHOSClusterizer::~AliPHOSClusterizer()
60 {
61   // dtor
62          
63  //Remove this from the parental task before destroying
64   if(AliPHOSGetter::Instance()->PhosLoader())
65     AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
66 }
67
68