Reading from root file by ACLIC calling

Hello all,
I have a code named “EcalibAttenuation1.cxx” . I want to execute by calling ACILC (.x EcalibAttenuation1.cxx+). I have header file named “pdelastic.h” which is made with making class from my root file. Unfortunately my code gives the value of “0” for the leafs. please help me.
Below you can see the print of the root file.


*Tree :pdelastic : BINA p-d Elastic *
*Entries : 18145049 : Total = 18291330152 bytes File Size = 2021196710 *

  •    :          : Tree compression factor =   9.05                       *
    

*Br 0 :b2 : ID/D:WLE:WLtdc:WLdet:WRE:WRtdc:WRdet:WDdE:WDtdc:WDdet: *

  •     | WUdE:WUtdc:WUdet:MWPCX:MWPCY:MWPCU:MWPCtheta:MWPCphi:T1:T2:T3:T4:*
    
  •     | LiveTime:FC:Pol:pureT1:pureT2:pureT3:pureT4:Time:10kHz:10kHzDT:  *
    
  •     | TotFera:TotFeraDT:BeamCurrent:T2DT:T2DTDsc:EFW:wallhits:         *
    
  •     | EventType:ballhits                                               *
    

*Entries :18145049 : Total Size= 5951923022 bytes File Size = 1431171403 *
*Baskets : 3650 : Basket Size= 5623808 bytes Compression= 4.16 *

*Br 1 :b3 : Bnr[17]/D *
*Entries :18145049 : Total Size= 2467881313 bytes File Size = 105722066 *
*Baskets : 1642 : Basket Size= 4362752 bytes Compression= 23.34 *

*Br 2 :b4 : BLE[17]/D *
*Entries :18145049 : Total Size= 2467881313 bytes File Size = 138683656 *
*Baskets : 1642 : Basket Size= 4362752 bytes Compression= 17.79 *

*Br 3 :b5 : BSE[17]/D *
*Entries :18145049 : Total Size= 2467881313 bytes File Size = 138084484 *
*Baskets : 1642 : Basket Size= 4362752 bytes Compression= 17.87 *

*Br 4 :b6 : Btheta[17]/D *
*Entries :18145049 : Total Size= 2467881322 bytes File Size = 103232165 *
*Baskets : 1642 : Basket Size= 4362752 bytes Compression= 23.91 *

*Br 5 :b7 : Bphi[17]/D *
*Entries :18145049 : Total Size= 2467881316 bytes File Size = 104186163 *
*Baskets : 1642 : Basket Size= 4362752 bytes Compression= 23.69 *

EcalibAttenuation1.cxx (2.8 KB)
pdelastic.h (5.7 KB)

I guess one needs a small root file to try it.

Thank you.
what do you mean?

I need your root file (a partial copy with several events is enough) in order to “debug” it.

Hi,
I can not upload the root file. If you give me your email address I will send it.

If you cannot upload this file (because it’s too big) then also the mail server will reject it.
Maybe you have some “afs” public area or any web server where you can put it.

Here is the my small root file. please convert the extension to .root.
ntupleNov2015_test.txt (2.0 MB)

EcalibAttenuation1.cxx (3.0 KB)
pdelastic.h (5.7 KB)

BTW. You should maybe also use: int det1 = int(0.5 + b2_WRdet), det2 = int(0.5 + b2_WRdet);

1 Like

Thank you so much for your help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.