new format for raw data
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegment.h
CommitLineData
6c370def 1#ifndef ALIPHOSTRACKSEGMENT_H
2#define ALIPHOSTRACKSEGMENT_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$
11 */
12
b2a60966 13//_________________________________________________________________________
14// Track segment in PHOS
15// Can be : 1 EmcRecPoint
fbf5cb06 16// 1 EmcRecPoint + 1 CPV
b2a60966 17//
18//*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
d15a28e7 19
20// --- ROOT system ---
21
22#include "TObject.h"
e957fea8 23class TClonesArray ;
d15a28e7 24
25// --- Standard library ---
26
27// --- AliRoot header files ---
e957fea8 28class AliPHOSRecPoint ;
29class AliPHOSEmcRecPoint ;
30class AliPHOSCpvRecPoint ;
fbf5cb06 31class AliESDtrack ;
d15a28e7 32
d15a28e7 33class AliPHOSTrackSegment : public TObject {
34
35public:
36
2731cd1e 37 AliPHOSTrackSegment() {}
88714635 38 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint ,
fbf5cb06 39 AliPHOSRecPoint * Cpv) ;
40 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint ,
41 AliPHOSRecPoint * Cpv, Int_t track) ;
6ad0bfa0 42 AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ; // ctor
2731cd1e 43 virtual ~AliPHOSTrackSegment() { }
d15a28e7 44
702ab87e 45 void Copy(TObject & obj) const;
2731cd1e 46
baef0810 47 Int_t GetIndexInList() const { return fIndexInList ; }
48 Int_t GetEmcIndex() const { return fEmcRecPoint ; }
fbf5cb06 49 Int_t GetCpvIndex() const { return fCpvRecPoint; }
50 Int_t GetTrackIndex() const { return fTrack; }
2731cd1e 51
702ab87e 52 virtual void Print(const Option_t * = "") const;
2731cd1e 53 void SetIndexInList(Int_t val){ fIndexInList = val ; }
fbf5cb06 54 void SetCpvRecPoint(AliPHOSRecPoint * CpvRecPoint ); //sets CPV Rec Point
c0d5b57d 55
56 typedef TClonesArray TrackSegmentsList ;
83974468 57
88714635 58 private:
d15a28e7 59
83974468 60 Int_t fEmcRecPoint ; // The EMC reconstructed point index in array stored in TreeR/PHOSEmcRP
61 Int_t fIndexInList ; // the index of this TrackSegment in the list stored in TreeR (to be set by analysis)
fbf5cb06 62 Int_t fCpvRecPoint ; // The CPV reconstructed point in array stored in TreeR/PHOSCpvRP
63 Int_t fTrack ; // The charged track index (from global tracking) in ESD file
64
b2a60966 65 ClassDef(AliPHOSTrackSegment,1) // Track segment in PHOS
d15a28e7 66
67};
68
6c370def 69#endif // ALIPHOSTRACKSEGMENT_H