]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegmentMaker.cxx
Compliance with Effective C++AliPHOSHit.cxx
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.cxx
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 /* $Id$ */
16
17 /* History of cvs commits:
18  *
19  * $Log$
20  * Revision 1.25  2005/05/28 14:19:05  schutz
21  * Compilation warnings fixed by T.P.
22  *
23  */
24
25 //_________________________________________________________________________
26 // Algorithm Base class to construct PHOS track segments
27 // Associates EMC and PPSD clusters
28 // Unfolds the EMC cluster   
29 //*-- 
30 //*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
31
32
33 // --- ROOT system ---
34
35 // --- Standard library ---
36
37 // --- AliRoot header files ---
38 #include "AliPHOSTrackSegmentMaker.h"
39 #include "AliPHOSGetter.h"
40
41 ClassImp( AliPHOSTrackSegmentMaker) 
42
43
44 //____________________________________________________________________________
45   AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() : TTask("","")
46 {
47   // ctor
48   fEventFolderName = "" ; 
49   fFirstEvent = 0 ; 
50   fLastEvent  = -1 ; 
51 }
52
53 //____________________________________________________________________________
54 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const TString alirunFileName, 
55                                                    const TString eventFolderName):
56   TTask("PHOS"+AliConfig::Instance()->GetTrackerTaskName(), alirunFileName), 
57   fEventFolderName(eventFolderName)
58 {
59   // ctor
60   fFirstEvent = 0 ; 
61   fLastEvent  = -1 ; 
62 }
63
64 //____________________________________________________________________________
65 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) :
66   TTask(tsmaker),fEventFolderName(tsmaker.GetEventFolderName()),
67   fFirstEvent(tsmaker.GetFirstEvent()),fLastEvent(tsmaker.GetLastEvent()),
68   fESD(tsmaker.GetESD())
69 {
70   //Copy constructor
71
72
73 //____________________________________________________________________________
74 AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
75 {
76  //Remove this from the parental task before destroying
77   if(AliPHOSGetter::Instance()->PhosLoader())
78     AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();
79 }
80