/* * CbmStsMother4.h * * Created on: 16.06.2015 * Author: vfriese */ #ifndef CBMSTSMOTHER5_H_ #define CBMSTSMOTHER5_H_ #include "TObject.h" #include "CbmStsDigi.h" #include #include using std::string; using std::stringstream; #include "CbmMatch.h" class CbmStsMother5 : public TObject { public: CbmStsMother5() : TObject(), fMatch(NULL) { } virtual ~CbmStsMother5() { if ( fMatch) delete fMatch; } void AddLink(Double_t weight, Int_t index, Int_t entry, Int_t file) { if ( ! fMatch ) fMatch = new CbmMatch(); fMatch->AddLink(weight, index, entry, file); } virtual string ToString() const { stringstream ss; ss << fMatch->ToString(); return ss.str(); } private: CbmMatch* fMatch; ClassDef(CbmStsMother5,1); }; #endif /* CBMSTSMOTHER5_H_ */