go-hep.org/x/hep@v0.38.1/groot/internal/list-groot-sinfos.go (about)

     1  // Copyright ©2020 The go-hep Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build ignore
     6  
     7  // list-groot-sinfos lists all the known StreamerInfos known to groot.
     8  package main
     9  
    10  import (
    11  	"log"
    12  
    13  	"go-hep.org/x/hep/groot/rdict"
    14  	_ "go-hep.org/x/hep/groot/ztypes"
    15  )
    16  
    17  func main() {
    18  	log.SetPrefix("")
    19  	log.SetFlags(0)
    20  
    21  	sinfos := rdict.StreamerInfos.Values()
    22  	for _, si := range sinfos {
    23  		log.Printf("version=%03d, checksum=0x%08x, name=%q", si.ClassVersion(), si.CheckSum(), si.Name())
    24  	}
    25  
    26  	log.Printf("%d known streamers", len(sinfos))
    27  }