Last active
May 6, 2019 08:11
-
-
Save cvson/d889addaf0a8d7e4a600 to your computer and use it in GitHub Desktop.
[Create root class] work with tree #ROOT #TTree #utils
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void createMakeClass(char* filename="",char* treename="", char* classname=""){ | |
TFile *pfile = new TFile(filename); | |
TTree *ptree = (TTree*)pfile->Get(treename); | |
ptree->MakeClass(classname); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment