Changeset 19673 for trunk/Mars
- Timestamp:
- 09/24/19 15:19:34 (5 years ago)
- Location:
- trunk/Mars/mgeom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mgeom/MGeomCamFAMOUS.cc
r19651 r19673 61 61 // -------------------------------------------------------------------------- 62 62 // 63 MGeomCamFAMOUS::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 // 63 72 // Check if the photon which is flying along the trajectory u has passed 64 73 // (or will pass) the frame of the camera (and consequently get … … 84 93 // -------------------------------------------------------------------------- 85 94 // 86 void MGeomCamFAMOUS::CreateCam( )95 void MGeomCamFAMOUS::CreateCam(bool all) 87 96 { 88 97 const static Int_t dir[6] = … … 122 131 } 123 132 133 if (!all) 134 return; 135 124 136 MGeomPix::CalcXY(MGeomPix::kDirNW, 6, 2, x, y); 125 137 const MGeomPix pix62(x*diameter, -y*diameter, diameter); -
trunk/Mars/mgeom/MGeomCamFAMOUS.h
r18785 r19673 13 13 static Double_t CalcXY(Int_t dir, Int_t ring, Int_t i, Double_t &x, Double_t &y); 14 14 15 void CreateCam( );15 void CreateCam(bool all=true); 16 16 17 17 public: 18 18 MGeomCamFAMOUS(const char *name=NULL); 19 19 MGeomCamFAMOUS(Double_t dist, const char *name=NULL); 20 MGeomCamFAMOUS(Double_t dist, bool all, const char *name=NULL); 20 21 21 22 Bool_t HitFrame(MQuaternion p, const MQuaternion &u) const;
Note:
See TracChangeset
for help on using the changeset viewer.