ROOT Version: 6.18/04
Platform: Ubuntu 18.04
Compiler: gcc 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
Dear co-rooters,
Assume the following structure in a root file that contains one TTree
.
root [1] tree->Print()
******************************************************************************
*Tree :tree : A test TTree *
*Entries : 42133355 : Total = 2704131861 bytes File Size = 1351930491 *
* : : Tree compression factor = 2.00 *
******************************************************************************
*Br 1 :detn : Detector number/I *
*Entries : 42133355 : Total Size= 337984481 bytes File Size = 168950540 *
*Baskets : 5280 : Basket Size= 32000 bytes Compression= 2.00 *
*............................................................................*
*Br 3 :area_fast : Area for the fast component/s *
*Entries : 42133355 : Total Size= 169021752 bytes File Size = 84488554 *
*Baskets : 2641 : Basket Size= 32000 bytes Compression= 2.00 *
*............................................................................*
What I would like to do is draw the 2D distribution area_fast
for detn==2
VS area_fast
for detn==3
. I know that I can use the following syntax to draw distributions directly from a TTree
tree->Draw("area_fast", "detn==2", "histo")
or for a 2D distribution
tree->Draw("TBranch_1:TBranch_2", "TBranch_3 == x", "colz")
but how can I draw what I asked? The following command makes no sense apparently, but I’m stuck.
tree->Draw("area_fast:area_fast", "detn== 2 && detn==3", "colz")
.
I’m afraid that what I’m asking is not doable, that’s why I though of asking!
Thanks in advance!