]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSTrackSegmentMaker.cxx
Quality assurance added (Yves Schutz)
[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.27  2006/08/25 16:56:30  kharlov
21  * Compliance with Effective C++
22  *
23  * Revision 1.26  2006/08/25 16:00:53  kharlov
24  * Compliance with Effective C++AliPHOSHit.cxx
25  *
26  * Revision 1.25  2005/05/28 14:19:05  schutz
27  * Compilation warnings fixed by T.P.
28  *
29  */
30
31 //_________________________________________________________________________
32 // Algorithm Base class to construct PHOS track segments
33 // Associates EMC and PPSD clusters
34 // Unfolds the EMC cluster   
35 //*-- 
36 //*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
37
38
39 // --- ROOT system ---
40
41 // --- Standard library ---
42
43 // --- AliRoot header files ---
44 #include "AliPHOSTrackSegmentMaker.h"
45 #include "AliPHOSGetter.h"
46 #include "AliPHOSQualAssDataMaker.h" 
47
48 ClassImp( AliPHOSTrackSegmentMaker) 
49
50
51 //____________________________________________________________________________
52 AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() : 
53   TTask("",""),
54   fEventFolderName(""),
55   fFirstEvent(0),
56   fLastEvent(-1),
57   fESD(0), 
58   fQADM(0x0)  
59 {
60  // ctor
61 }
62
63 //____________________________________________________________________________
64 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const TString alirunFileName, 
65                                                    const TString eventFolderName):
66   TTask("PHOS"+AliConfig::Instance()->GetTrackerTaskName(), alirunFileName), 
67   fEventFolderName(eventFolderName),
68   fFirstEvent(0),
69   fLastEvent(-1),
70   fESD(0), 
71   fQADM(0x0)
72 {
73   // ctor
74   fQADM = new  AliPHOSQualAssDataMaker() ; //!Quality Assurance Data Maker
75   GetQualAssDataMaker()->Init(AliQualAss::kTRACKSEGMENTS) ; 
76 }
77
78 //____________________________________________________________________________
79 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) :
80   TTask(tsmaker),
81   fEventFolderName(tsmaker.GetEventFolderName()),
82   fFirstEvent(tsmaker.GetFirstEvent()),
83   fLastEvent(tsmaker.GetLastEvent()),
84   fESD(tsmaker.GetESD()), 
85   fQADM(tsmaker.fQADM)
86 {
87   //Copy constructor
88
89
90 //____________________________________________________________________________
91 AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
92 {
93  //Remove this from the parental task before destroying
94   if(AliPHOSGetter::Instance()->PhosLoader())
95     AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();
96   delete fQADM ; 
97 }
98