10 #define NOISEPREFIX "Profile_NoiseFromCondDB__det__"
11 #define PEDESTALPREFIX "Profile_PedestalFromCondDB__det__"
24 rootfilename = argv[1];
25 modulelistname = argv[2];
26 pnbits = atoi(argv[3]);
31 std::cout <<
"Wrong number of parameters " << argc << std::endl;
35 std::cout <<
"ready to go " << rootfilename <<
' ' << modulelistname << std::endl;
37 TFile*
rootfile =
new TFile(rootfilename,
"READ");
39 std::cout <<
"Problems with input root file" << std::endl;
43 std::ifstream modulelist(modulelistname);
47 while (modulelist >> detid) {
48 std::cout <<
" ready to go with detid " << detid <<
" " << pnbits << std::endl;
51 std::stringstream histoname;
53 std::cout <<
" ready to go with histogram " << histoname.str() << std::endl;
54 TH1D*
hist = (TH1D*)rootfile->FindObjectAny(histoname.str().c_str());
56 std:: cout << histoname.str() <<
" found!" << std::endl;
59 std:: cout << histoname.str() <<
" NOT found..." << std::endl;
64 std::stringstream histoname;
66 std::cout <<
" ready to go with histogram " << histoname.str() << std::endl;
67 TH1D*
hist = (TH1D*)rootfile->FindObjectAny(histoname.str().c_str());
69 std:: cout << histoname.str() <<
" found!" << std::endl;
72 std:: cout << histoname.str() <<
" NOT found..." << std::endl;
83 TCanvas* cc=
new TCanvas;
86 filename << prefix << hist->GetName() << postfix <<
".png";
87 cc->Print(filename.str().c_str());
void printPlot(TH1D *hist, char *prefix, char *postfix)
int main(int argc, char **argv)