Set raw data reader
[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//____________________________________________________________________________
7b7c1533 35 AliPHOSClusterizer::AliPHOSClusterizer():TTask("","")
9a1398dd 36{
37 // ctor
9bd3caba 38
88cb7938 39 fEventFolderName = "" ;
a2088a90 40 fFirstEvent = 0 ;
41 fLastEvent = -1 ;
75c4aeb4 42 fRawReader = 0 ;
9a1398dd 43}
8d0f3f77 44
9a1398dd 45//____________________________________________________________________________
e191bb57 46AliPHOSClusterizer::AliPHOSClusterizer(const TString alirunFileName,
47 const TString eventFolderName):
48 TTask("PHOS"+AliConfig::Instance()->GetReconstructionerTaskName(),
49 alirunFileName), fEventFolderName(eventFolderName)
d15a28e7 50{
51 // ctor
88cb7938 52
a2088a90 53 fFirstEvent = 0 ;
54 fLastEvent = -1 ;
75c4aeb4 55 fRawReader = 0 ;
d15a28e7 56}
57
58//____________________________________________________________________________
59AliPHOSClusterizer::~AliPHOSClusterizer()
60{
61 // dtor
8d0f3f77 62
b135d5f2 63 //Remove this from the parental task before destroying
acd59e25 64 if(AliPHOSGetter::Instance()->PhosLoader())
65 AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
8d0f3f77 66}
67
8d0f3f77 68