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 // Algorithm class for the identification of particles detected in PHOS
20 // base class of identified particle
21 // Why should I put meaningless comments
26 //*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko
29 // --- ROOT system ---
31 // --- Standard library ---
33 // --- AliRoot header files ---
34 #include "AliConfig.h"
35 #include "AliPHOSPID.h"
36 #include "AliPHOSGetter.h"
40 //____________________________________________________________________________
41 AliPHOSPID::AliPHOSPID():
51 //____________________________________________________________________________
52 AliPHOSPID::AliPHOSPID(const TString alirunFileName, const TString eventFolderName):
53 TTask("PHOS"+AliConfig::Instance()->GetPIDTaskName(), alirunFileName),
54 fEventFolderName(eventFolderName),
61 //____________________________________________________________________________
62 AliPHOSPID::AliPHOSPID(const AliPHOSPID & pid) :
63 TTask(pid),fEventFolderName(pid.GetEventFolderName()),
64 fFirstEvent(pid.GetFirstEvent()),fLastEvent(pid.GetLastEvent())
68 //____________________________________________________________________________
69 AliPHOSPID::~AliPHOSPID()
72 //Remove this from the parental task before destroying
73 if(AliPHOSGetter::Instance()->PhosLoader())
74 AliPHOSGetter::Instance()->PhosLoader()->CleanPIDTask();