]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSRecParticle.h
Corrected the copy ctor: Rene was wrong(!)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecParticle.h
CommitLineData
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
8////////////////////////////////////////////////
9// A Reconstructed Particle in PHOS //
10// Yves Schutz SUBATECH //
11// To become a general class of AliRoot ? //
12// //
13////////////////////////////////////////////////
14
15// --- ROOT system ---
16
17#include "TParticle.h"
18#include "TVector3.h"
19
20// --- Standard library ---
21
22// --- AliRoot header files ---
23
24#include "AliPHOSTrackSegment.h"
a73f33f0 25#include <cassert>
6ad0bfa0 26
09fc14a0 27const static Int_t kUNDEFINED = -1;
28const static Int_t kGAMMA = 0 ;
29const static Int_t kELECTRON = 1 ;
30const static Int_t kNEUTRAL = 2 ;
31const static Int_t kCHARGED = 3 ;
32const static Int_t kCHARGEDHADRON = 4 ;
b9bbdad1 33const static Int_t kNEUTRALHADRON = 5 ;
34const static Int_t kNEUTRALEM = 6 ;
c1d256cb 35const static Int_t kGAMMAHADRON = 7 ;
09fc14a0 36
6ad0bfa0 37class AliPHOSRecParticle : public TParticle {
38
39public:
40
41 AliPHOSRecParticle() {}; // ctor
42 AliPHOSRecParticle(AliPHOSTrackSegment * ts) ; // ctor
a73f33f0 43 AliPHOSRecParticle(const AliPHOSRecParticle & rp) ; // ctor
44 AliPHOSRecParticle& operator= (const AliPHOSRecParticle& rp) { assert(0==1) ; } // forbidden
6ad0bfa0 45
a73f33f0 46 virtual ~AliPHOSRecParticle() ; // dtor
6ad0bfa0 47
15605d3c 48 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py) ;
a73f33f0 49 virtual void Draw(Option_t *option) ;
15605d3c 50 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
a73f33f0 51 AliPHOSTrackSegment * GetPHOSTrackSegment() const { return fPHOSTrackSegment ; }
6ad0bfa0 52 Int_t GetType() { return fType ; }
53 TString Name() ;
15605d3c 54 virtual void Paint(Option_t * option="");
09fc14a0 55 void Print() ;
56 void SetType(Int_t type) { fType = type ; }
6ad0bfa0 57
58private:
59
60 AliPHOSTrackSegment * fPHOSTrackSegment ; // pointer to the associated track segment in PHOS
26d4b141 61 Int_t fType ; // identified particle type
6ad0bfa0 62
92862013 63 ClassDef(AliPHOSRecParticle,1) // Reconstructed Particle, version 1
6ad0bfa0 64
65};
66
67#endif // AliPHOSRECPARTICLE_H