]>
Commit | Line | Data |
---|---|---|
6ad0bfa0 | 1 | #ifndef ALIPHOSRECPARTICLE_H |
2 | #define ALIPHOSRECPARTICLE_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 | ||
b2a60966 | 8 | //_________________________________________________________________________ |
9 | // A Reconstructed Particle in PHOS | |
10 | // To become a general class of AliRoot ? | |
2f04ed65 | 11 | // why not |
b2a60966 | 12 | //*-- Author: Yves Schutz (SUBATECH) |
6ad0bfa0 | 13 | |
14 | // --- ROOT system --- | |
15 | ||
6ad0bfa0 | 16 | // --- Standard library --- |
17 | ||
18 | // --- AliRoot header files --- | |
19 | ||
bd46e694 | 20 | #include "AliPHOSFastRecParticle.h" |
06e774ed | 21 | |
8f3968d8 | 22 | class TParticle ; |
d956e9b7 | 23 | #include "TVector3.h" |
6ad0bfa0 | 24 | |
bd46e694 | 25 | class AliPHOSRecParticle : public AliPHOSFastRecParticle { |
6ad0bfa0 | 26 | |
baef0810 | 27 | public: |
6ad0bfa0 | 28 | |
0272607d | 29 | AliPHOSRecParticle() ; |
a73f33f0 | 30 | AliPHOSRecParticle(const AliPHOSRecParticle & rp) ; // ctor |
9995f078 | 31 | virtual ~AliPHOSRecParticle(){ } |
2731cd1e | 32 | |
a278df55 | 33 | Int_t GetPHOSTSIndex()const { return fPHOSTrackSegment ; } |
17323043 | 34 | virtual Int_t GetNPrimariesToRecParticles() const ; |
35 | virtual Int_t GetNPrimaries() const ; | |
d956e9b7 | 36 | TVector3 GetPos() const { return fPos ; } |
a278df55 | 37 | virtual const TParticle * GetPrimary(Int_t index) const ; |
c81ced2d | 38 | virtual const TParticle * GetPrimary() const ; |
eb0b1051 | 39 | Int_t GetPrimaryIndex() const ; |
85c60a8e | 40 | const Float_t *GetPID() { return fPID ; } |
a278df55 | 41 | void SetDebug() { fDebug = kTRUE ; } |
85c60a8e | 42 | void SetPID(Int_t type, Float_t weight) ; |
d956e9b7 | 43 | void SetPos(TVector3 pos) { fPos.SetXYZ( pos.X(), pos.Y(), pos.Z() ); } |
a278df55 | 44 | void UnsetDebug() { fDebug = kFALSE ; } |
45 | void SetTrackSegment(Int_t index){fPHOSTrackSegment = index; } | |
6ad0bfa0 | 46 | |
88714635 | 47 | typedef TClonesArray RecParticlesList ; |
c0d5b57d | 48 | |
6c8ba828 | 49 | private: |
50 | AliPHOSRecParticle & operator = (const AliPHOSRecParticle & /*rp*/); | |
51 | ||
52 | private: | |
88714635 | 53 | |
c0d5b57d | 54 | Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS |
d956e9b7 | 55 | Bool_t fDebug ; // to steer debug output |
56 | TVector3 fPos ; // position in the global alice coordinate system | |
51d189f4 | 57 | |
06e774ed | 58 | ClassDef(AliPHOSRecParticle,3) // Reconstructed Particle |
6ad0bfa0 | 59 | }; |
60 | ||
61 | #endif // AliPHOSRECPARTICLE_H |