Changeset 19602 for trunk/Mars


Ignore:
Timestamp:
09/02/19 20:41:21 (5 years ago)
Author:
tbretz
Message:
Implemented a higher resolution type (9) for the camera
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/macros/hawcseye/fresnellens_image.C

    r19601 r19602  
    3939    MHPhotonEvent plane3(2, "HMirrorPlane3");
    4040    MHPhotonEvent plane4(2, "HMirrorPlane4");
    41     MHPhotonEvent planeC(5, "HPhotonEventCamera");
     41    MHPhotonEvent planeC(9, "HPhotonEventCamera");
    4242
    4343    planeG.SetMaxImpact(60);
  • trunk/Mars/msim/MHPhotonEvent.cc

    r19547 r19602  
    186186    MH::FindGoodLimits(num, num, min, max, kFALSE);
    187187
     188    cout << "NUM=" << num << " " << min << " " << max << endl;
    188189    const MBinning binsd(num+1, min, max);
    189190
     
    236237    case 7: // The maximum radius (cm) -- ~  3 bins / pix
    237238    case 8: // The maximum radius (cm) -- ~  2 bins / pix
     239    case 9: // The maximum radius (cm) -- ~ 50 bins / pix
    238240        {
    239241            MGeomCam *c = (MGeomCam*)pList->FindObject("MGeomCam");
     
    268270                num = 101;
    269271                break;
     272            case 9:
     273                // ~50 bins per pixel
     274                num = TMath::Nint(50*c->GetMaxRadius()/(*c)[0].GetT());
     275                break;
    270276            }
    271277
    272             if (fType==5 || fType==6 || fType==7)
     278            if (fType==5 || fType==6 || fType==7 || fType==9)
    273279                xmax /= 10;
    274280
Note: See TracChangeset for help on using the changeset viewer.