StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
vertexSeed.20120101.000001.C
1 TDataSet *CreateTable() {
2 // -----------------------------------------------------------------
3 // db/.const/StarDb/Calibrations/rhic/.vertexSeed/vertexSeed Allocated rows: 1 Used rows: 1 Row size: 44 bytes
4 // Table: vertexSeed_st[0]--> vertexSeed_st[0]
5 // ====================================================================
6 // ------ Test whether this table share library was loaded ------
7  if (!TClass::GetClass("St_vertexSeed")) return 0;
8 vertexSeed_st row;
9 St_vertexSeed *tableSet = new St_vertexSeed("vertexSeed",1);
10 // my run is Rrun_fix
11 memset(&row,0,tableSet->GetRowSize());
12  row.x0 = x0_fix; // cm : x intercept of x vs z line ;
13  row.dxdz = dxdz_fix; // : slope of x vs z line ;
14  row.y0 = y0_fix; // cm : y intercept of y vs z line ;
15  row.dydz = dydz_fix; // : slope of y vs z line ;
16  row.err_x0 = x0Err_fix; // cm : error on x0 ;
17  row.err_dxdz = dxdzErr_fix; // : error on dxdz ;
18  row.err_y0 = y0Err_fix; // cm : error on y0 ;
19  row.err_dydz = dydz_fix; // : error on dydz ;
20  row.chisq_dof= chisq_fix; // chi square / dof of fit ;
21  row.weight = 100; // weight of seed to use in vertex-finding ;
22  row.stats =tracks_fix; // number of events used in seed-finding ;
23 tableSet->AddAt(&row);
24 // ----------------- end of code ---------------
25  return (TDataSet *)tableSet;
26 }