#include "TNamed.h" #include #include class TTest : public TNamed { private: Float_t myfloat; std::vector myvec; public: TTest() : myfloat(-1.0), myvec(-1.0, 4) {} TTest(const char* name) : myfloat(-1.0), myvec(-1.0, 4) {this->SetName(name); } Float_t Get() const { return myfloat; } std::vector getVec() { return myvec; } void Set(Float_t num) { myfloat = num; } void setVec(std::vector newVec) { myvec = newVec; } ClassDef(TTest, 1) }; #if !defined(__CINT__) ClassImp(TTest); #endif