Coding rule violation corrected. Read branches instead of whole trees
[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
b2a60966 8//_________________________________________________________________________
9// Track segment in PHOS
10// Can be : 1 EmcRecPoint
11// 1 EmcRecPoint + 1 PPSD
12// 1 EmcRecPoint + 1 PPSD + 1 PPSD
13//
14//*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
d15a28e7 15
16// --- ROOT system ---
17
18#include "TObject.h"
d15a28e7 19
20// --- Standard library ---
21
22// --- AliRoot header files ---
23
24#include "AliPHOSEmcRecPoint.h"
2731cd1e 25#include "AliPHOSRecPoint.h"
d15a28e7 26
d15a28e7 27class AliPHOSTrackSegment : public TObject {
28
29public:
30
2731cd1e 31 AliPHOSTrackSegment() {}
88714635 32 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint ,
2731cd1e 33 AliPHOSRecPoint * PpsdUp,
34 AliPHOSRecPoint * PpsdLow ) ; // ctor
6ad0bfa0 35 AliPHOSTrackSegment(const AliPHOSTrackSegment & ts) ; // ctor
2731cd1e 36 virtual ~AliPHOSTrackSegment() { }
d15a28e7 37
6ad0bfa0 38 void Copy(TObject & obj) ;
2731cd1e 39
40 Int_t GetIndexInList() const { return fIndexInList ; }
41 Int_t GetEmcIndex()const { return fEmcRecPoint ; }
42 Int_t GetPpsdIndex()const{ return fPpsdLowRecPoint;}
43 Int_t GetCpvIndex()const { return fPpsdUpRecPoint; }
44
45 virtual void Print(Option_t * option) ;
46 void SetIndexInList(Int_t val){ fIndexInList = val ; }
47 void SetCpvRecPoint(AliPHOSRecPoint * PpsdUpRecPoint ); //sets PPSD up Rec Point
c0d5b57d 48
49 typedef TClonesArray TrackSegmentsList ;
83974468 50
88714635 51 private:
d15a28e7 52
83974468 53 Int_t fEmcRecPoint ; // The EMC reconstructed point index in array stored in TreeR/PHOSEmcRP
54 Int_t fIndexInList ; // the index of this TrackSegment in the list stored in TreeR (to be set by analysis)
55 Int_t fPpsdLowRecPoint ; // The PPSD reconstructed point from the lower layer index in array stored in TreeR/PHOSPpsdRP
56 Int_t fPpsdUpRecPoint ; // The PPSD reconstructed point from the upper layer index in array stored in TreeR/PHOSPpsdRP
c0d5b57d 57
b2a60966 58 ClassDef(AliPHOSTrackSegment,1) // Track segment in PHOS
d15a28e7 59
60};
61
6c370def 62#endif // ALIPHOSTRACKSEGMENT_H