Skip to content

Instantly share code, notes, and snippets.

@gadamc
Created February 17, 2012 12:24
Show Gist options
  • Select an option

  • Save gadamc/1853106 to your computer and use it in GitHub Desktop.

Select an option

Save gadamc/1853106 to your computer and use it in GitHub Desktop.
extract template with TF1
#!/usr/bin/env python
import couchdbkit
import pickle
s = couchdbkit.Server('https://edwdbik.fzk.de:6984')
db = s['pulsetemplates']
vr = db.view('analytical/bychandate', startkey=['chalA FID807', '2012-02-17 13:09:14'], limit=1, reduce=False, descending=True, include_docs=True)
doc = vr.first()['doc']
from ROOT import *
templatePulse = pickle.loads(doc['formula']['rise_double_decay']['tf1'])
templatePulse.Draw()
@gadamc
Copy link
Author

gadamc commented Feb 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment