Commits

Anonymous committed 2729d66

test some of the Factory API

  • Participants
  • Parent commits e5668ed

Comments (0)

Files changed (1)

cmd/groot-ls/main.go

 	"bitbucket.org/binet/go-root/pkg/groot"
 )
 
-var fname = flag.String("f", "small.ntuple.0.root", "ROOT file to inspect")
+var fname = flag.String("f", "ntuple.root", "ROOT file to inspect")
 
 func main() {
 	fmt.Printf(":: groot-ls ::\n")
 	flag.Parse()
 
+	nfactories := groot.Factory.NumKey()
+	fmt.Printf(":: groot has registered %d factory-type(s)\n", nfactories)
+
 	f, err := groot.NewFileReader(*fname)
 	if err != nil {
 		fmt.Printf("**error**: %v\n", err)