Changeset 2210
- Timestamp:
- 06/23/03 13:19:34 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.cc
r2173 r2210 48 48 #include "MGeomPix.h" 49 49 #include "MGeomCamMagic.h" 50 #include "M CamDisplay.h"50 #include "MHCamera.h" 51 51 52 52 #include "MMcTrig.hxx" … … 283 283 284 284 // 285 // Use M CamDisplay class variable for avoiding to create a MCamDisplayeach285 // Use MHCamera class variable for avoiding to create a MHCamera each 286 286 // time this function is called. Also, now all the hexagons are drawn in 287 287 // the same camera pad … … 291 291 if (!fCam) 292 292 { 293 fCam = new M CamDisplay(fGeomCam);293 fCam = new MHCamera(*fGeomCam); 294 294 fCam->Draw(); 295 295 fCam->DrawPixelNumbers(); … … 325 325 { 326 326 // 327 // Use M CamDisplay class variable for avoiding to create a MCamDisplayeach327 // Use MHCamera class variable for avoiding to create a MHCamera each 328 328 // time this function is called. Also, now all the hexagons are drawn in 329 329 // the same camera pad … … 335 335 if (!fCam) 336 336 { 337 fCam = new M CamDisplay(fGeomCam);337 fCam = new MHCamera(*fGeomCam); 338 338 fCam->Draw(); 339 339 fCam->DrawPixelNumbers(); -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.h
r2005 r2210 8 8 class MMcTrig; 9 9 10 class M CamDisplay;10 class MHCamera; 11 11 class MGeomCamMagic; 12 12 … … 38 38 MMcTrig *fMcTrig; 39 39 MGeomCam *fGeomCam; 40 M CamDisplay*fCam;40 MHCamera *fCam; 41 41 // MCluster *fClust; 42 42 -
trunk/MagicSoft/Mars/mbase/MParList.cc
r2178 r2210 75 75 fContainer = new TOrdCollection; 76 76 fAutodelete = new TOrdCollection; 77 78 gROOT->GetListOfCleanups()->Add(fContainer); 79 gROOT->GetListOfCleanups()->Add(fAutodelete); 80 fContainer->SetBit(kMustCleanup); 81 fAutodelete->SetBit(kMustCleanup); 77 82 } 78 83 … … 111 116 IsOwner() ? fContainer->SetOwner() : fAutodelete->SetOwner(); 112 117 118 TIter Next(fContainer); 119 TObject *o; 120 while (o=Next()) 121 if (o->TestBit(kCanDelete)) 122 delete fContainer->Remove(o); 123 113 124 // FIXME? If fContainer is owner do we have to remove the object 114 125 // from fAutodelete due to the acces when checking for a … … 206 217 *fLog << inf << "Adding " << name << " to " << GetName() << "... " << flush; 207 218 219 cont->SetBit(kMustCleanup); 208 220 fContainer->Add(cont); 209 221 *fLog << "Done." << endl; … … 228 240 MParContainer *cont = NULL; 229 241 while ((cont=Next())) 242 { 243 cont->SetBit(kMustCleanup); 230 244 AddToList(cont); 245 } 231 246 } 232 247 -
trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc
r2178 r2210 36 36 #include "MEvtLoop.h" // MEvtLoop::GetParList 37 37 #include "MTaskList.h" // MTaskList::AddToList 38 #include "M CamDisplay.h" // MCamDisplay38 #include "MHCamera.h" // MHCamera 39 39 #include "MHillasCalc.h" // MHillasCalc 40 40 #include "MHillasSrcCalc.h" // MHillasSrcCalc 41 41 #include "MPedestalCam.h" // MPedestalCam 42 #include "MCerPhot Calc.h" // MCerPhotCalc42 #include "MCerPhotAnal2.h" // MCerPhotAnal 43 43 #include "MMcPedestalCopy.h" // MMcPedestalCopy 44 44 #include "MMcPedestalNSBAdd.h" // MMcPedestalNSBAdd … … 120 120 MMcPedestalCopy *pcopy = new MMcPedestalCopy; 121 121 MMcPedestalNSBAdd *pdnsb = new MMcPedestalNSBAdd; 122 MCerPhot Calc *ncalc = new MCerPhotCalc;122 MCerPhotAnal2 *ncalc = new MCerPhotAnal2; 123 123 MClone *clone = new MClone("MCerPhotEvt"); 124 124 MImgCleanStd *clean = new MImgCleanStd; … … 177 177 { 178 178 fCanvas2[i]->cd(); 179 fDisplay[i] = new M CamDisplay(geom);179 fDisplay[i] = new MHCamera(*geom); 180 180 fDisplay[i]->Draw(); 181 181 fDisplay[i]->AddNotify(*(MCamEvent*)GetParList()->FindObject("MRawEvtData")); … … 249 249 const MPedestalCam *ped = (MPedestalCam*)plist->FindObject("MPedestalCam"); 250 250 251 fDisplay[0]-> Fill((MCamEvent&)*evt, 0);252 fDisplay[1]-> Fill((MCamEvent&)*evt, 1);253 fDisplay[2]-> Fill((MCamEvent&)*evt, 2);251 fDisplay[0]->SetCamContent((MCamEvent&)*evt, 0); 252 fDisplay[1]->SetCamContent((MCamEvent&)*evt, 1); 253 fDisplay[2]->SetCamContent((MCamEvent&)*evt, 2); 254 254 fDisplay[3]->FillLevels(*evt, *clean); 255 fDisplay[4]-> Fill((MCamEvent&)*ped);255 fDisplay[4]->SetCamContent((MCamEvent&)*ped); 256 256 257 257 for (int i=0; i<5; i++) -
trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.h
r1966 r2210 9 9 10 10 class MGeomCam; 11 class M CamDisplay;11 class MHCamera; 12 12 13 13 class MGCamDisplay : public MGEvtDisplay … … 19 19 TGListBox *fPixelList; 20 20 21 M CamDisplay*fDisplay[5];21 MHCamera *fDisplay[5]; 22 22 TCanvas *fCanvas2[5]; 23 23 -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r2205 r2210 46 46 #include "MTaskList.h" 47 47 #include "MEvtLoop.h" 48 #include "M CamDisplay.h"48 #include "MHCamera.h" 49 49 #include "MReadMarsFile.h" 50 50 #include "MGeomCamMagic.h" … … 279 279 AddTab("Geometry"); 280 280 MGeomCamMagic geom; 281 M CamDisplay *display = new MCamDisplay(&geom);281 MHCamera *display = new MHCamera(geom); 282 282 display->Draw(); 283 283 display->DrawPixelNumbers(); … … 648 648 { 649 649 case kTE_ENTER: 650 case kCM_BUTTON:651 650 if (parm1==kClose) 652 651 { … … 664 663 ReadinEvent(); 665 664 return kTRUE; 666 667 case kCM_BUTTON:668 switch (parm1)669 {670 case kEvtPrev:671 ReadinEvent(-1);672 return kTRUE;673 674 case kEvtNext:675 ReadinEvent(+1);676 return kTRUE;677 }678 return kTRUE;679 665 } 680 666 return kTRUE; … … 685 671 switch (GET_SUBMSG(msg)) 686 672 { 673 case kCM_BUTTON: 674 if (parm1==kClose) 675 { 676 CloseWindow(); 677 return kTRUE; 678 } 679 680 if (!fInitOk) 681 return kTRUE; 682 683 switch (parm1) 684 { 685 case kEvtPrev: 686 ReadinEvent(-1); 687 return kTRUE; 688 689 case kEvtNext: 690 ReadinEvent(+1); 691 return kTRUE; 692 } 693 return kTRUE; 694 687 695 case kCM_MENU: 688 696 switch (parm1) -
trunk/MagicSoft/Mars/mgui/GuiLinkDef.h
r2178 r2210 7 7 #pragma link C++ class MHexagon+; 8 8 #pragma link C++ class MCamEvent+; 9 #pragma link C++ class MCamDisplay+;10 9 11 10 #endif -
trunk/MagicSoft/Mars/mgui/Makefile
r2178 r2210 30 30 31 31 SRCFILES = MHexagon.cc \ 32 MCamEvent.cc \ 33 MCamDisplay.cc 34 32 MCamEvent.cc 33 35 34 SRCS = $(SRCFILES) 36 35 HEADERS = $(SRCFILES:.cc=.h) -
trunk/MagicSoft/Mars/mhist/HistLinkDef.h
r2165 r2210 19 19 #pragma link C++ class MHFadcPix+; 20 20 21 #pragma link C++ class MHC erPhotEvt+;22 #pragma link C++ class MH Currents+;21 #pragma link C++ class MHCamEvent+; 22 #pragma link C++ class MHTriggerLvl0+; 23 23 24 24 #pragma link C++ class MHBlindPixels+; … … 42 42 #pragma link C++ class MHCompProb+; 43 43 #pragma link C++ class MHHadronness+; 44 #pragma link C++ class MHTrigLvl0+;45 44 46 #pragma link C++ class MHOnSubtraction+; 45 #pragma link C++ class MHCamera+; 46 //#pragma link C++ class MHCurrents+; 47 //#pragma link C++ class MHOnSubtraction+; 47 48 48 49 #endif -
trunk/MagicSoft/Mars/mhist/Makefile
r2179 r2210 24 24 INCLUDES = -I. -I../mbase -I../mraw -I../manalysis \ 25 25 -I../mgui -I../mgeom -I../mdata -I../mfilter -I../mimage \ 26 -I../mmain -I../mmc 26 -I../mmain -I../mmc -I../mreflector 27 27 28 28 #------------------------------------------------------------------------------ … … 36 36 MWeight.cc \ 37 37 MH3.cc \ 38 MHCerPhotEvt.cc \ 39 MHCurrents.cc \ 38 MHCamEvent.cc \ 40 39 MHMatrix.cc \ 41 40 MHFadcPix.cc \ … … 59 58 MHSigmabarTheta.cc \ 60 59 MHSigmaTheta.cc \ 61 MHTrigLvl0.cc 60 MHTriggerLvl0.cc \ 61 MHCamera.cc 62 # MHCurrents.cc \ 62 63 # MHOnSubtraction.cc \ 63 64
Note:
See TracChangeset
for help on using the changeset viewer.