Changeset 2265 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 07/06/03 21:02:56 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/macros
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/pixsatrate.C
r2264 r2265 76 76 tlist.AddToList(&read); 77 77 78 MHTriggerLvl0 trigmap(254, "Saturation", "Saturation"); 79 trigmap.SetType(1); 78 MHTriggerLvl0 trighi(254, "SaturationHi", "Saturation Rate of Hi Gains"); 79 MHTriggerLvl0 triglo(254, "SaturationLo", "Saturation Rate of Lo Gains"); 80 trighi.SetType(1); 81 triglo.SetType(2); 80 82 81 MFillH fillh(trigmap, "MRawEvtData"); 82 plist.AddToList(&trigmap); 83 tlist.AddToList(&fillh); 83 MFillH fillhi(&trighi, "MRawEvtData"); 84 MFillH filllo(&triglo, "MRawEvtData"); 85 tlist.AddToList(&fillhi); 86 tlist.AddToList(&filllo); 84 87 85 88 MEvtLoop evtloop; -
trunk/MagicSoft/Mars/macros/sumevents.C
r2244 r2265 86 86 disp3->SetCamContent(*disp0, 2); 87 87 88 disp2->SetStats(kFALSE); 89 disp3->SetStats(kFALSE); 88 disp1->SetYTitle("S [au]"); 89 disp2->SetYTitle("\\sigma_{S} [au]"); 90 disp3->SetYTitle("\\sigma_{S} [%]"); 90 91 91 disp1->SetYTitle("a.u."); 92 disp2->SetYTitle("err"); 93 disp3->SetYTitle("rel.err [%]"); 92 disp1->SetOptStat(1111); 93 disp2->SetOptStat(1101); 94 disp3->SetOptStat(1101); 95 96 c->cd(1); 97 disp1->Draw("hist"); 98 99 c->cd(2); 100 gPad->SetLogy(); 101 disp2->Draw("hist"); 102 103 c->cd(3); 104 gPad->SetLogy(); 105 disp3->Draw("hist"); 94 106 95 107 c->cd(4); … … 114 126 disp3->Draw(); 115 127 116 c->cd(1);117 disp1->Draw("hist");118 119 c->cd(2);120 gPad->SetLogy();121 disp2->Draw("hist");122 123 c->cd(3);124 gPad->SetLogy();125 disp3->Draw("hist");126 127 128 c->SaveAs(fname(0, fname.Last('.')+1) + "ps"); 128 129 //c->SaveAs(fname(0, fname.Last('.')+1) + "root"); … … 138 139 { 139 140 MDirIter Next; 140 Next.AddDirectory(dirname, " raw*.root", -1);141 Next.AddDirectory(dirname, "*1947*.root", -1); 141 142 142 143 TString fname; -
trunk/MagicSoft/Mars/macros/sumeventserr.C
r2252 r2265 48 48 read.DisableAutoScheme(); 49 49 50 MPedestalSum ncalc;50 //MPedestalSum ncalc; 51 51 //MCerPhotCalc ncalc; 52 52 //MCerPhotAnal ncalc; 53 //MCerPhotAnal2 ncalc;53 MCerPhotAnal2 ncalc; 54 54 55 55 tlist.AddToList(&read); … … 89 89 disp3->SetCamContent(*disp0, 2); 90 90 91 disp2->SetStats(kFALSE); 92 disp3->SetStats(kFALSE); 91 disp1->SetYTitle("S_{err} [au]"); 92 disp2->SetYTitle("\\sigma_{S_{err}} [au]"); 93 disp3->SetYTitle("\\sigma_{S_{err}} [%]"); 93 94 94 disp1->Set YTitle("a.u.");95 disp2->Set YTitle("err");96 disp3->Set YTitle("rel.err [%]");95 disp1->SetOptStat(1111); 96 disp2->SetOptStat(1101); 97 disp3->SetOptStat(1101); 97 98 98 99 c->cd(4); … … 138 139 // This macro shows how to fill and display a histogram using Mars 139 140 // 140 void sumevents (const char *dirname=".")141 void sumeventserr(const char *dirname=".") 141 142 { 142 143 MDirIter Next; 143 Next.AddDirectory(dirname, "* ped*.root", -1);144 Next.AddDirectory(dirname, "*1947*.root", -1); 144 145 145 146 TString fname; -
trunk/MagicSoft/Mars/macros/sumpedestalrms.C
r2252 r2265 90 90 disp3->SetCamContent(*disp0, 2); 91 91 92 disp2->SetStats(kFALSE); 93 disp3->SetStats(kFALSE); 92 disp1->SetYTitle("P_{rms} [au]"); 93 disp2->SetYTitle("\\sigma_{P_{rms}} [au]"); 94 disp3->SetYTitle("\\sigma_{P_{rms}} [%]"); 94 95 95 disp1->Set XTitle("a.u.");96 disp2->Set XTitle("err");97 disp3->Set XTitle("rel.err [%]");96 disp1->SetOptStat(1111); 97 disp2->SetOptStat(1101); 98 disp3->SetOptStat(1101); 98 99 100 c->cd(1); 101 disp1->Draw("hist"); 102 103 c->cd(2); 104 disp2->Draw("hist"); 105 106 c->cd(3); 107 disp3->Draw("hist"); 108 99 109 c->cd(4); 100 110 gPad->SetBorderMode(0); … … 118 128 disp3->Draw(); 119 129 120 c->cd(1);121 disp1->Draw("hist");122 123 c->cd(2);124 disp2->Draw("hist");125 126 c->cd(3);127 disp3->Draw("hist");128 129 130 c->SaveAs(fname(0, fname.Last('.')+1) + "ps"); 130 131 //c->SaveAs(fname(0, fname.Last('.')+1) + "root"); … … 140 141 { 141 142 MDirIter Next; 142 Next.AddDirectory(dirname, " raw*.root", -1);143 Next.AddDirectory(dirname, "*1947*.root", -1); 143 144 144 145 TString fname; -
trunk/MagicSoft/Mars/macros/sumpedestals.C
r2244 r2265 86 86 disp3->SetCamContent(*disp0, 2); 87 87 88 disp2->SetStats(kFALSE); 89 disp3->SetStats(kFALSE); 88 disp1->SetYTitle("P [au]"); 89 disp2->SetYTitle("\\sigma_{P} [au]"); 90 disp3->SetYTitle("\\sigma_{P} [%]"); 90 91 91 disp1->SetXTitle("a.u."); 92 disp2->SetXTitle("err"); 93 disp3->SetXTitle("rel.err [%]"); 92 disp1->SetOptStat(1111); 93 disp2->SetOptStat(1101); 94 disp3->SetOptStat(1101); 95 96 c->cd(1); 97 disp1->Draw("hist"); 98 99 c->cd(2); 100 disp2->Draw("hist"); 101 102 c->cd(3); 103 disp3->Draw("hist"); 94 104 95 105 c->cd(4); … … 114 124 disp3->Draw(); 115 125 116 c->cd(1);117 disp1->Draw("hist");118 119 c->cd(2);120 disp2->Draw("hist");121 122 c->cd(3);123 disp3->Draw("hist");124 125 126 c->SaveAs(fname(0, fname.Last('.')+1) + "ps"); 126 127 //c->SaveAs(fname(0, fname.Last('.')+1) + "root"); … … 136 137 { 137 138 MDirIter Next; 138 Next.AddDirectory(dirname, " raw*.root", -1);139 Next.AddDirectory(dirname, "*1947*.root", -1); 139 140 140 141 TString fname;
Note:
See TracChangeset
for help on using the changeset viewer.