]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PHOS/AliPHOSTrackSegment.h
Container classes for the PHOS reconstruction parameters.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegment.h
... / ...
CommitLineData
1#ifndef ALIPHOSTRACKSEGMENT_H
2#define ALIPHOSTRACKSEGMENT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8/* History of cvs commits:
9 *
10 * $Log$
11 * Revision 1.22 2005/05/28 14:19:05 schutz
12 * Compilation warnings fixed by T.P.
13 *
14 */
15
16//_________________________________________________________________________
17// Track segment in PHOS
18// Can be : 1 EmcRecPoint
19// 1 EmcRecPoint + 1 CPV
20//
21//*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
22
23// --- ROOT system ---
24
25#include "TObject.h"
26class TClonesArray ;
27
28// --- Standard library ---
29
30// --- AliRoot header files ---
31class AliPHOSRecPoint ;
32class AliPHOSEmcRecPoint ;
33class AliPHOSCpvRecPoint ;
34class AliESDtrack ;
35
36class AliPHOSTrackSegment : public TObject {
37
38public:
39
40 AliPHOSTrackSegment() ;
41 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint ,
42 AliPHOSRecPoint * Cpv) ;
43 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint ,
44 AliPHOSRecPoint * Cpv, Int_t track) ;
45 AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ; // ctor
46 virtual ~AliPHOSTrackSegment() { }
47
48 void Copy(TObject & obj) const;
49
50 Int_t GetIndexInList() const { return fIndexInList ; }
51 Int_t GetEmcIndex() const { return fEmcRecPoint ; }
52 Int_t GetCpvIndex() const { return fCpvRecPoint; }
53 Int_t GetTrackIndex() const { return fTrack; }
54
55 virtual void Print(const Option_t * = "") const;
56 void SetIndexInList(Int_t val){ fIndexInList = val ; }
57 void SetCpvRecPoint(AliPHOSRecPoint * CpvRecPoint ); //sets CPV Rec Point
58
59 typedef TClonesArray TrackSegmentsList ;
60
61 private:
62
63 Int_t fEmcRecPoint ; // The EMC reconstructed point index in array stored in TreeR/PHOSEmcRP
64 Int_t fIndexInList ; // the index of this TrackSegment in the list stored in TreeR (to be set by analysis)
65 Int_t fCpvRecPoint ; // The CPV reconstructed point in array stored in TreeR/PHOSCpvRP
66 Int_t fTrack ; // The charged track index (from global tracking) in ESD file
67
68 ClassDef(AliPHOSTrackSegment,1) // Track segment in PHOS
69
70};
71
72#endif // ALIPHOSTRACKSEGMENT_H