]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSClusterizer.cxx
Modifications needed to run analysis with proof.
[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 {
42   // ctor
43 }
44
45 //____________________________________________________________________________
46 AliPHOSClusterizer::AliPHOSClusterizer(const TString alirunFileName, 
47                                        const TString eventFolderName):
48   TTask("PHOS"+AliConfig::Instance()->GetReconstructionerTaskName(), 
49         alirunFileName), fEventFolderName(eventFolderName),
50   fFirstEvent(0),
51   fLastEvent(-1),
52   fRawReader(0)
53 {
54   // ctor
55 }
56
57 //____________________________________________________________________________
58 AliPHOSClusterizer::AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer) :
59   TTask(clusterizer),fEventFolderName(clusterizer.GetEventFolderName()),
60   fFirstEvent(clusterizer.GetFirstEvent()),fLastEvent(clusterizer.GetLastEvent()),
61   fRawReader(clusterizer.GetRawReader())
62 {
63   //Copy constructor
64 }
65 //____________________________________________________________________________
66 AliPHOSClusterizer::~AliPHOSClusterizer()
67 {
68   // dtor
69          
70  //Remove this from the parental task before destroying
71   if(AliPHOSGetter::Instance()->PhosLoader())
72     AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
73 }
74
75