1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //_________________________________________________________________________
19 // Base class for the clusterization algorithm (pure abstract)
21 //*-- Author: Yves Schutz SUBATECH
22 //////////////////////////////////////////////////////////////////////////////
24 // --- ROOT system ---
26 // --- Standard library ---
28 // --- AliRoot header files ---
29 #include "AliPHOSClusterizer.h"
30 #include "AliPHOSGetter.h"
32 // --- AliRoot header files ---
33 #include "AliPHOSQualAssDataMaker.h"
35 ClassImp(AliPHOSClusterizer)
37 //____________________________________________________________________________
38 AliPHOSClusterizer::AliPHOSClusterizer():
49 //____________________________________________________________________________
50 AliPHOSClusterizer::AliPHOSClusterizer(const TString alirunFileName,
51 const TString eventFolderName):
52 TTask("PHOS"+AliConfig::Instance()->GetReconstructionerTaskName(),
53 alirunFileName), fEventFolderName(eventFolderName),
60 fQADM = new AliPHOSQualAssDataMaker() ;
61 //initiaizes the quality assurance data maker
62 fQADM ->Init(AliQualAss::kRECPOINTS) ;
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())
75 //____________________________________________________________________________
76 AliPHOSClusterizer::~AliPHOSClusterizer()
80 //Remove this from the parental task before destroying
81 if(AliPHOSGetter::Instance()->PhosLoader())
82 AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();