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