]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnEvent.h
removed eff-c++ warnings
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnEvent.h
CommitLineData
0dffcc8a 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * See cxx source for full Copyright notice *
4 **************************************************************************/
5
d51554df 6/* $Id$ */
7
0dffcc8a 8//-------------------------------------------------------------------------
9// Class AliRsnEvent
10// Simple collection of reconstructed tracks, selected from an ESD event
11//
12// author: A. Pulvirenti (email: alberto.pulvirenti@ct.infn.it)
13//-------------------------------------------------------------------------
14
15#ifndef ALIRSNEVENT_H
16#define ALIRSNEVENT_H
17
d51554df 18#include <TClonesArray.h>
19
0dffcc8a 20#include "AliPID.h"
21
22class AliRsnDaughter;
23
24class AliRsnEvent : public TObject
25{
26public:
c37c6481 27
28 AliRsnEvent();
29 AliRsnEvent(const AliRsnEvent& copy);
30 AliRsnEvent& operator=(const AliRsnEvent& copy);
31
0dffcc8a 32 virtual ~AliRsnEvent() {Clear("DELETE");}
33
34 void AddTrack(AliRsnDaughter track);
35 void Clear(Option_t *option = "");
2a9c8c76 36 void ComputeMultiplicity();
37 Int_t GetMultiplicity() const {return fMultiplicity;}
2f769150 38 Double_t GetPrimaryVertexX() const {return fPVx;}
39 Double_t GetPrimaryVertexY() const {return fPVy;}
40 Double_t GetPrimaryVertexZ() const {return fPVz;}
41 void GetPrimaryVertex(Double_t &x, Double_t &y, Double_t &z) const {x=fPVx;y=fPVy;z=fPVz;}
0dffcc8a 42 TClonesArray* GetTracks(Char_t sign, AliPID::EParticleType type);
43 void Init();
44 Int_t PDG2Enum(Int_t pdgcode);
45 void PrintTracks();
2f769150 46 void SetPrimaryVertex(Double_t x, Double_t y, Double_t z) {fPVx=x;fPVy=y;fPVz=z;}
0dffcc8a 47
48private:
49
c37c6481 50 Double_t fPVx; // position of
51 Double_t fPVy; // primary
52 Double_t fPVz; // vertex
0dffcc8a 53
54 Int_t fMultiplicity; // global event multiplicity
55
56 TClonesArray *fPos[AliPID::kSPECIES]; // collections of positive particles
57 TClonesArray *fNeg[AliPID::kSPECIES]; // collections of negative particles
2a9c8c76 58 TClonesArray *fPosNoPID; // collection of unidentified positive particles
59 TClonesArray *fNegNoPID; // collection of unidentified positive particles
0dffcc8a 60
61 ClassDef(AliRsnEvent,1);
62};
63
64#endif