40 gSystem->Load(
"St_base");
41 gSystem->Load(
"libm");
42 gSystem->Load(
"StUtilities");
43 gSystem->Load(
"StChain");
44 gSystem->Load(
"xdf2root");
45 gSystem->Load(
"St_Tables");
46 gSystem->Load(
"StDbLib");
47 gSystem->Load(
"StDbBroker");
48 gSystem->Load(
"St_db_Maker");
49 gSystem->Load(
"StarClassLibrary");
50 gSystem->Load(
"geometry");
51 gSystem->Load(
"St_g2t");
52 gSystem->Load(
"St_geant_Maker");
53 gSystem->Load(
"StTrsMaker");
55 void TrsWrite(
const Int_t Nevents=1)
57 if (gClassTable->GetID(
"StChain") < 0) Load();
60 chain->SetInput(
"EvtHddr",
".make/geant/.const/EvtHddr");
65 const char* mainDB =
"$STAR/StDb";
68 chain->SetInput(
"params",
"db:StDb/params");
70 const char* calibDB =
"$STAR_ROOT/calib";
72 chain->SetInput(
"calib",
"calib:calib");
94 geant->SetNwGEANT(10 000 000);
97 TString InFile(
"/afs/rhic.bnl.gov/star/tpc/trstest/trs_muon_10cmdrift_good.fzd");
98 geant->SetInputFile(InFile.Data());
99 chain->SetInput(
"geom",
"geant:geom");
103 tpc_raw->writeFile(
"test.trs",Nevents);
106 int iInit = chain->Init();
108 if (iInit) chain->Fatal(iInit,
"on init");
109 gBenchmark->Start(
"trs");
111 for (Int_t i =1; i <= Nevents; i++){
112 if (chain->
Make(i))
break;
113 if (i != Nevents) chain->
Clear();
114 printf (
"===========================================\n");
115 printf (
"=========================================== Done with Event no. %d\n",i);
116 printf (
"===========================================\n");
120 gBenchmark->Print(
"trs");
122 else b =
new TBrowser;
virtual void Clear(Option_t *option="")
User defined functions.