]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSClusterizer.cxx
Updated QA classes (Yves)
[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"
a5fa6165 31#include "AliPHOSQualAssDataMaker.h"
d15a28e7 32
75e8b893 33// --- AliRoot header files ---
34#include "AliPHOSQualAssDataMaker.h"
35
d15a28e7 36ClassImp(AliPHOSClusterizer)
37
38//____________________________________________________________________________
0378398c 39AliPHOSClusterizer::AliPHOSClusterizer():
40 TTask("",""),
41 fEventFolderName(""),
42 fFirstEvent(0),
43 fLastEvent(-1),
7ae07b77 44 fRawReader(0),
45 fQADM(0)
9a1398dd 46{
a5fa6165 47 // ctor
9a1398dd 48}
8d0f3f77 49
9a1398dd 50//____________________________________________________________________________
e191bb57 51AliPHOSClusterizer::AliPHOSClusterizer(const TString alirunFileName,
52 const TString eventFolderName):
53 TTask("PHOS"+AliConfig::Instance()->GetReconstructionerTaskName(),
0378398c 54 alirunFileName), fEventFolderName(eventFolderName),
55 fFirstEvent(0),
56 fLastEvent(-1),
7ae07b77 57 fRawReader(0),
58 fQADM(0)
d15a28e7 59{
60 // ctor
75e8b893 61 fQADM = new AliPHOSQualAssDataMaker() ;
62 //initiaizes the quality assurance data maker
63 fQADM ->Init(AliQualAss::kRECPOINTS) ;
d15a28e7 64}
65
0378398c 66//____________________________________________________________________________
67AliPHOSClusterizer::AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer) :
68 TTask(clusterizer),fEventFolderName(clusterizer.GetEventFolderName()),
69 fFirstEvent(clusterizer.GetFirstEvent()),fLastEvent(clusterizer.GetLastEvent()),
7ae07b77 70 fRawReader(clusterizer.GetRawReader()),
71 fQADM(clusterizer.GetQualAssDataMaker())
0378398c 72{
73 //Copy constructor
a5fa6165 74 //initiaizes the quality assurance data maker
75 GetQualAssDataMaker()->Init(AliQualAss::kRECPOINTS) ;
0378398c 76}
d15a28e7 77//____________________________________________________________________________
78AliPHOSClusterizer::~AliPHOSClusterizer()
79{
80 // dtor
8d0f3f77 81
b135d5f2 82 //Remove this from the parental task before destroying
acd59e25 83 if(AliPHOSGetter::Instance()->PhosLoader())
84 AliPHOSGetter::Instance()->PhosLoader()->CleanReconstructioner();
a5fa6165 85 delete fQADM ;
8d0f3f77 86}
87
8d0f3f77 88