Skip to content

Instantly share code, notes, and snippets.

@gadamc
Created May 8, 2012 06:10
Show Gist options
  • Save gadamc/2632956 to your computer and use it in GitHub Desktop.
Save gadamc/2632956 to your computer and use it in GitHub Desktop.
read data
#!/usr/bin/env python
import KDataPy.util
import ROOT
filename = '/sps/edelweis/kdata/data/raw/ma22a000_000.root'
bas = ROOT.KBaselineRemoval() #create a new baseline removal object
bas.SetBaselineStart(0) #use the methods of the object to set the characteristics
bas.SetBaselineStop(0.4)
KDataPy.util.plotpulse(filename, name="chalA FID807", match=True, pta=bas)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment