Changeset 1652 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 11/20/02 12:18:01 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mmain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MDataCheck.cc
r1603 r1652 31 31 #include "MFillH.h" 32 32 #include "MParList.h" 33 #include "MEvtLoop.h" 34 #include "MHFadcCam.h" 33 35 #include "MTaskList.h" 34 #include "MEvtLoop.h"35 36 #include "MReadTree.h" 36 37 #include "MGDisplayAdc.h" … … 58 59 { 59 60 TGTextButton *pedadc = new TGTextButton(fTop1, "ADC Spectra of Pedestals", kButPedAdc); 60 TGTextButton *cradc = new TGTextButton(fTop1, "ADC Spect a of Cosmics", kButEvtAdc);61 TGTextButton *pedtdc = new TGTextButton(fTop3, " TDCSpectra of Pedestals", kButPedTdc);62 TGTextButton *crtdc = new TGTextButton(fTop3, " TDC Specta of Cosmics", kButEvtTdc);61 TGTextButton *cradc = new TGTextButton(fTop1, "ADC Spectra of Cosmics", kButEvtAdc); 62 TGTextButton *pedtdc = new TGTextButton(fTop3, "Run Spectra of Pedestals", kButPedTdc); 63 TGTextButton *crtdc = new TGTextButton(fTop3, "Run Spectra of Cosmics", kButEvtTdc); 63 64 64 65 pedadc->Associate(this); … … 97 98 // histograms. 98 99 // 99 void MDataCheck::View AdcSpectra(const char *inputfile, const char *treeName)100 void MDataCheck::View(const char *inputfile, const char *treeName, MHFadcPix::Type_t t) 100 101 { 101 102 // … … 119 120 read.DisableAutoScheme(); 120 121 121 MFillH fill("MHFadcCam", "MRawEvtData"); 122 MHFadcCam hist(t); 123 plist.AddToList(&hist); 124 125 MFillH fill(&hist, "MRawEvtData"); 122 126 123 127 tasks.AddToList(&read); … … 149 153 return; 150 154 151 new MGDisplayAdc( (MHFadcCam*)plist.FindObject("MHFadcCam"));155 new MGDisplayAdc(&hist); 152 156 } 153 157 … … 178 182 { 179 183 case kButPedAdc: 180 View AdcSpectra(fInputFile, "PedEvents");184 View(fInputFile, "PedEvents", MHFadcPix::kValue); 181 185 return kTRUE; 182 186 183 187 case kButEvtAdc: 184 View AdcSpectra(fInputFile, "Events");188 View(fInputFile, "Events", MHFadcPix::kValue); 185 189 return kTRUE; 186 190 187 191 case kButPedTdc: 188 // fOctober.PedTdcSpectra(fInputFile);192 View(fInputFile, "PedEvents", MHFadcPix::kSlices); 189 193 return kTRUE; 190 194 191 195 case kButEvtTdc: 196 View(fInputFile, "Events", MHFadcPix::kSlices); 192 197 return kTRUE; 193 198 } -
trunk/MagicSoft/Mars/mmain/MDataCheck.h
r1210 r1652 6 6 #endif 7 7 8 #ifndef MARS_MHFadcPix 9 #include "MHFadcPix.h" 10 #endif 11 8 12 class MDataCheck : public MBrowser 9 13 { 10 14 private: 11 void View AdcSpectra(const char *inputfile, const char *treeName);15 void View(const char *inputfile, const char *treeName, MHFadcPix::Type_t t); 12 16 13 17 public:
Note:
See TracChangeset
for help on using the changeset viewer.