#ifndef TCOMPOUND_HH #define TCOMPOUND_HH #include #include #include #include #define COMPOUNDS_FILE "./COMPOUNDS.DAT" /// \brief Class describing a chemical compound. class TCompound { public: TCompound(TString COMPOUND_NAME, Bool_t VERBOSE=1); ~TCompound(); inline TString GetCompoundName() {return CompoundName;} inline Double_t GetFraction() {return Fraction;} inline void SetFraction(Double_t FRACTION) {Fraction = FRACTION;} inline Int_t GetnElementsInCompound() {return nElementsInCompound;} inline std::vector GetElementsInCompound() {return ElementsInCompound;} inline std::vector GetnAtomsInCompound() {return nAtomsInCompound;} private: Bool_t Verbose; TString CompoundName; Double_t Fraction; Int_t nElementsInCompound; std::vector ElementsInCompound; std::vector nAtomsInCompound; }; #endif