8 plDAQ2Ped(
char *core0 =
"" ) {
11 TString fullInpName=path; fullInpName+=core0;
12 fullInpName+=
".hist.root";
13 fd=
new TFile(fullInpName);
15 printf(
"ERROR: input histo file not found, quit\n",fullInpName.Data());
19 gROOT->LoadMacro(
"$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
20 loadSharedLibraries();
23 assert( !gSystem->Load(
"StDbBroker"));
24 assert( !gSystem->Load(
"St_db_Maker"));
25 assert( !gSystem->Load(
"StEEmcDbMaker"));
27 assert( !gSystem->Load(
"StEEmcUtil"));
28 assert( !gSystem->Load(
"StEEmcDAQ2Ped"));
35 stDb->SetDateTime(20090424,0);
41 daq2ped->SetHList(HList);
43 daq2ped->ChooseSet(0);
44 daq2ped->MappingFile(
"crMap.csv");
52 TFile f( out,
"recreate");
54 printf(
"%d histos are written to '%s' ...\n",HList->GetEntries(),out.Data());