go-hep.org/x/hep@v0.38.1/groot/rtypes/rtypes.go (about)

     1  // Copyright ©2018 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  // Package rtypes contains the means to register types (ROOT ones and user
     6  // defined ones) with the ROOT type factory.
     7  package rtypes // import "go-hep.org/x/hep/groot/rtypes"
     8  
     9  // Bit returns a uint32 with v-th bit set to 1.
    10  func Bit(v int) uint32 {
    11  	return uint32(1) << uint32(v)
    12  }