Changeset 4761 for trunk/MagicSoft/Mars/mtemp/mifae/library
- Timestamp:
- 08/27/04 15:18:46 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae/library
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/library/MDisplay.cc
r4528 r4761 51 51 #include "MGeomCam.h" 52 52 #include "MHCamera.h" 53 #include "MRawRunHeader.h" 54 #include "MRawEvtHeader.h" 53 55 54 56 #include "MLog.h" … … 107 109 fDisplay->Draw(); 108 110 111 //look for the run and event headers 112 fEvtHeader = (MRawEvtHeader*)pList->FindObject("MRawEvtHeader"); 113 if (!fEvtHeader) 114 { 115 *fLog << err << "MRawEvtHeader not found... aborting." << endl; 116 return kFALSE; 117 } 118 119 fRunHeader = (MRawRunHeader*)pList->FindObject(AddSerialNumber("MRawRunHeader")); 120 if (!fRunHeader) 121 { 122 *fLog << err << AddSerialNumber("MRawRunHeader") << " not found... aborting." << endl; 123 return kFALSE; 124 } 125 109 126 return kTRUE; 110 127 } … … 126 143 fCanvas->GetPad(1)->Modified(); 127 144 fCanvas->GetPad(1)->Update(); 145 146 *fLog << all << "Run: " << fRunHeader->GetRunNumber() << ", Event: " << fEvtHeader->GetDAQEvtNumber() << endl; 128 147 129 148 // pause execution 130 149 if(fPause) 131 150 { 132 cout << "Type 'q' to exit, <return> to go on: ";151 cout << "Type 'q' to exit, 'p' to print event into ps file, <return> to go on: "; 133 152 TString input; 134 153 input =cin.get(); … … 136 155 if (input=='q') 137 156 return kFALSE; 157 if(input=='p') 158 { 159 Char_t psfile[200]; 160 sprintf(psfile,"Run%06dEvent%07d.ps", fRunHeader->GetRunNumber(), fEvtHeader->GetDAQEvtNumber()); 161 fCanvas->Print(psfile); 162 } 138 163 } 139 164 -
trunk/MagicSoft/Mars/mtemp/mifae/library/MDisplay.h
r4139 r4761 6 6 #endif 7 7 8 class MRawRunHeader; 9 class MRawEvtHeader; 8 10 class MHCamera; 9 11 class MCamEvent; … … 15 17 { 16 18 private: 17 MHCamera* fDisplay; // pointer to the camera display 18 MGeomCam* fGeomCam; // pointer to the camera geometry 19 MCamEvent* fCamEvent; // pointer to camera event 20 TCanvas* fCanvas; // pointer to the canvas 21 TPostScript* fPSFile; // pointer to ps file 22 TString fPSFileName; // name for ps file 23 Int_t fDisplayType; // display type (see MHCamera) 24 Bool_t fCreatePSFile; // flag to produce a ps file with events 25 Bool_t fPause; // flag to pause execution between events 19 MRawEvtHeader* fEvtHeader; // event header 20 MRawRunHeader* fRunHeader; // run header 21 MHCamera* fDisplay; // pointer to the camera display 22 MGeomCam* fGeomCam; // pointer to the camera geometry 23 MCamEvent* fCamEvent; // pointer to camera event 24 TCanvas* fCanvas; // pointer to the canvas 25 TPostScript* fPSFile; // pointer to ps file 26 TString fPSFileName; // name for ps file 27 Int_t fDisplayType; // display type (see MHCamera) 28 Bool_t fCreatePSFile; // flag to produce a ps file with events 29 Bool_t fPause; // flag to pause execution between events 26 30 27 31
Note:
See TracChangeset
for help on using the changeset viewer.