--- quicklook/trigger/src/TriggerScanExpert.cpp 2006/09/21 12:41:41 1.3 +++ quicklook/trigger/src/TriggerScanExpert.cpp 2007/03/19 16:00:47 1.5 @@ -16,6 +16,7 @@ * TString format - the format which will be used for save the produced images (Default = "ps") */ +#include #include #include #include @@ -80,41 +81,41 @@ //---------- sst.str(""); sst << "Histogram of Calo pattern trigger " << base.Data(); - TH1S *PatternTrig0Histo = new TH1S("PatternTrig0Histo", sst.str().c_str(), 4, 0, 4); + TH1I *PatternTrig0Histo = new TH1I("PatternTrig0Histo", sst.str().c_str(), 4, 0, 4); TCanvas *PatternTrig1 = new TCanvas("PatternTrig1","PatternTrig1", 1280, 1024); //---------- sst.str(""); sst << "Histogram of S4 pattern trigger " << base.Data(); - TH1S *PatternTrig1Histo = new TH1S("PatternTrig1Histo", sst.str().c_str(), 3, 0, 3); + TH1I *PatternTrig1Histo = new TH1I("PatternTrig1Histo", sst.str().c_str(), 3, 0, 3); TCanvas *PatternTrig2 = new TCanvas("PatternTrig2","PatternTrig2", 1280, 1024); //---------- sst.str(""); sst << "Histogram of S3 pattern trigger " << base.Data(); - TH1S *PatternTrig2Histo = new TH1S("PatternTrig2Histo", sst.str().c_str(), 12, 0, 12); + TH1I *PatternTrig2Histo = new TH1I("PatternTrig2Histo", sst.str().c_str(), 12, 0, 12); TCanvas *PatternTrig3 = new TCanvas("PatternTrig3","PatternTrig3", 1280, 1024); //---------- sst.str(""); sst << "Histogram of S2 pattern trigger " << base.Data(); - TH1S *PatternTrig3Histo = new TH1S("PatternTrig3Histo", sst.str().c_str(), 8, 0, 8); + TH1I *PatternTrig3Histo = new TH1I("PatternTrig3Histo", sst.str().c_str(), 8, 0, 8); TCanvas *PatternTrig4 = new TCanvas("PatternTrig4","PatternTrig4", 1280, 1024); //---------- sst.str(""); sst << "Histogram of S12 pattern trigger " << base.Data(); - TH1S *PatternTrig4Histo = new TH1S("PatternTrig4Histo", sst.str().c_str(), 12, 0, 12); + TH1I *PatternTrig4Histo = new TH1I("PatternTrig4Histo", sst.str().c_str(), 12, 0, 12); TCanvas *PatternTrig5 = new TCanvas("PatternTrig5","PatternTrig5", 1280, 1024); //---------- sst.str(""); sst << "Histogram of S11 pattern trigger " << base.Data(); - TH1S *PatternTrig5Histo = new TH1S("PatternTrig5Histo", sst.str().c_str(), 16, 0, 16); + TH1I *PatternTrig5Histo = new TH1I("PatternTrig5Histo", sst.str().c_str(), 16, 0, 16); int i = 0; @@ -122,7 +123,8 @@ HeadBr->GetEntry(i); TrigBr->GetEntry(i); - gStyle->SetStatY(0.85); + gStyle->SetOptStat(0000000); + // gStyle->SetStatY(0.85); int trte0=(int)triggerEvent->patterntrig[0]; @@ -149,10 +151,10 @@ PatternTrig2Histo->AddBinContent(10,bit(trte2,9)); PatternTrig2Histo->AddBinContent(11,bit(trte2,10)); PatternTrig2Histo->AddBinContent(12,bit(trte2,11)); - PatternTrig2Histo->AddBinContent(13,bit(trte2,12)); - PatternTrig2Histo->AddBinContent(14,bit(trte2,13)); - PatternTrig2Histo->AddBinContent(15,bit(trte2,14)); - PatternTrig2Histo->AddBinContent(16,bit(trte2,15)); +// PatternTrig2Histo->AddBinContent(13,bit(trte2,12)); +// PatternTrig2Histo->AddBinContent(14,bit(trte2,13)); +// PatternTrig2Histo->AddBinContent(15,bit(trte2,14)); +// PatternTrig2Histo->AddBinContent(16,bit(trte2,15)); int trte3=(int)triggerEvent->patterntrig[3]; @@ -165,14 +167,14 @@ PatternTrig3Histo->AddBinContent(6,bit(trte3,5)); PatternTrig3Histo->AddBinContent(7,bit(trte3,6)); PatternTrig3Histo->AddBinContent(8,bit(trte3,7)); - PatternTrig3Histo->AddBinContent(9,bit(trte3,8)); - PatternTrig3Histo->AddBinContent(10,bit(trte3,9)); - PatternTrig3Histo->AddBinContent(11,bit(trte3,10)); - PatternTrig3Histo->AddBinContent(12,bit(trte3,11)); - PatternTrig3Histo->AddBinContent(13,bit(trte3,12)); - PatternTrig3Histo->AddBinContent(14,bit(trte3,13)); - PatternTrig3Histo->AddBinContent(15,bit(trte3,14)); - PatternTrig3Histo->AddBinContent(16,bit(trte3,15)); +// PatternTrig3Histo->AddBinContent(9,bit(trte3,8)); +// PatternTrig3Histo->AddBinContent(10,bit(trte3,9)); +// PatternTrig3Histo->AddBinContent(11,bit(trte3,10)); +// PatternTrig3Histo->AddBinContent(12,bit(trte3,11)); +// PatternTrig3Histo->AddBinContent(13,bit(trte3,12)); +// PatternTrig3Histo->AddBinContent(14,bit(trte3,13)); +// PatternTrig3Histo->AddBinContent(15,bit(trte3,14)); +// PatternTrig3Histo->AddBinContent(16,bit(trte3,15)); int trte4=(int)triggerEvent->patterntrig[4]; @@ -189,10 +191,10 @@ PatternTrig4Histo->AddBinContent(10,bit(trte4,9)); PatternTrig4Histo->AddBinContent(11,bit(trte4,10)); PatternTrig4Histo->AddBinContent(12,bit(trte4,11)); - PatternTrig4Histo->AddBinContent(13,bit(trte4,12)); - PatternTrig4Histo->AddBinContent(14,bit(trte4,13)); - PatternTrig4Histo->AddBinContent(15,bit(trte4,14)); - PatternTrig4Histo->AddBinContent(16,bit(trte4,15)); +// PatternTrig4Histo->AddBinContent(13,bit(trte4,12)); +// PatternTrig4Histo->AddBinContent(14,bit(trte4,13)); +// PatternTrig4Histo->AddBinContent(15,bit(trte4,14)); +// PatternTrig4Histo->AddBinContent(16,bit(trte4,15)); int trte5=(int)triggerEvent->patterntrig[5]; @@ -218,15 +220,11 @@ } - gStyle->SetOptStat(111111); - gStyle->SetStatH(0.15); - gStyle->SetStatW(0.15); + // gStyle->SetStatH(0.15); + // gStyle->SetStatW(0.15); /* Pattern Trigger draw*/ - gStyle->SetOptStat("mr"); - - PatternTrig5->cd(); PatternTrig5Histo->SetMinimum(0.); PatternTrig5Histo->Draw(""); @@ -252,20 +250,16 @@ PatternTrig1Histo->Draw(""); - gStyle->SetOptStat("mr"); - gStyle->SetStatH(0.3); - gStyle->SetStatW(0.3); + // gStyle->SetStatH(0.3); + // gStyle->SetStatW(0.3); // print the output const char *saveas = format; if ( !strcmp(saveas,"ps") ) { // ------print the ps - gStyle->SetOptStat(111111); - sst.str(""); sst << outDirectory.Data() << filename.Data() << "TriggerScanExpert." << saveas << "("; - gStyle->SetOptStat("mr"); PatternTrig5->Print(sst.str().c_str()); PatternTrig4->Print(sst.str().c_str()); @@ -279,8 +273,6 @@ } else { - gStyle->SetOptStat("mr"); - sst.str(""); sst << outDirectory.Data() << filename.Data() << "TriggerScanExpert1." << saveas; PatternTrig5->SaveAs(sst.str().c_str());