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 **************************************************************************/
17 /* History of cvs commits:
20 * Revision 1.27 2006/08/25 16:56:30 kharlov
21 * Compliance with Effective C++
23 * Revision 1.26 2006/08/25 16:00:53 kharlov
24 * Compliance with Effective C++AliPHOSHit.cxx
26 * Revision 1.25 2005/05/28 14:19:05 schutz
27 * Compilation warnings fixed by T.P.
31 //_________________________________________________________________________
32 // Algorithm Base class to construct PHOS track segments
33 // Associates EMC and PPSD clusters
34 // Unfolds the EMC cluster
36 //*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
39 // --- ROOT system ---
41 // --- Standard library ---
43 // --- AliRoot header files ---
44 #include "AliPHOSTrackSegmentMaker.h"
45 #include "AliPHOSGetter.h"
46 #include "AliPHOSQualAssDataMaker.h"
48 ClassImp( AliPHOSTrackSegmentMaker)
51 //____________________________________________________________________________
52 AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() :
63 //____________________________________________________________________________
64 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const TString alirunFileName,
65 const TString eventFolderName):
66 TTask("PHOS"+AliConfig::Instance()->GetTrackerTaskName(), alirunFileName),
67 fEventFolderName(eventFolderName),
74 fQADM = new AliPHOSQualAssDataMaker() ; //!Quality Assurance Data Maker
75 GetQualAssDataMaker()->Init(AliQualAss::kTRACKSEGMENTS) ;
78 //____________________________________________________________________________
79 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) :
81 fEventFolderName(tsmaker.GetEventFolderName()),
82 fFirstEvent(tsmaker.GetFirstEvent()),
83 fLastEvent(tsmaker.GetLastEvent()),
84 fESD(tsmaker.GetESD()),
90 //____________________________________________________________________________
91 AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
93 //Remove this from the parental task before destroying
94 if(AliPHOSGetter::Instance()->PhosLoader())
95 AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();