#ifndef fQROOTOut_h_seen #define fQROOTOut_h_seen #include #include #include class fQROOTOut { private: TFile *oFile; TTree *trout; void InitTree(); public: fQROOTOut(char *ofname); ~fQROOTOut(); TTree* GetTree() {return trout;}// call this to add branches externally void CopyInput(char* infile, std::string treeList); TFile* GetFile() {return oFile;} void Fill(); void SaveTree(); }; #endif