coverity fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegmentMaker.h
CommitLineData
92862013 1#ifndef ALIPHOSTRACKSEGMENTMAKER_H
2#define ALIPHOSTRACKSEGMENTMAKER_H
d15a28e7 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6ad0bfa0 6/* $Id$ */
7
702ab87e 8/* History of cvs commits:
9 *
10 * $Log$
d76c31f4 11 * Revision 1.43 2007/08/28 12:55:08 policheh
12 * Loaders removed from the reconstruction code (C.Cheshkov)
13 *
9a2cdbdf 14 * Revision 1.42 2007/08/07 14:12:03 kharlov
15 * Quality assurance added (Yves Schutz)
16 *
ddd1a39c 17 * Revision 1.41 2007/07/11 13:43:30 hristov
18 * New class AliESDEvent, backward compatibility with the old AliESD (Christian)
19 *
af885e0f 20 * Revision 1.40 2006/08/29 11:41:19 kharlov
21 * Missing implementation of ctors and = operator are added
22 *
f1133801 23 * Revision 1.39 2006/08/25 16:00:53 kharlov
24 * Compliance with Effective C++AliPHOSHit.cxx
25 *
e2429969 26 * Revision 1.38 2005/05/28 14:19:05 schutz
27 * Compilation warnings fixed by T.P.
28 *
702ab87e 29 */
30
b2a60966 31//_________________________________________________________________________
32// Algorithm Base class to construct PHOS track segments
fbf5cb06 33// Associates EMC and CPV clusters
b2a60966 34// Unfolds the EMC cluster
35//
2731cd1e 36//*-- Author: Dmitri Peressounko (RRC Kurchatov Institute & SUBATECH)
d15a28e7 37
38// --- ROOT system ---
9a2cdbdf 39#include <TObject.h>
40class TTree;
d15a28e7 41
42// --- AliRoot header files ---
2731cd1e 43class AliPHOSGeometry ;
af885e0f 44class AliESDEvent ;
2731cd1e 45
9a2cdbdf 46class AliPHOSTrackSegmentMaker : public TObject {
d15a28e7 47
48public:
49
88cb7938 50 AliPHOSTrackSegmentMaker();
9a2cdbdf 51 AliPHOSTrackSegmentMaker(AliPHOSGeometry *geom);
e2429969 52 AliPHOSTrackSegmentMaker(const AliPHOSTrackSegmentMaker & tsmaker) ;
8d0f3f77 53 virtual ~ AliPHOSTrackSegmentMaker() ;
f1133801 54 AliPHOSTrackSegmentMaker & operator = (const AliPHOSTrackSegmentMaker & /*rvalue*/) {
55 Fatal("operator =", "not implemented") ; return *this ; }
d15a28e7 56
9a2cdbdf 57 virtual void Clusters2TrackSegments(Option_t *option) = 0;
58
59 void SetInput(TTree *clustersTree);
2731cd1e 60
702ab87e 61 virtual void Print(const Option_t * = "")const {Warning("Print", "Not Defined" ) ; }
e2429969 62
af885e0f 63 void SetESD(AliESDEvent *esd) { fESD = esd; }
b9791748 64
af885e0f 65 AliESDEvent *GetESD() const {return fESD; }
e2429969 66
9a2cdbdf 67 virtual TClonesArray * GetTrackSegments() const = 0;
68
88cb7938 69protected:
ddd1a39c 70
af885e0f 71 AliESDEvent * fESD; //! ESD object
9a2cdbdf 72 AliPHOSGeometry *fGeom; //! Pointer to the PHOS geometry
73 TObjArray *fEMCRecPoints; // Array with the EMC clusters
74 TObjArray *fCPVRecPoints; // Array with the CPV clusters
ddd1a39c 75
9a2cdbdf 76 ClassDef( AliPHOSTrackSegmentMaker,6) // Algorithm class to make PHOS track segments (Base Class)
d15a28e7 77};
78
92862013 79#endif // ALIPHOSTRACKSEGMENTMAKER_H