#ifndef TCHIRESULT_H #define TCHIRESULT_H #include "Rtypes.h" //Root types const int MAXTEL = 1192; //The chimera telescopes //The status codes, as generated by kaliveda indentification routines for CsI enum ECode { kICODE0, //ok kICODE1, //Z ok, mais les masses superieures a A sont possibles kICODE2, //Z ok, mais les masses inferieures a A sont possibles kICODE3, //Z ok, mais les masses superieures ou inferieures a A sont possibles kICODE4, //Z ok, masse hors limite superieure ou egale a A kICODE5, //Z ok, masse hors limite inferieure ou egale a A kICODE6, //au-dessus de la ligne fragment, Z est alors un Zmin kICODE7, //a gauche de la ligne fragment, Z est alors un Zmin et le plus probable kICODE8, //Z indetermine ou (x,y) hors limites kICODE9, //pas de lignes pour ce module [or not valid grids] kICODE10, //gamma kICODE_nogrid //no grid defined, empty pointer }; // Simplified class to extract results for identification procedures // resembling the KaliVeda class KVIdentificationResult // This class is declared "friend" of TCHIGridCsi in order to avoid overhead // Anyway main program or other classes have to use public members to // access data. class TCHIResult { friend class TCHIGridCsI; //TCHIGridCsi has full right access to private members private: Int_t fZ; //Z of particle found Int_t fA; //A of particle found ECode fcod; //quality code by identification procedure Double_t fPID; //real "Z" or real "A" bool fIDOK; //true if acceptable identification done bool fZident; //true if Z established bool fAident; //true if A established Int_t fStopped; public: TCHIResult() {Init();} ~TCHIResult() {} void Init() {fZ=-1; fA=-1; fcod=kICODE8; fPID=-1.0; fIDOK=false; fZident=false; fAident=false;} Int_t GetZ() {return fZ;} Int_t GetA() {return fA;} void SetA(Int_t A) {fA=A;} void SetZ(Int_t Z) {fZ=Z;} void Setcod(ECode cod) {fcod=cod;} void SetStopped() {fStopped=1;} void SetUnStopped() {fStopped=0;} Int_t GetIfStopped() {return fStopped;} ECode Getcod() {return fcod;} Double_t GetPID() {return fPID;} bool GetIDOK() {return fIDOK;} bool GetZident() {return fZident;} bool GetAident() {return fAident;} ClassDef(TCHIResult,1); }; #endif