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