10 #define NOISEPREFIX "Profile_NoiseFromCondDB__det__"
11 #define PEDESTALPREFIX "Profile_PedestalFromCondDB__det__"
12 #define OCCUPANCYPREFIX "ClusterDigiPosition__det__"
25 rootfilename = argv[1];
26 modulelistname = argv[2];
27 pnbits = atoi(argv[3]);
32 std::cout <<
"Wrong number of parameters " << argc << std::endl;
36 std::cout <<
"ready to go " << rootfilename <<
' ' << modulelistname << std::endl;
38 TFile*
rootfile =
new TFile(rootfilename,
"READ");
40 std::cout <<
"Problems with input root file" << std::endl;
44 std::ifstream modulelist(modulelistname);
46 std::stringstream outrootfilename;
47 outrootfilename << prefix <<
"SummaryFile" << postfix <<
".root";
48 TFile* outrootfile =
new TFile(outrootfilename.str().c_str(),
"CREATE");
50 while (modulelist >> detid) {
51 std::cout <<
" ready to go with detid " << detid <<
" " << pnbits << std::endl;
54 std::stringstream histoname;
56 std::cout <<
" ready to go with histogram " << histoname.str() << std::endl;
57 TH1D*
hist = (TH1D*)rootfile->FindObjectAny(histoname.str().c_str());
59 std:: cout << histoname.str() <<
" found!" << std::endl;
63 std:: cout << histoname.str() <<
" NOT found..." << std::endl;
68 std::stringstream histoname;
70 std::cout <<
" ready to go with histogram " << histoname.str() << std::endl;
71 TH1D*
hist = (TH1D*)rootfile->FindObjectAny(histoname.str().c_str());
73 std:: cout << histoname.str() <<
" found!" << std::endl;
77 std:: cout << histoname.str() <<
" NOT found..." << std::endl;
82 std::stringstream histoname;
84 std::cout <<
" ready to go with histogram " << histoname.str() << std::endl;
85 TH1D*
hist = (TH1D*)rootfile->FindObjectAny(histoname.str().c_str());
87 std:: cout << histoname.str() <<
" found!" << std::endl;
91 std:: cout << histoname.str() <<
" NOT found..." << std::endl;
104 TCanvas* cc=
new TCanvas;
107 filename << prefix << hist->GetName() << postfix <<
".png";
108 cc->Print(filename.str().c_str());
void printPlot(TH1D *hist, char *prefix, char *postfix)
int main(int argc, char **argv)