rootls
/rootcp
unable to access leaf
s on branch
es of a tree
. Here’s my log:
quant@15:47:16:RUN2$ rootls -t -l "Run030010/Run030010.000.root"
TTree Apr 26 12:07 Board "MonitoringBoard"
pin1 "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763658712
pin2 "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763658712
laser "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763666647
amer "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763658712
pmt "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763650777
quant@15:47:19:RUN2$ rootls -t -l "Run030010/Run030010.000.root:Board"
TTree Apr 26 12:07 Board "MonitoringBoard"
pin1 "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763658712
pin2 "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763658712
laser "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763666647
amer "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763658712
pmt "Vbias1/I:Vbias2/I:amplitude/I:baseline/I:ADCVal/I" 763650777
quant@15:47:36:RUN2$ rootls -t -l "Run030010/Run030010.000.root:Board/pin1"
WARNING: can't find Board/pin1 in Run030010/Run030010.000.root
quant@15:47:42:RUN2$ rootls -t -l "Run030010/Run030010.000.root:Board.pin1"
WARNING: can't find Board.pin1 in Run030010/Run030010.000.root
quant@15:47:48:RUN2$ rootls "Run030010/Run030010.000.root:Board/pin1"
WARNING: can't find Board/pin1 in Run030010/Run030010.000.root
quant@15:48:24:RUN2$
It lists the branches though, but doesn’t list the leaves (leafs) inside them!
How does one access them then?
Thanks
_ROOT Version: ROOT 6.10/04
_Platform: Ubuntu 18.04.4 LTS
_Compiler: g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Hi @quantatanu,
sorry for the late reply. I am not quite sure what the desired output is, can you share the output of TTree::Print
for this dataset?
Cheers,
Enrico
Hi, here’s the output:
root [1] Board->Print()
******************************************************************************
*Tree :Board : MonitoringBoard *
*Entries : 7948827 : Total = 3819097622 bytes File Size = 242912702 *
* : : Tree compression factor = 15.74 *
******************************************************************************
*Br 0 :pin1 : cNBOF/L:NBOF/L:t_BOF/L:NTimeTrgBOF/L:t_year/I:t_mon/I: *
* | t_day/I:t_secday/I:cspTemp/I:extTemp/I:boardTemp/I:Vbias1/I: *
* | Vbias2/I:amplitude/I:baseline/I:ADCVal/I:fired/I:bAddr/I:totW/I: *
* | Width/I *
*Entries : 7948827 : Total Size= 763819380 bytes File Size = 52529324 *
*Baskets : 7935 : Basket Size= 4419072 bytes Compression= 14.54 *
*............................................................................*
*Br 1 :pin2 : cNBOF/L:NBOF/L:t_BOF/L:NTimeTrgBOF/L:t_year/I:t_mon/I: *
* | t_day/I:t_secday/I:cspTemp/I:extTemp/I:boardTemp/I:Vbias1/I: *
* | Vbias2/I:amplitude/I:baseline/I:ADCVal/I:fired/I:bAddr/I:totW/I: *
* | Width/I *
*Entries : 7948827 : Total Size= 763819380 bytes File Size = 52391726 *
*Baskets : 7935 : Basket Size= 4419072 bytes Compression= 14.58 *
*............................................................................*
*Br 2 :laser : cNBOF/L:NBOF/L:t_BOF/L:NTimeTrgBOF/L:t_year/I:t_mon/I: *
* | t_day/I:t_secday/I:cspTemp/I:extTemp/I:boardTemp/I:Vbias1/I: *
* | Vbias2/I:amplitude/I:baseline/I:ADCVal/I:fired/I:bAddr/I:totW/I: *
* | Width/I *
*Entries : 7948827 : Total Size= 763827316 bytes File Size = 52890326 *
*Baskets : 7935 : Basket Size= 4419072 bytes Compression= 14.44 *
*............................................................................*
*Br 3 :amer : cNBOF/L:NBOF/L:t_BOF/L:NTimeTrgBOF/L:t_year/I:t_mon/I: *
* | t_day/I:t_secday/I:cspTemp/I:extTemp/I:boardTemp/I:Vbias1/I: *
* | Vbias2/I:amplitude/I:baseline/I:ADCVal/I:fired/I:bAddr/I:totW/I: *
* | Width/I *
*Entries : 7948827 : Total Size= 763819380 bytes File Size = 19185868 *
*Baskets : 7935 : Basket Size= 4419072 bytes Compression= 39.80 *
*............................................................................*
*Br 4 :pmt : cNBOF/L:NBOF/L:t_BOF/L:NTimeTrgBOF/L:t_year/I:t_mon/I: *
* | t_day/I:t_secday/I:cspTemp/I:extTemp/I:boardTemp/I:Vbias1/I: *
* | Vbias2/I:amplitude/I:baseline/I:ADCVal/I:fired/I:bAddr/I:totW/I: *
* | Width/I *
*Entries : 7948827 : Total Size= 763811444 bytes File Size = 65574399 *
*Baskets : 7935 : Basket Size= 4419072 bytes Compression= 11.65 *
*............................................................................*
root [2]
I was expecting to ls
a particular branch
, for example laser
, and it should list the leaf
s perhaps.
Thanks
Oh I see, I am afraid rootls
does not print leaflists. You can request the feature at https://sft.its.cern.ch/jira/projects/ROOT/
Cheers,
Enrico
Thanks. My intention was to copy a particular variable to another branch
of another tree
of another file.
I see…I am afraid that’s not possible with rootcp
, you will have to use the ROOT libraries directly.
system
Closed
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.