----------------------------------------------------------------------
[u/mrichter/AliRoot.git] / PHOS / AliPHOSTrackSegment.h
CommitLineData
d15a28e7 1#ifndef ALIPHOSSUBTRACK_H
2#define ALIPHOSSUBTRACK_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/////////////////////////////////////////////////
7// Short description //
8// Version SUBATECH //
9// Author Dmitri Peressounko RRC KI //
10// comment: contains pairs (triplets) of //
11// EMC+PPSD(+PPSD) clusters, and //
12// evaluates particle type, //
13// energy, etc //
14/////////////////////////////////////////////////
15
16// --- ROOT system ---
17
18#include "TObject.h"
19#include "TVector3.h"
20
21// --- Standard library ---
22
23// --- AliRoot header files ---
24
25#include "AliPHOSEmcRecPoint.h"
26#include "AliPHOSPpsdRecPoint.h"
27
28
29
30class AliPHOSTrackSegment : public TObject {
31
32public:
33
34 AliPHOSTrackSegment() {} ; // ctor
35 AliPHOSTrackSegment(AliPHOSEmcRecPoint * EmcRecPoint , AliPHOSPpsdRecPoint * PpsdUp,
36 AliPHOSPpsdRecPoint * PpsdLow ) ;
37 virtual ~AliPHOSTrackSegment() ; // dtor
38
39 Int_t GetPartType() ; // Returns 0 - gamma, 1 - e+, e- ; 2 - neutral hadron ; 3 - charged hadron
40 Float_t GetEnergy(){ return fEmcRecPoint->GetTotalEnergy() ;} // Returs energy in EMC
41 Float_t GetDistanceInPHOSPlane(void) ; // computes in PHOS plane the relative position between EMC and PPSD clusters
42 Bool_t GetMomentumDirection( TVector3 & dir ) ; // True if determined
43 void GetPosition( TVector3 & pos ) ; // Returns positions of hits
44 void Print() ;
45 void SetDispersionCutOff(Float_t Dcut) {fCutOnDispersion = Dcut ; }
46
47
48private:
49
50 AliPHOSEmcRecPoint * fEmcRecPoint ;
51 AliPHOSPpsdRecPoint * fPpsdLow ;
52 AliPHOSPpsdRecPoint * fPpsdUp ;
53
54 Float_t fCutOnDispersion ;
55
56public:
57
58 ClassDef(AliPHOSTrackSegment,1) // description , version 1
59
60};
61
62#endif // AliPHOSSUBTRACK_H