first commit of makeAnalysisTree.cpp