4 fitAdc4Ped(
char* fName=
"Rnnnped",
char* inDir=
"") {
6 assert( !gSystem->Load(
"StEEmcPedFit"));
10 TString headName=fPath+fName;
12 TString fullName=headName+
".hist.root";
14 TString saveHistoName=headName+
"fit";
16 TFile *j=
new TFile(fullName);
19 printf(
"failed to open %s hist.root file\n",fName);
25 TString fname1=fPath+
"ped";
29 pix->setLimits(1,250,10,5);
30 pix->setQA(2000, 1.,35, 0.5,2.);
31 pix->findTowerHisto();
33 pix->saveHisto(saveHistoName);
35 pix->savePedTable(
"w", fname1);
39 pix->setLimits(2,400,900,3);
40 pix->setQA(2000, 120.,300, 0.4,2.);
41 pix->findMapmtHisto();
43 pix->saveHisto(saveHistoName);
44 pix->savePedTable(
"a", fname1);