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.28 2007/08/07 14:12:03 kharlov
21 * Quality assurance added (Yves Schutz)
23 * Revision 1.27 2006/08/25 16:56:30 kharlov
24 * Compliance with Effective C++
26 * Revision 1.26 2006/08/25 16:00:53 kharlov
27 * Compliance with Effective C++AliPHOSHit.cxx
29 * Revision 1.25 2005/05/28 14:19:05 schutz
30 * Compilation warnings fixed by T.P.
34 //_________________________________________________________________________
35 // Algorithm Base class to construct PHOS track segments
36 // Associates EMC and PPSD clusters
37 // Unfolds the EMC cluster
39 //*-- Author: Dmitri Peressounko (RRC Ki & SUBATECH)
42 // --- ROOT system ---
45 // --- Standard library ---
47 // --- AliRoot header files ---
48 #include "AliPHOSTrackSegmentMaker.h"
49 #include "AliPHOSQualAssDataMaker.h"
51 ClassImp( AliPHOSTrackSegmentMaker)
54 //____________________________________________________________________________
55 AliPHOSTrackSegmentMaker:: AliPHOSTrackSegmentMaker() :
66 //____________________________________________________________________________
67 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(AliPHOSGeometry *geom):
76 fQADM = new AliPHOSQualAssDataMaker() ; //!Quality Assurance Data Maker
77 GetQualAssDataMaker()->Init(AliQualAss::kTRACKSEGMENTS) ;
80 //____________________________________________________________________________
81 AliPHOSTrackSegmentMaker::AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) :
83 fESD(tsmaker.GetESD()),
86 fEMCRecPoints(tsmaker.fEMCRecPoints),
87 fCPVRecPoints(tsmaker.fCPVRecPoints)
92 //____________________________________________________________________________
93 AliPHOSTrackSegmentMaker::~AliPHOSTrackSegmentMaker()
95 //Remove this from the parental task before destroying
96 // if(AliPHOSGetter::Instance()->PhosLoader())
97 // AliPHOSGetter::Instance()->PhosLoader()->CleanTracker();
100 fEMCRecPoints->Delete();
101 delete fEMCRecPoints;
104 fCPVRecPoints->Delete();
105 delete fCPVRecPoints;
109 //____________________________________________________________________________
110 void AliPHOSTrackSegmentMaker::SetInput(TTree *clustersTree)
112 // Read the clusters tree and creates the
113 // arrays with the EMC and CPV
115 // and set the corresponding branch addresses
117 TBranch *emcbranch = clustersTree->GetBranch("PHOSEmcRP");
119 AliError("can't get the branch with the PHOS EMC clusters !");
122 fEMCRecPoints = new TObjArray(100) ;
123 emcbranch->SetAddress(&fEMCRecPoints);
124 emcbranch->GetEntry(0);
126 TBranch *cpvbranch = clustersTree->GetBranch("PHOSCpvRP");
128 AliError("can't get the branch with the PHOS CPV clusters !");
131 fCPVRecPoints = new TObjArray(100) ;
132 cpvbranch->SetAddress(&fCPVRecPoints);
133 cpvbranch->GetEntry(0);