Hi all,
Concerning the SQL problem, from Steve's suggestion I wrote a module
called BrBbDumpCalModule (in brat/module/calib/bb) so that we have
the possibility to dump the SQL db cal. to ascii files (back up files).
I inserted some new methods in BrBbCalHitsModule, namely:
SetLoadDumpCal(bool)
SetDumpCalFiles("<bbl file>", "<bbr file>")
these files should have of course been created by BrBbDumpCalModule.
To use this stuff I've put 2 scripts in brat/scripts/calib/bb, namely
BbDumpSqlCal.C
BbTestLoadDumpCal.C
The 1st one dumps the cal, its usage is:
bratmain BbDumpSqlCal.C -r runno
The 2nd one is for the vertex recontruction and gives an example of
how to recontruct the vertex (look into it and find your way, it's not
difficult :)
To summarize, you have a couple of options:
bbCalHitsModule->SetLoadDumpCal(bool)
bbCalhitsModule->SetDumpCalFiles(const char*, const char*)
Now for people worried about offsets in the vertex, 2 options:
bbVertexModule->SetUseSqlOffsets(bool)
if true, it means that you know that you'll find some offsets stored in
the SQL db for the run you're analyzing. Threfore no need to set the
offsets by hand (use the script BbVtxOffset.C to make an offset
calibration)
if false, you don't want to use the DB for the offsets and you have to set
by hand with the methods:
vertexModule->SetZOffBig(float)
vertexModule->SetZOffSmall(float)
vertexModule->SetZOffFastest(float)
(cf script BbTestLoadDumpCal.C for an example).
Brat has been tagged BRAT-2-1-22 and the revision number bumped to 2.1.22
Cheers!
Djam
PS: if any problem, tell me asap
Djamel Ouerdane ------------------------------------------o
| Niels Bohr Intstitute | Home: |
| Blegdamsvej 17, DK-2100 Ø | Jagtvej 141 2D, |
| Fax: +45 35 32 50 16 | DK-2200 Copenhagen N |
| Tel: +45 35 32 52 69 | +45 35 86 19 74 |
| http://www.nbi.dk/~ouerdane |
| ouerdane@nbi.dk |
o---------------------------------------------------------o
This archive was generated by hypermail 2b30 : Sat Nov 03 2001 - 21:18:26 EST