]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALRecParticle.h
Introducing the AliEMCALReconstructor class driving from AliReconstructor
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRecParticle.h
CommitLineData
a83bd548 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"
21class TParticle ;
d956e9b7 22#include "TVector3.h"
a83bd548 23
24class AliEMCALRecParticle : public AliEMCALFastRecParticle {
25
26 public:
27
ab091cd5 28 AliEMCALRecParticle() { fEMCALRecPoint = 0 ; fDebug = kFALSE ; }
a83bd548 29 AliEMCALRecParticle(const AliEMCALRecParticle & rp) ; // ctor
30 virtual ~AliEMCALRecParticle(){ }
31
ab091cd5 32 Int_t GetEMCALRPIndex()const { return fEMCALRecPoint ; }
a83bd548 33 virtual const Int_t GetNPrimariesToRecParticles() const ;
34 virtual const Int_t GetNPrimaries() const ;
d956e9b7 35 TVector3 GetPos() const { return fPos ; }
a83bd548 36 virtual const TParticle * GetPrimary(Int_t index) const ;
37 void SetDebug() { fDebug = kTRUE ; }
d956e9b7 38 void SetPos(TVector3 pos) { fPos.SetXYZ( pos.X(), pos.Y(), pos.Z() ); }
a83bd548 39 void UnsetDebug() { fDebug = kFALSE ; }
ab091cd5 40 void SetRecPoint(Int_t index){fEMCALRecPoint = index; }
a83bd548 41
42 typedef TClonesArray RecParticlesList ;
43
44 private:
45
ab091cd5 46 Int_t fEMCALRecPoint ; // pointer to the associated track segment in EMCAL
d64c959b 47 Bool_t fDebug ; // to steer debug output
d956e9b7 48 TVector3 fPos ; // position in the global alice coordinate system
a83bd548 49
50 ClassDef(AliEMCALRecParticle,2) // Reconstructed Particle
51};
52
53#endif // AliEMCALRECPARTICLE_H