Tags:
create new tag
view all tags

NtupleInputSvc

Functionality

数据经过刻度和重建后,将存储成简单的Ntuple文件。

再次使用该数据时,NtupleInputSvc将Ntuple转换为LHRecEvent格式放在内存中,并自动事例循环

使用者是需要从内存中找到LHRecEvent就可以进行数据分析

Version information (ChangeLog)

可使用的版本为:

http://svn.lhaaso.ihep.ac.cn/People/zhucg/tags/DataIO/NtupleInputSvc/v1.0/

How to download

使用如下命令行:

svn co http://svn.lhaaso.ihep.ac.cn/People/zhucg/tags/DataIO/NtupleInputSvc/v1.0/ DataIO /NtupleInputSvc

How to use

在宏处理文件.py中加入以下几行,无需对你的code进行其他更改,然后在你的algorithm中使用LHRecEvent即可

import NtupleInputSvc # just copy in, not change
iSvc = Algtask.createSvc("NtupleInputSvc/InputSvc") # just copy in, not change
iSvc.property("InputStream").set({"/Event/LHRecEvent" : "./Hist.root"}) #change Hist.root to the input file name you have.

iSvc.property("EventStart").set(10) # not to process from event 1, but start from event 10

Comments


Topic revision: r1 - 2020-04-30 - ZhuChengguang
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback