Changeset 959 for trunk/MagicSoft/Mars/mdatacheck
- Timestamp:
- 10/02/01 14:46:56 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mdatacheck
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdatacheck/DataCheckLinkDef.h
r938 r959 5 5 #pragma link off all functions; 6 6 7 #pragma link C++ class MShowSpect;8 #pragma link C++ class MViewAdcSpectra;7 //#pragma link C++ class MShowSpect; 8 //#pragma link C++ class MViewAdcSpectra; 9 9 #pragma link C++ class MDumpEvtHeader; 10 10 -
trunk/MagicSoft/Mars/mdatacheck/MDumpEvtHeader.cc
r956 r959 24 24 \* ======================================================================== */ 25 25 26 ////////////////////////////////////////////////////////////////////////////// 27 // 28 // MDumpEvtHeader 29 // 30 // Print out some event header information to the screen. This maybe useful 31 // if you are not sure what the events in the file conatins or you 32 // want to check for the contents. 33 // 34 // Input Containers: 35 // MRawEvtHeader, MRawEvtData 36 // 37 // Output Containers: 38 // -/- 39 // 40 ////////////////////////////////////////////////////////////////////////////// 41 26 42 #include "MDumpEvtHeader.h" 27 43 … … 33 49 #include "MRawEvtPixelIter.h" 34 50 35 ClassImp(MDumpEvtHeader) 51 ClassImp(MDumpEvtHeader); 36 52 53 // -------------------------------------------------------------------------- 54 // 55 // Preprocessing of class. Check for the two container which should 56 // get printed by the Process-function: MRawEvtHeader and MRawEvtData. 57 // If one of the two doesn't exist (input containers) stop processing of 58 // data. 59 // 37 60 Bool_t MDumpEvtHeader::PreProcess (MParList *pList) 38 61 { … … 54 77 } 55 78 79 // -------------------------------------------------------------------------- 80 // 81 // Print out information of the actual event (header) and print the 82 // pixel ID's of all pixels in this event. 83 // 56 84 Bool_t MDumpEvtHeader::Process() 57 85 { 58 fRawEvtHeader->Print();86 fRawEvtHeader->Print(); 59 87 60 MRawEvtPixelIter pixel(fRawEvtData);88 MRawEvtPixelIter pixel(fRawEvtData); 61 89 62 while (pixel.Next())63 *fLog << " " << pixel.GetPixelId();90 while (pixel.Next()) 91 *fLog << " " << pixel.GetPixelId(); 64 92 65 *fLog << endl;66 67 return kTRUE;68 } 93 *fLog << endl; 94 95 return kTRUE; 96 } -
trunk/MagicSoft/Mars/mdatacheck/MGDisplayAdc.cc
r958 r959 66 66 fHistoList = new TGListBox (left, M_LIST_HISTO); 67 67 fHistoList->Associate(this); 68 fHistoList->Resize( 80, 405);68 fHistoList->Resize(100, 405); 69 69 70 70 fList->Add(fHistoList); … … 126 126 // --- 127 127 128 TGLayoutHints *laybut1 = new TGLayoutHints(kLHintsNormal, 10, 10, 0, 10); 129 TGLayoutHints *laybut2 = new TGLayoutHints(kLHintsNormal, 10, 10, 10, 5); 128 TGLayoutHints *laybut1 = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 0, 10); 129 TGLayoutHints *laybut2 = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 10, 5); 130 TGLayoutHints *layslid = new TGLayoutHints(kLHintsCenterX|kLHintsTop); 130 131 131 132 fList->Add(laybut1); 132 133 fList->Add(laybut2); 133 134 mid->AddFrame(prev, laybut1); 135 mid->AddFrame(fSlider); 136 mid->AddFrame(next, laybut2); 137 mid->AddFrame(group, laybut2); 134 fList->Add(layslid); 135 136 mid->AddFrame(prev, laybut1); 137 mid->AddFrame(fSlider, layslid); 138 mid->AddFrame(next, laybut2); 139 mid->AddFrame(group, laybut2); 138 140 139 141 // 140 142 // right part of top frame 141 143 // 142 TGVerticalFrame *right = new TGVerticalFrame(frame, 60, 60, kFitWidth);144 TGVerticalFrame *right = new TGVerticalFrame(frame, 100, 100, kFitWidth); 143 145 fList->Add(right); 144 146 145 TRootEmbeddedCanvas *canvas = new TRootEmbeddedCanvas("fECanv", right, 800, 400);147 TRootEmbeddedCanvas *canvas = new TRootEmbeddedCanvas("fECanv", right, 100, 100); 146 148 fList->Add(canvas); 147 149 … … 156 158 fList->Add(reset); 157 159 158 TGLayoutHints *layreset = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 0, 10);160 TGLayoutHints *layreset = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 0, 10); 159 161 fList->Add(layreset); 160 162 … … 211 213 UInt_t w, UInt_t h, 212 214 UInt_t options) 213 : TGTransientFrame(p, main, w, h, options), fHists(histos), fHistoType(M_RADIO_HI) 214 { 215 : TGTransientFrame(p?p:gClient->GetRoot(), main?main:gClient->GetRoot(), w, h, options), 216 fHistoType(M_RADIO_LH) 217 { 218 fHists = (MHFadcCam*)histos->Clone(); 219 215 220 fList = new TList; 216 221 fList->SetOwner(); … … 265 270 266 271 MapWindow(); 267 SetWMSizeHints( 550, 550, 1000, 1000, 1, 1);272 SetWMSizeHints(950, 500, 1000, 1000, 1, 1); 268 273 } 269 274 … … 271 276 { 272 277 delete fList; 278 delete fHists; 273 279 } 274 280 … … 277 283 void MGDisplayAdc::CloseWindow() 278 284 { 279 // Got close message for this MainFrame. Calls parent CloseWindow() 280 // (which destroys the window) and terminate the application. 285 // 281 286 // The close message is generated by the window manager when its close 282 287 // window menu item is selected. -
trunk/MagicSoft/Mars/mdatacheck/MGDisplayAdc.h
r958 r959 41 41 42 42 MGDisplayAdc(MHFadcCam *fHists , 43 const TGWindow *p , const TGWindow *main,44 UInt_t w , UInt_t h,45 UInt_t options = kMainFrame | kVerticalFrame);43 const TGWindow *p=NULL, const TGWindow *main=NULL, 44 UInt_t w=800, UInt_t h=500, 45 UInt_t options = kMainFrame|kVerticalFrame); 46 46 47 47 ~MGDisplayAdc(); -
trunk/MagicSoft/Mars/mdatacheck/Makefile
r710 r959 29 29 30 30 SRCFILES = MDumpEvtHeader.cc \ 31 MGDisplayAdc.cc \ 32 MShowSpect.cc \ 33 MViewAdcSpectra.cc 31 MGDisplayAdc.cc 34 32 35 33 SRCS = $(SRCFILES)
Note:
See TracChangeset
for help on using the changeset viewer.