Bugs corrected (A. Dainese)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPID.cxx
CommitLineData
6ad0bfa0 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
6ad0bfa0 18//_________________________________________________________________________
b2a60966 19// Algorithm class for the identification of particles detected in PHOS
2f04ed65 20// base class of identified particle
21// Why should I put meaningless comments
22// just to satisfy
23// the code checker
24
b2a60966 25//
7acf6008 26//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko
b2a60966 27
6ad0bfa0 28
29// --- ROOT system ---
e957fea8 30
6ad0bfa0 31// --- Standard library ---
6ad0bfa0 32
6ad0bfa0 33// --- AliRoot header files ---
e957fea8 34#include "AliConfig.h"
26d4b141 35#include "AliPHOSPID.h"
b135d5f2 36#include "AliPHOSGetter.h"
ddd1a39c 37#include "AliPHOSQualAssDataMaker.h"
6ad0bfa0 38
26d4b141 39ClassImp(AliPHOSPID)
6ad0bfa0 40
41//____________________________________________________________________________
0378398c 42AliPHOSPID::AliPHOSPID():
43 TTask("",""),
44 fEventFolderName(""),
45 fFirstEvent(0),
ddd1a39c 46 fLastEvent(-1),
47 fESD(0x0),
48 fQADM(0x0)
6ad0bfa0 49{
50 // ctor
51}
7b7c1533 52
8d0f3f77 53
7acf6008 54//____________________________________________________________________________
e191bb57 55AliPHOSPID::AliPHOSPID(const TString alirunFileName, const TString eventFolderName):
56 TTask("PHOS"+AliConfig::Instance()->GetPIDTaskName(), alirunFileName),
0378398c 57 fEventFolderName(eventFolderName),
58 fFirstEvent(0),
ddd1a39c 59 fLastEvent(-1),
60 fESD(0x0),
61 fQADM(0x0)
7acf6008 62{
63 // ctor
ddd1a39c 64 fQADM = new AliPHOSQualAssDataMaker() ; //!Quality Assurance Data Maker
65 GetQualAssDataMaker()->Init(AliQualAss::kRECPARTICLES) ;
b2820c13 66}
67
68//____________________________________________________________________________
e2429969 69AliPHOSPID::AliPHOSPID(const AliPHOSPID & pid) :
70 TTask(pid),fEventFolderName(pid.GetEventFolderName()),
ddd1a39c 71 fFirstEvent(pid.GetFirstEvent()),fLastEvent(pid.GetLastEvent()),
72 fESD(pid.fESD),
73 fQADM(pid.fQADM)
e2429969 74{
75 // Copy constructor
76}
77//____________________________________________________________________________
26d4b141 78AliPHOSPID::~AliPHOSPID()
6ad0bfa0 79{
80 // dtor
b135d5f2 81 //Remove this from the parental task before destroying
73d30fc8 82 if(AliPHOSGetter::Instance()->PhosLoader())
83 AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();
ddd1a39c 84 delete fQADM ;
8d0f3f77 85}
88cb7938 86