[BLAST_ANAWARE] dst updates

From: Chi Zhang (zhangchi@MIT.EDU)
Date: Sat Apr 23 2005 - 00:23:30 EDT


Hi Michael,

par your request, outer detector calibrations are added into DST. number of WC
hits for each event is written into DST too.

here is how to access the calibration info in root after loading libBlast.so

>TFile f("dst-#####.root")
>cout<<det_calib->TOF_Calib[0][2].offsetTDC1<<endl;
>Setup();
>gDet->importcalib(*det_calib); // import the infomation into TBLDetCalib,

or through dst:
>Setup()
>TBLDst dst;
>dst.Open(*gRecon, "dst-#####.root", "READ")
>cout<<dst.fDetCal-> TOF_Calib[0][2].offsetTDC1<<endl;
>gDet->importcalib(*dst.fDetCal);

either lrn or lrd will wirte the data structure to file.

here is how to access the WC number of hits:
> ... ...
> dst.GetEntry(10);
> for (int sector=0; sector<2; ++sector)
> for (int superlayer=0; superlayer<6; ++superlayer)
> cout<<dst.fEvent->GetNWC(se, su)<<" "; cout<<endl;
only lrn will add the hits not in track to file.

Chi



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