// -*- mode: c++ -*- // // $Id: BrPid.h,v 1.3 2001/10/02 01:43:47 ouerdane Exp $ // $Author: ouerdane $ // $Date: 2001/10/02 01:43:47 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrPid #define BRAT_BrPid #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef ROOT_TParticlePDG #include "TParticlePDG.h" #endif class BrPid : public TObject { private: protected: Int_t fPdgCode1; // pid1 by particle data group standard Int_t fPdgCode2; // pid2 by particle data group standard Int_t fPdgCode3; // pid3 by particle data group standard Float_t fConfidenceLevel1; // confidence level of pid1 Float_t fConfidenceLevel2; // confidence level of pid2 Float_t fConfidenceLevel3; // confidence level of pid3 Int_t fTrackId; // corresponding track public: BrPid(); virtual ~BrPid() {}; virtual void SetPdgCode1(Int_t pdg) {fPdgCode1 = pdg;} virtual void SetPdgCode2(Int_t pdg) {fPdgCode2 = pdg;} virtual void SetPdgCode3(Int_t pdg) {fPdgCode3 = pdg;} virtual void SetConfidenceLevel1(Float_t confL) {fConfidenceLevel1 = confL;} virtual void SetConfidenceLevel2(Float_t confL) {fConfidenceLevel2 = confL;} virtual void SetConfidenceLevel3(Float_t confL) {fConfidenceLevel3 = confL;} virtual void SetTrackId(Int_t tId) {fTrackId = tId;} virtual Int_t GetPdgCode1() const {return fPdgCode1;} virtual Int_t GetPdgCode2() const {return fPdgCode2;} virtual Int_t GetPdgCode3() const {return fPdgCode3;} virtual Float_t GetConfidenceLevel1() const {return fConfidenceLevel1;} virtual Float_t GetConfidenceLevel2() const {return fConfidenceLevel2;} virtual Float_t GetConfidenceLevel3() const {return fConfidenceLevel3;} virtual Short_t GetTrackId() const {return fTrackId;} const Char_t* GetNameOfPdgParticle(Int_t pdg) const; virtual void Print(Option_t* option="") const; //*MENU* ClassDef(BrPid,2) // Particle identification class }; #endif //____________________________________________________________________ // // $Log: BrPid.h,v $ // Revision 1.3 2001/10/02 01:43:47 ouerdane // Pid classes derive now from TObject, removed useless named contructor // // Revision 1.2 2001/09/25 23:04:59 sanders // Fixed constness problem with return value for GetNameOfPdgParticle // // Revision 1.1 2001/09/03 17:56:46 ekman // Added BrPid class. // //