Re-analyze root file created by artemis
A note on the method of running another processor with a root file (for example, hoge.root) created using artemis as input.
Even so, the method is simple, you just use art::TTreeEventStore
.
For example, to re-analyze a root file with a TTree named tree
, you should create a yaml file as following code.
After that, you just launch artemis, type add hogehoge.yaml
, and then res
.
Anchor:
- &maxEvtNum 0
- &input input.root
- &output output.root
Processor:
##################################################################################
### TTimeProcessor
##################################################################################
- name: timer
type: art::TTimerProcessor
##################################################################################
### TTreeEventStore
##################################################################################
- name: MyTTreeEventStore
type: art::TTreeEventStore
parameter:
MaxEventNum: *maxEvtNum
TreeName: tree
FileName: *input
Note
Be aware that the branches of the input file are not packed in the output file. If you want to see the correlation, you’ll need to use AddFriend to attach them. For more details, refer to KamonoWiki.