Created
February 17, 2012 12:24
-
-
Save gadamc/1853106 to your computer and use it in GitHub Desktop.
extract template with TF1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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() |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output: http://hop.tl/op9Wm_yqvbKuW4taNp