Changeset 3140 for trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc
- Timestamp:
- 02/13/04 15:28:02 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc
r2798 r3140 95 95 MBinning binst; 96 96 MBinning binsd; 97 binsd.SetEdges(100, - 5, 20);98 binsb.SetEdges(100, 0, 5);97 binsd.SetEdges(100, -10, 20); 98 binsb.SetEdges(100, 0, 10); 99 99 binst.SetEdgesCos(10, 0, 90); 100 100 … … 166 166 167 167 // Get binning for pixel number 168 const UInt_t npix1 = fPed->GetSize()+1; 169 168 //const UInt_t npix1 = fPed->GetSize()+1; 169 //*fLog << "npix1 = " << npix1 << endl; 170 //MBinning binspix("BinningPixel"); 171 //binspix.SetEdges(npix1, -0.5, npix1-0.5); 172 // the above gives npix1 = 1; therefore : 170 173 MBinning binspix("BinningPixel"); 171 binspix.SetEdges( npix1, -0.5, npix1-0.5);174 binspix.SetEdges(578, -0.5, 577.5); 172 175 173 176 // Set binnings in histograms … … 191 194 { 192 195 Double_t theta = fMcEvt ? fMcEvt->GetTelescopeTheta()*kRad2Deg : 0; 193 Double_t mysig = fSigmabar->Calc(*fCam, *fPed, *fEvt); 196 fSigmabar->Calc(*fCam, *fPed, *fEvt); 197 Double_t mysig = fSigmabar->GetSigmabarInner(); 198 199 //*fLog << "theta, mysig = " << theta << ", " << mysig << endl; 194 200 195 201 fSigmaTheta.Fill(theta, mysig); … … 211 217 const Double_t sigma = pix.GetRms(); 212 218 213 fSigmaPixTheta.Fill(theta, (Double_t)id, sigma );219 fSigmaPixTheta.Fill(theta, (Double_t)id, sigma*sqrt(ratio)); 214 220 215 221 const Double_t diff = sigma*sigma*ratio - mysig*mysig;
Note:
See TracChangeset
for help on using the changeset viewer.