]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegmentMaker.cxx
Replacing array of objects by array of pointers
[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  */
21
22 //_________________________________________________________________________
23 // Algorithm Base class to construct PHOS track segments
24 // Associates EMC and PPSD clusters
25 // Unfolds the EMC cluster   
26 //*-- 
27 //*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
28
29
30 // --- ROOT system ---
31
32 // --- Standard library ---
33
34 // --- AliRoot header files ---
35 #include "AliPHOSTrackSegmentMaker.h"
36 #include "AliPHOSGetter.h"
37
38 ClassImp( AliPHOSTrackSegmentMaker) 
39
40
41 //____________________________________________________________________________
42   AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() : TTask("","")
43 {
44   // ctor
45   fEventFolderName = "" ; 
46   fFirstEvent = 0 ; 
47   fLastEvent  = -1 ; 
48 }
49
50 //____________________________________________________________________________
51 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const TString alirunFileName, 
52                                                    const TString eventFolderName):
53   TTask("PHOS"+AliConfig::Instance()->GetTrackerTaskName(), alirunFileName), 
54   fEventFolderName(eventFolderName)
55 {
56   // ctor
57   fFirstEvent = 0 ; 
58   fLastEvent  = -1 ; 
59 }
60
61 //____________________________________________________________________________
62 AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
63 {
64  //Remove this from the parental task before destroying
65   if(AliPHOSGetter::Instance()->PhosLoader())
66     AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();
67 }
68