Changeset 5955 for trunk/MagicSoft/Mars/mtemp/mifae
- Timestamp:
- 01/24/05 10:28:16 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r5954 r5955 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2005/01/24 Eva Domingo 22 * library/MFDisp.[cc,h] 23 - Number of islands read from MImagePar container 24 to be used as cut parameter if wanted 25 * library/MHDisp.cc 26 - corrected to be able to run Disp method also over 27 data (MMcEvt container info just used if available) 28 * library/MDispCalc.cc 29 - introduced DISP = Xi*(1/(1+width/length)) as default 30 Disp parameterization for the moment 20 31 21 32 2005/01/24 Eva Domingo -
trunk/MagicSoft/Mars/mtemp/mifae/library/MDispCalc.cc
r5923 r5955 300 300 // + (p[2] + p[3]*(logsize-fLogSize0))*width/length; 301 301 302 Double_t disp = p[0] + p[1]*(logsize-fLogSize0) + p[4]*(length-fLength0)303 + (p[2] + p[3]*(logsize-fLogSize0))*width/length;302 // Double_t disp = p[0] + p[1]*(logsize-fLogSize0) + p[4]*(length-fLength0) 303 // + (p[2] + p[3]*(logsize-fLogSize0))*width/length; 304 304 305 305 // Double_t disp = p[0] + p[1]*(logsize-fLogSize0) + p[4]*(length-fLength0) … … 327 327 // *(1-width/length); 328 328 329 Double_t disp = ( p[0] + p[1]*(logsize) 330 + p[2]*pow(logsize,2) 331 + p[3]*pow(logsize,3) 332 + p[4]*pow(logsize,4) ) 333 *( 1/(1+width/length) ); 329 334 return disp; 330 335 } -
trunk/MagicSoft/Mars/mtemp/mifae/library/MFDisp.cc
r5671 r5955 40 40 #include "MHillas.h" 41 41 #include "MHillasSrc.h" 42 #include "MImagePar.h" 42 43 #include "MNewImagePar.h" 43 44 … … 130 131 } 131 132 133 fImgPar = (MImagePar*)pList->FindObject("MImagePar"); 134 if (!fImgPar) 135 { 136 *fLog << err << "MImagePar not found... aborting." << endl; 137 return kFALSE; 138 } 139 132 140 fNewImgPar = (MNewImagePar*)pList->FindObject("MNewImagePar"); 133 141 if (!fNewImgPar) … … 200 208 const Int_t numusedpixels = fNewImgPar->GetNumUsedPixels(); 201 209 const Int_t numcorepixels = fNewImgPar->GetNumCorePixels(); 202 //const Int_t numislands = fNewImgPar->GetNumIslands();210 const Int_t numislands = fImgPar->GetNumIslands(); 203 211 204 212 fResult = kFALSE; 205 213 206 //if (numislands<fIslandsMin || numislands>fIslandsMax )207 //return Set(1);214 if (numislands<fIslandsMin || numislands>fIslandsMax ) 215 return Set(1); 208 216 209 217 if (numusedpixels<fUsedPixelsMin || numusedpixels>fUsedPixelsMax ) -
trunk/MagicSoft/Mars/mtemp/mifae/library/MFDisp.h
r5671 r5955 8 8 class MHillas; 9 9 class MHillasSrc; 10 class MImagePar; 10 11 class MNewImagePar; 11 12 … … 16 17 MHillas *fHil; 17 18 MHillasSrc *fHilSrc; 19 MImagePar *fImgPar; 18 20 MNewImagePar *fNewImgPar; 19 21 -
trunk/MagicSoft/Mars/mtemp/mifae/library/MHDisp.cc
r5923 r5955 299 299 if (!fMcEvt) 300 300 { 301 *fLog << err << "MMcEvt not found... aborting." << endl; 302 return kFALSE; 301 *fLog << err << "MMcEvt not found... This is not a MC file," 302 << " you are not trying to optimize Disp, just calculating it." 303 << endl; 304 // return kFALSE; 303 305 } 304 306 … … 424 426 xmax = fMatrix ? GetVal(kLongitmax) : fMcEvt->GetLongitmax(); 425 427 } 426 else427 *fLog << "No MMcEvt container available (no Energy,ImpactPar or Xmax)" << endl;428 428 429 429 Double_t theta = fMatrix ? GetVal(kZd) : fPointing->GetZd(); … … 504 504 505 505 // Fill Energy, Size and ZA distributions 506 fHistEnergy->Fill(log10(energy)); 506 if (fMatrix || (!fMatrix && fMcEvt)) 507 fHistEnergy->Fill(log10(energy)); 507 508 fHistSize->Fill(log10(size)); 508 509 fHistcosZA->Fill(cos(theta/kRad2Deg)); 509 510 510 511 // to check the size and energy dependence of the optimization 511 fHistMinParEnergy->Fill(log10(energy),d2); 512 if (fMatrix || (!fMatrix && fMcEvt)) 513 { 514 fHistMinParEnergy->Fill(log10(energy),d2); 515 fHistDuEnergy->Fill(log10(energy),Du); 516 fHistDvEnergy->Fill(log10(energy),Dv); 517 } 512 518 fHistMinParSize->Fill(log10(size),d2); 513 fHistDuEnergy->Fill(log10(energy),Du);514 519 fHistDuSize->Fill(log10(size),Du); 515 fHistDvEnergy->Fill(log10(energy),Dv);516 520 fHistDvSize->Fill(log10(size),Dv); 517 521
Note:
See TracChangeset
for help on using the changeset viewer.