- Timestamp:
- 04/17/03 08:03:48 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1958 r1961 1 1 -*-*- END OF LINE -*-*- 2 3 2003/04/17: Wolfgang Wittek 4 5 * mfileio/MCT1ReadPreProc.cc 6 - removed : if (theta > pi/2) continue; 7 otherwise get inconsistency between no.of read events 8 and no.of events after filter 9 - write into MCerPhotEvt also pixels with zero no. of photons 10 11 * manalysis/MSigmabar.cc 12 - correct wrong argument in call to memset 13 14 * manalysis/MPadSchweizer.cc 15 - pad also pixels with zero no.of photons 16 17 * mhist/MHSigmaTheta.[h,cc] 18 - add plot of no.of used pixels in MCerPhotEvt 19 - add plot of Id of blind pixel 20 21 22 2 23 3 24 2003/04/14: Wolfgang Wittek -
trunk/MagicSoft/Mars/manalysis/MPadSchweizer.cc
r1955 r1961 267 267 Double_t SigbarOld; 268 268 269 270 SigbarOld = fSigmabar->Calc(*fCam, *fPed, *fEvt); 269 271 //*fLog << "before padding : " << endl; 270 //SigbarOld = fSigmabar->Calc(*fCam, *fPed, *fEvt);271 272 //fSigmabar->Print(""); 272 273 … … 407 408 // 408 409 // pad only pixels - which are used (before image cleaning) 409 // - and for which the no.of photons is != 0.0410 410 // 411 411 Double_t Sig = 0.0; … … 422 422 continue; 423 423 424 if ( pix.GetNumPhotons() == 0.0)425 {426 *fLog << "MPadSchweizer::Process(); no.of photons is 0 for used pixel"427 << endl;428 continue;429 }424 //if ( pix.GetNumPhotons() == 0.0) 425 //{ 426 // *fLog << "MPadSchweizer::Process(); no.of photons is 0 for used pixel" 427 // << endl; 428 // continue; 429 //} 430 430 431 431 Int_t j = pix.GetPixId(); … … 572 572 573 573 fHNSB->Fill( NSB/sqrt(Area) ); 574 fHPhotons->Fill( newphotons/sqrt(Area), oldphotons/sqrt(Area) );574 fHPhotons->Fill( oldphotons/sqrt(Area), newphotons/sqrt(Area) ); 575 575 576 576 … … 604 604 continue; 605 605 606 if ( pix.GetNumPhotons() == 0.0)607 {608 *fLog << "MPadSchweizer::Process(); no.of photons is 0 for used pixel"609 << endl;610 continue;611 }606 //if ( pix.GetNumPhotons() == 0.0) 607 //{ 608 // *fLog << "MPadSchweizer::Process(); no.of photons is 0 for used pixel" 609 // << endl; 610 // continue; 611 //} 612 612 613 613 Int_t j = pix.GetPixId(); -
trunk/MagicSoft/Mars/manalysis/MSigmabar.cc
r1951 r1961 16 16 ! 17 17 ! 18 ! Author(s): Robert Wagner, 10/2002 <mailto:magicsoft@rwagner.de>18 ! Author(s): Robert Wagner, 10/2002 <mailto:magicsoft@rwagner.de> 19 19 ! Author(s): Wolfgang Wittek, 01/2003 <mailto:wittek@mppmu.mpg.de> 20 ! Author(s): Thomas Bretz, 04/2003 <mailto:tbretz@astro.uni-wuerzburg.de>20 ! Author(s): Thomas Bretz, 04/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 21 21 ! 22 22 ! Copyright: MAGIC Software Development, 2003 … … 103 103 memset(innerPixels, 0, sizeof(innerPixels)); 104 104 memset(outerPixels, 0, sizeof(outerPixels)); 105 memset( outerSquaredSum, 0, sizeof(outerSquaredSum));105 memset(innerSquaredSum, 0, sizeof(innerSquaredSum)); 106 106 memset(outerSquaredSum, 0, sizeof(outerSquaredSum)); 107 107 … … 115 115 116 116 const UInt_t npix = evt.GetNumPixels(); 117 118 //*fLog << "MSigmabar : npix = " << npix << endl; 117 119 118 120 for (UInt_t i=0; i<npix; i++) … … 121 123 if (!cerpix.IsPixelUsed()) 122 124 continue; 123 /* 125 126 /* 124 127 if ( cerpix.GetNumPhotons() == 0 ) 125 128 { … … 128 131 continue; 129 132 } 130 */ 133 */ 134 131 135 const Int_t id = cerpix.GetPixId(); 132 136 const Double_t area = geom.GetPixRatio(id); 137 138 if (id == 0) 139 { 140 //*fLog << "MSigmabar : id = 0; pixel '0' is used, ignore it" 141 // << endl; 142 continue; 143 } 133 144 134 145 const MGeomPix &gpix = geom[id]; … … 226 237 227 238 } 239 240 241 242 243 244 -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r1952 r1961 246 246 *fLog << endl; 247 247 248 *fLog << "Exclude : ";248 *fLog << "Exclude pixels: "; 249 249 250 250 // Boolean bexcludepix[iMAXNUMPIX]; … … 895 895 //*fLog << event.spixsig_10thphot[i] << " "; 896 896 897 if (event.spixsig_10thphot[i]==0) 898 continue; 897 // next 2 statements commented out by WW 898 //if (event.spixsig_10thphot[i]==0) 899 // continue; 899 900 900 901 fNphot->AddPixel(i, 0.1*event.spixsig_10thphot[i], … … 912 913 fThetaOrig->SetVal(theta); 913 914 914 if (theta>TMath::Pi()/2) 915 return kCONTINUE; 915 //if (theta>TMath::Pi()/2) 916 //{ 917 // *fLog << "MCT1ReadPreProc::ProcessEvent; theta out of range : " 918 // << theta << endl; 919 // return kCONTINUE; 920 //} 916 921 917 922 // store hour angle -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc
r1956 r1961 27 27 // MHSigmaTheta (extension of Robert's MHSigmabarTheta) // 28 28 // // 29 // calculates - the 2D-histogram sigmabar vs. Theta, and // 29 // calculates - the 1D-histogram ID of blind pixels 30 // - the 1D-histogram no.of pixels in MCerPhotEvt, and // 31 // - the 2D-histogram sigmabar vs. Theta, and // 30 32 // - the 3D-histogram sigma, pixel no., Theta // 31 33 // - the 3D-histogram (sigma^2-sigmabar^2), pixel no., Theta // … … 68 70 fName = name ? name : "MHSigmaTheta"; 69 71 fTitle = title ? title : "2D histogram sigmabar vs. Theta"; 72 73 fNpix.SetDirectory(NULL); 74 fNpix.SetName("1D-Npix"); 75 fNpix.SetTitle("1D : no.of used pixels in MCerPhotEvt"); 76 fNpix.SetXTitle("no. of used pixels in MCerPhotEvt"); 77 fNpix.SetYTitle("Counts"); 78 79 fBlindId.SetDirectory(NULL); 80 fBlindId.SetName("1D-BlindId"); 81 fBlindId.SetTitle("1D : Id of blind pixel"); 82 fBlindId.SetXTitle("Id of blind pixel"); 83 fBlindId.SetYTitle("Counts"); 70 84 71 85 fSigmaTheta.SetDirectory(NULL); … … 164 178 165 179 MBinning binspix("BinningPixel"); 166 binspix.SetEdges(npix, -0.5, -0.5+npix ); 167 180 binspix.SetEdges(npix+1, -0.5, 0.5+npix ); 181 182 SetBinning(&fNpix, &binspix); 183 SetBinning(&fBlindId, &binspix); 168 184 SetBinning(&fSigmaPixTheta, binstheta, &binspix, binssigma); 169 185 SetBinning(&fDiffPixTheta, binstheta, &binspix, binsdiff); … … 183 199 Double_t mySig = fSigmabar->Calc(*fCam, *fPed, *fEvt); 184 200 201 //*fLog << "MHSigmaTheta::Fill; theta, mySig = " << theta << ", " 202 // << mySig << endl; 203 185 204 fSigmaTheta.Fill(theta, mySig); 186 205 187 206 const UInt_t npix = fEvt->GetNumPixels(); 207 208 Int_t npixused=0; 188 209 for (UInt_t i=0; i<npix; i++) 189 210 { 190 211 MCerPhotPix cerpix = fEvt->operator[](i); 191 212 if (!cerpix.IsPixelUsed()) 213 { 214 fBlindId.Fill( cerpix.GetPixId() ); 192 215 continue; 193 194 /* 216 } 217 npixused++; 218 219 /* 195 220 if (cerpix.GetNumPhotons() == 0) 196 221 continue; 197 */222 */ 198 223 199 224 const Int_t id = cerpix.GetPixId(); … … 203 228 const Double_t area = fCam->GetPixRatio(id); 204 229 230 205 231 fSigmaPixTheta.Fill(theta, (Double_t)id, sigma); 206 232 207 233 const Double_t diff = sigma*sigma/area - mySig*mySig; 208 234 fDiffPixTheta.Fill(theta, (Double_t)id, diff); 235 236 //*fLog << "theta, id, sigma, diff, area = " << theta << ", " << id 237 // << ", " 238 // << sigma << ", " << diff << ", " << area << endl; 209 239 } 240 fNpix.Fill(npixused); 210 241 211 242 return kTRUE; … … 277 308 l->SetBit(kCanDelete);; 278 309 310 //c.cd(8); 311 //((TH2*)&fDiffPixTheta)->DrawCopy(opt); 312 279 313 c.cd(8); 280 ((TH 2*)&fDiffPixTheta)->DrawCopy(opt);314 ((TH1*)&fBlindId)->DrawCopy(opt); 281 315 282 316 … … 306 340 k->SetBit(kCanDelete);; 307 341 342 //c.cd(9); 343 //((TH2*)&fSigmaPixTheta)->DrawCopy(opt); 344 308 345 c.cd(9); 309 ((TH 2*)&fSigmaPixTheta)->DrawCopy(opt);346 ((TH1*)&fNpix)->DrawCopy(opt); 310 347 311 348 //-------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.h
r1951 r1961 32 32 MMcEvt *fMcEvt; //! 33 33 34 TH2D fSigmaTheta; // 2D-distribution sigmabar versus Theta; sigmabar is the average pedestasl sigma in an event 34 TH1D fNpix; // 1D-distribution no.of pixels in MCerPhotEvt; 35 TH1D fBlindId; // 1D-distribution Id of blind pixel; 36 TH2D fSigmaTheta; // 2D-distribution sigmabar versus Theta; 37 // sigmabar is the average pedestasl sigma in an event 35 38 TH3D fSigmaPixTheta; // 3D-distr.:Theta, pixel, pedestal sigma 36 39 TH3D fDiffPixTheta; // 3D-distr.:Theta, pixel, sigma^2-sigmabar^2
Note:
See TracChangeset
for help on using the changeset viewer.