Changeset 4700 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 08/23/04 09:45:40 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r2416 r4700 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 2001 <mailto:tbretz@ uni-sw.gwdg.de>19 ! 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 218 ! Author(s): Thomas Bretz 2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! Author(s): Wolfgang Wittek 2002 <mailto:wittek@mppmu.mpg.de> 20 ! 21 ! Copyright: MAGIC Software Development, 2000-2004 22 22 ! 23 23 ! … … 50 50 #include "MBinning.h" 51 51 52 #include "MHCamera.h" 52 53 53 54 ClassImp(MHHillas); … … 60 61 // 61 62 MHHillas::MHHillas(const char *name, const char *title) 62 : f Mm2Deg(1), fUseMmScale(kTRUE)63 : fGeomCam(0), fMm2Deg(1), fUseMmScale(kTRUE) 63 64 { 64 65 // … … 141 142 Bool_t MHHillas::SetupFill(const MParList *plist) 142 143 { 143 const MGeomCam *geom = (MGeomCam*)plist->FindObject("MGeomCam");144 if (! geom)144 fGeomCam = (MGeomCam*)plist->FindObject("MGeomCam"); 145 if (!fGeomCam) 145 146 *fLog << warn << GetDescriptor() << ": No Camera Geometry available. Using mm-scale for histograms." << endl; 146 147 else 147 148 { 148 fMm2Deg = geom->GetConvMm2Deg();149 fMm2Deg = fGeomCam->GetConvMm2Deg(); 149 150 SetMmScale(kFALSE); 150 151 } … … 159 160 if (!bins) 160 161 { 161 float r = geom ? geom->GetMaxRadius() : 600;162 float r = fGeomCam ? fGeomCam->GetMaxRadius() : 600; 162 163 r *= 0.9; 163 164 if (!fUseMmScale) … … 312 313 SetColors(); 313 314 fCenter->Draw("colz"); 315 if (fGeomCam) 316 { 317 MHCamera *cam = new MHCamera(*fGeomCam); 318 cam->Draw("same"); 319 cam->SetBit(kCanDelete); 320 } 314 321 315 322 pad->cd(5); -
trunk/MagicSoft/Mars/mimage/MHHillas.h
r2416 r4700 9 9 class TH2F; 10 10 class MHillas; 11 class MGeomCam; 11 12 12 13 class MHHillas : public MH … … 24 25 25 26 void SetColors() const; 27 28 MGeomCam *fGeomCam; //! Camera geometry for plots (for the moment this is a feature for a loop only!) 26 29 27 30 Float_t fMm2Deg;
Note:
See TracChangeset
for help on using the changeset viewer.