Changeset 19673 for trunk/Mars


Ignore:
Timestamp:
09/24/19 15:19:34 (5 years ago)
Author:
tbretz
Message:
Allow to create a camera without the blind pixels.
Location:
trunk/Mars/mgeom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mgeom/MGeomCamFAMOUS.cc

    r19651 r19673  
    6161// --------------------------------------------------------------------------
    6262//
     63MGeomCamFAMOUS::MGeomCamFAMOUS(Double_t dist, bool all, const char *name)
     64: MGeomCam(all?64:61, dist, name, "Geometry information of the final FAMOUS Camera")
     65{
     66    CreateCam(all);
     67    InitGeometry();
     68}
     69
     70// --------------------------------------------------------------------------
     71//
    6372// Check if the photon which is flying along the trajectory u has passed
    6473// (or will pass) the frame of the camera (and consequently get
     
    8493// --------------------------------------------------------------------------
    8594//
    86 void MGeomCamFAMOUS::CreateCam()
     95void MGeomCamFAMOUS::CreateCam(bool all)
    8796{
    8897    const static Int_t dir[6] =
     
    122131    }
    123132
     133    if (!all)
     134        return;
     135
    124136    MGeomPix::CalcXY(MGeomPix::kDirNW, 6, 2, x, y);
    125137    const MGeomPix pix62(x*diameter, -y*diameter, diameter);
  • trunk/Mars/mgeom/MGeomCamFAMOUS.h

    r18785 r19673  
    1313    static Double_t CalcXY(Int_t dir, Int_t ring, Int_t i, Double_t &x, Double_t &y);
    1414
    15     void CreateCam();
     15    void CreateCam(bool all=true);
    1616
    1717public:
    1818    MGeomCamFAMOUS(const char *name=NULL);
    1919    MGeomCamFAMOUS(Double_t dist, const char *name=NULL);
     20    MGeomCamFAMOUS(Double_t dist, bool all, const char *name=NULL);
    2021
    2122    Bool_t HitFrame(MQuaternion p, const MQuaternion &u) const;
Note: See TracChangeset for help on using the changeset viewer.