]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIEMCALRECPARTICLE_H | |
2 | #define ALIEMCALRECPARTICLE_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 | //_________________________________________________________________________ | |
9 | // A Reconstructed Particle in EMCAL | |
10 | // To become a general class of AliRoot ? | |
11 | // why not | |
12 | //*-- Author: Yves Schutz (SUBATECH) | |
13 | ||
14 | // --- ROOT system --- | |
15 | ||
16 | // --- Standard library --- | |
17 | ||
18 | // --- AliRoot header files --- | |
19 | ||
20 | #include "AliEMCALFastRecParticle.h" | |
21 | class TParticle ; | |
22 | #include "TVector3.h" | |
23 | ||
24 | class AliEMCALRecParticle : public AliEMCALFastRecParticle { | |
25 | ||
26 | public: | |
27 | ||
28 | AliEMCALRecParticle() { fEMCALRecPoint = 0 ; fDebug = kFALSE ; } | |
29 | AliEMCALRecParticle(const AliEMCALRecParticle & rp) ; // ctor | |
30 | virtual ~AliEMCALRecParticle(){ } | |
31 | ||
32 | Int_t GetEMCALRPIndex()const { return fEMCALRecPoint ; } | |
33 | virtual const Int_t GetNPrimariesToRecParticles() const ; | |
34 | virtual const Int_t GetNPrimaries() const ; | |
35 | TVector3 GetPos() const { return fPos ; } | |
36 | virtual const TParticle * GetPrimary(Int_t index) const ; | |
37 | void SetDebug() { fDebug = kTRUE ; } | |
38 | void SetPos(TVector3 pos) { fPos.SetXYZ( pos.X(), pos.Y(), pos.Z() ); } | |
39 | void UnsetDebug() { fDebug = kFALSE ; } | |
40 | void SetRecPoint(Int_t index){fEMCALRecPoint = index; } | |
41 | ||
42 | typedef TClonesArray RecParticlesList ; | |
43 | ||
44 | private: | |
45 | ||
46 | Int_t fEMCALRecPoint ; // pointer to the associated track segment in EMCAL | |
47 | Bool_t fDebug ; // to steer debug output | |
48 | TVector3 fPos ; // position in the global alice coordinate system | |
49 | ||
50 | ClassDef(AliEMCALRecParticle,2) // Reconstructed Particle | |
51 | }; | |
52 | ||
53 | #endif // AliEMCALRECPARTICLE_H |