Changeset 19360
- Timestamp:
- 11/07/18 21:15:01 (6 years ago)
- Location:
- trunk/Mars/mhist
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mhist/MHEvent.cc
r18271 r19360 48 48 #include <TStyle.h> 49 49 #include <TCanvas.h> 50 #include <TEllipse.h> 50 51 #include <TPaveText.h> 51 52 … … 56 57 #include "MMcTrig.hxx" 57 58 59 #include "MHillas.h" 58 60 #include "MHCamera.h" 59 61 #include "MParList.h" … … 74 76 // -------------------------------------------------------------------------- 75 77 // 76 MHEvent::MHEvent(EventType_t type) : fHist(NULL), fType(type),77 f Minimum(-1111), fMaximum(-1111)78 MHEvent::MHEvent(EventType_t type) : fHist(NULL), 79 fType(type), fMinimum(-1111), fMaximum(-1111) 78 80 { 79 81 fName = "MHEvent"; … … 82 84 fClone = new MRawEvtData("MHEventData"); 83 85 fTrigCpy = new MTriggerPattern; 86 fEllipse = new TEllipse; 84 87 } 85 88 … … 93 96 delete fClone; 94 97 delete fTrigCpy; 98 delete fEllipse; 95 99 } 96 100 … … 103 107 fTime = (MTime*)plist->FindObject("MTime"); 104 108 fTrigger = (MTriggerPattern*)plist->FindObject("MTriggerPattern"); 109 fHillas = (MHillas*)plist->FindObject("MHillas"); 105 110 106 111 fRawEvtData = (MRawEvtData*)plist->FindObject("MRawEvtData"); … … 250 255 if (fRawEvtData) 251 256 fRawEvtData->Copy(*fClone); 257 258 if (fHillas && fEllipse) 259 { 260 TEllipse(fHillas->GetMeanX(), fHillas->GetMeanY(), 261 fHillas->GetLength(), fHillas->GetWidth(), 262 0, 360, fHillas->GetDelta()*TMath::RadToDeg()).Copy(*fEllipse); 263 fEllipse->SetLineWidth(2); 264 fEllipse->SetFillStyle(1); 265 } 252 266 253 267 switch (fType) … … 417 431 gPad->SetBorderMode(0); 418 432 fHist->Draw(); 433 if (fEllipse && fHillas) 434 fEllipse->Draw(); 419 435 420 436 AppendPad("1"); -
trunk/Mars/mhist/MHEvent.h
r18271 r19360 5 5 #include "MH.h" 6 6 #endif 7 8 class TEllipse; 7 9 8 10 class MHCamera; … … 14 16 class MMcEvt; 15 17 class MMcTrig; 18 class MHillas; 16 19 class MSignalCam; 17 20 class MImgCleanStd; … … 42 45 MImgCleanStd *fImgCleanStd; //! 43 46 MTriggerPattern *fTrigger; //! 47 MHillas *fHillas; //! 44 48 45 49 MRawEvtData *fClone; //-> … … 47 51 48 52 MHCamera *fHist; 53 TEllipse *fEllipse; 49 54 50 55 EventType_t fType;
Note:
See TracChangeset
for help on using the changeset viewer.