Re: [BLAST_ANAWARE] calibration parameters in BlastLib

From: Chi Zhang (zhangchi@MIT.EDU)
Date: Tue May 25 2004 - 12:12:18 EDT


usually root throws up hands facing templates, unless the template with
appropriate arguements is explicitly instantiated in LinkDef. for instance
if you want to use stl_vector, you need to decide what kinda vectors you
want to use and add into linkdef.h all the types:
#pragma link C++ class vector<float>;
#pragma link C++ class vector<double;
... ...

Another way to go arround this is to add getters into DetRecon that return
the values you want. I did not do that because I did not need to. But if
you definitely want to access these values from a macro, patching DetRecon
or DetCalib may be the most straight forward way, and you know how to do
it. :)

Chi

On Mon, 24 May 2004, vitaliy ziskin wrote:

> Is there a way to get to individual calibration parameters load from
> blast.sc_cal (or from the data base). I know that
> gDet->TOF_Calib[0] is a vector<tof_calib> type. However,
> gDet->TOF_Calib[0][0] is does not work. Is there a better way to get to
> these quantities in a macro that loads a library.
>
> Thanks, Vitaliy
>
>



This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:31 EST