[d2n-analysis-talk] BB Cherenkov TDC mod help

posik at jlab.org posik at jlab.org
Fri Jul 2 08:12:24 EDT 2010


Hi Brad,

   So I am having some difficulty getting the THaCherenkov class to do
what I want it to. For starters I want it to just simulate the DecData
class, ie have 20 TDC arrays of with their length being the number of
hits that the TDC received. So to start I am just creating and filling
the first TDC so I make a variable fT01[MaxHits], where fT01 is TDC 1
and MaxHits is the max number of hits that the TDC has, I defined this
to be 6.

 So what I then want to do is to export fT01 and fNdata to the TTree as
t01 and ndata. But when I finish a replay and check the TTree, I see t01
is an array of length 1 and not ndata. However when I print out
fT01[fNdata] inside THaCherenkov code during a replay it seems that it is
filling fT01[0->4]. I have also checked out the ndata variable that keeps
track of the hits T01 gets and that also seems to be correct.

 So I think there may be a problem going from the class variable to the
global ROOT variable. I has attached a .tar file that highlights where my
changes are as well as the modified THaCherenkov.C and THaCherenkov.h
files that I changed.

Thanks
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d2n_cer_mod.tar.gz
Type: application/x-gzip
Size: 5377 bytes
Desc: not available
Url : https://mailman.jlab.org/pipermail/d2n-analysis-talk/attachments/20100702/f2e91381/attachment.gz 


More information about the d2n-analysis-talk mailing list