Bug fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.cxx
CommitLineData
d15a28e7 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
b2a60966 16/* $Id$ */
17
d15a28e7 18//_________________________________________________________________________
b2a60966 19// Base class for the clusterization algorithm (pure abstract)
baef0810 20//*--
b2a60966 21//*-- Author: Yves Schutz SUBATECH
d15a28e7 22//////////////////////////////////////////////////////////////////////////////
23
24// --- ROOT system ---
25
d15a28e7 26// --- Standard library ---
d15a28e7 27
28// --- AliRoot header files ---
d15a28e7 29#include "AliPHOSClusterizer.h"
b135d5f2 30#include "AliPHOSGetter.h"
d15a28e7 31
32ClassImp(AliPHOSClusterizer)
33
34//____________________________________________________________________________
0378398c 35AliPHOSClusterizer::AliPHOSClusterizer():
36 TTask("",""),
37 fEventFolderName(""),
38 fFirstEvent(0),
39 fLastEvent(-1),
40 fRawReader(0)
9a1398dd 41{
42 // ctor
43}
8d0f3f77 44
9a1398dd 45//____________________________________________________________________________
e191bb57 46AliPHOSClusterizer::AliPHOSClusterizer(const TString alirunFileName,
47 const TString eventFolderName):
48 TTask("PHOS"+AliConfig::Instance()->GetReconstructionerTaskName(),
0378398c 49 alirunFileName), fEventFolderName(eventFolderName),
50 fFirstEvent(0),
51 fLastEvent(-1),
52 fRawReader(0)
d15a28e7 53{
54 // ctor
55}
56
57//____________________________________________________________________________
0378398c 58AliPHOSClusterizer::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//____________________________________________________________________________
d15a28e7 66AliPHOSClusterizer::~AliPHOSClusterizer()
67{
68 // dtor
8d0f3f77 69
b135d5f2 70 //Remove this from the parental task before destroying
acd59e25 71 if(AliPHOSGetter::Instance()->PhosLoader())
72 AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
8d0f3f77 73}
74
8d0f3f77 75