{ gROOT->Reset(); #include "Riostream.h" gSystem->Load("St_base"); // needed for StDbModifier gSystem->Load("StUtilities"); // DB-specific libs gSystem->Load("libStDb_Tables.so"); gSystem->Load("StDbLib"); printf("begin the new method ...\n"); //Define an old scheme for ssdNoiseTable, which can be used with: Int_t NumberOfRows = 320; St_ssdNoise *example_Noise = new St_ssdNoise("ssdNoise",NumberOfRows); // NumberOfRows is the number of the table lines; e.g. 491520 in case of strips //Then define a variable(structure of the table) which will be filled into the table: ssdNoise_st example_row[320]; // Be carefull, this is not! a pointer memset(example_row, 0, 320*sizeof(ssdNoise_st)); //Now fill this variable: Int_t Ladder = 20; Int_t Wafer = 16; Int_t side = 2; Int_t NStrip = 768; Int_t counter = 0; Float_t noise = 48/16.; Float_t rmsp[768],rmsn[768]; for(int i =0 ;iWrite(); rootfile->Close(); printf("ok done\n"); }