Changeset 1668 for trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTheta.cc
- Timestamp:
- 11/25/02 09:12:47 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTheta.cc
r1415 r1668 64 64 fHist.SetDirectory(NULL); 65 65 66 fHist.SetTitle("3D-plot of alpha, E -est, Theta");66 fHist.SetTitle("3D-plot of alpha, E_{est}, Theta"); 67 67 fHist.SetXTitle("\\alpha [\\circ]"); 68 fHist.SetYTitle("E -est [GeV]");68 fHist.SetYTitle("E_{est} [GeV]"); 69 69 fHist.SetZTitle("\\Theta [\\circ]"); 70 70 } … … 79 79 if (!fEnergy) 80 80 { 81 *fLog << err << dbginf << "M HAlphaEnergyTheta : MEnergyEst not found... aborting." << endl;81 *fLog << err << dbginf << "MEnergyEst not found... aborting." << endl; 82 82 return kFALSE; 83 83 } … … 86 86 if (!fMcEvt) 87 87 { 88 *fLog << err << dbginf << "M HAlphaEnergyTheta : MMcEvt not found... aborting." << endl;88 *fLog << err << dbginf << "MMcEvt not found... aborting." << endl; 89 89 return kFALSE; 90 90 } … … 95 95 if (!binsenergy || !binsalphaflux || !binstheta) 96 96 { 97 *fLog << err << dbginf << " MHAlphaEnergyTheta :At least one MBinning not found... aborting." << endl;97 *fLog << err << dbginf << "At least one MBinning not found... aborting." << endl; 98 98 return kFALSE; 99 99 } … … 103 103 fHist.Sumw2(); 104 104 105 fHist.Sumw2();106 107 105 return kTRUE; 108 106 } … … 116 114 MHillasSrc &hil = *(MHillasSrc*)par; 117 115 118 fHist.Fill(fabs(hil.GetAlpha()), fEnergy->GetEnergy(), fMcEvt->GetTheta()*kRad2Deg); 116 fHist.Fill(fabs(hil.GetAlpha()), fEnergy->GetEnergy(), 117 fMcEvt->GetTelescopeTheta()*kRad2Deg); 119 118 120 119 return kTRUE; … … 148 147 149 148 h->SetTitle("Distribution of E-est [GeV]"); 150 h->SetXTitle("E -est [GeV]");149 h->SetXTitle("E_{est} [GeV]"); 151 150 h->SetYTitle("Counts"); 152 151 … … 186 185 187 186 c.cd(1); 188 h = ((TH3*)(&fHist))->Project3D( "expro");187 h = ((TH3*)(&fHist))->Project3D(fName+"_expro"); 189 188 190 189 h->SetTitle("Distribution of \\alpha [\\circ]"); … … 196 195 197 196 c.cd(2); 198 h = ((TH3*)(&fHist))->Project3D( "eypro");197 h = ((TH3*)(&fHist))->Project3D(fName+"_eypro"); 199 198 200 199 h->SetTitle("Distribution of E-est [GeV]"); 201 h->SetXTitle("E -est [GeV]");200 h->SetXTitle("E_{est} [GeV]"); 202 201 h->SetYTitle("Counts"); 203 202 … … 207 206 208 207 c.cd(3); 209 h = ((TH3*)(&fHist))->Project3D( "ezpro");208 h = ((TH3*)(&fHist))->Project3D(fName+"_ezpro"); 210 209 211 210 h->SetTitle("Distribution of \\Theta [\\circ]");
Note:
See TracChangeset
for help on using the changeset viewer.