Changeset 2237 for trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc
- Timestamp:
- 06/26/03 17:00:06 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/meventdisp/MGCamDisplay.cc
r2230 r2237 39 39 #include "MHillasCalc.h" // MHillasCalc 40 40 #include "MHillasSrcCalc.h" // MHillasSrcCalc 41 #include "MPedestalPix.h" // MPedestalPix 41 42 #include "MPedestalCam.h" // MPedestalCam 42 #include "MCerPhotCalc.h" // MCerPhotCalc 43 #include "MCerPhotEvt.h" // MCerPhotEvt::GetPixById 44 #include "MCerPhotCalc.h" // MCerPhotCalc 43 45 #include "MMcPedestalCopy.h" // MMcPedestalCopy 44 46 #include "MMcPedestalNSBAdd.h" // MMcPedestalNSBAdd … … 166 168 167 169 fCanvas2[0] = fCanvas; 168 fCanvas2[1] = AddTab(" Errors");169 fCanvas2[2] = AddTab("Phot/ Err");170 fCanvas2[1] = AddTab("PedRMS"); 171 fCanvas2[2] = AddTab("Phot/PedRMS"); 170 172 fCanvas2[3] = AddTab("Levels"); 171 173 fCanvas2[4] = AddTab("Pedestals"); … … 184 186 } 185 187 186 fDisplay[0]->SetNameTitle("photons", "Number of Photons");187 fDisplay[1]->SetNameTitle(" errors", "Error of Photons");188 fDisplay[2]->SetNameTitle("phot err", "Number of Photons / Error");189 fDisplay[3]->SetNameTitle("levels", "Cleaning Levels");190 fDisplay[4]->SetNameTitle("pedestals", "Pedestals");188 fDisplay[0]->SetNameTitle("photons", "Number of Photons"); 189 fDisplay[1]->SetNameTitle("pedrms", "Pedestal RMS"); 190 fDisplay[2]->SetNameTitle("photpedrms", "Number of Photons / Pedestal RMS"); 191 fDisplay[3]->SetNameTitle("levels", "Cleaning Levels"); 192 fDisplay[4]->SetNameTitle("pedestals", "Pedestals"); 191 193 192 194 ReadFirstEvent(); … … 247 249 const MPedestalCam *ped = (MPedestalCam*)plist->FindObject("MPedestalCam"); 248 250 249 fDisplay[0]->SetCamContent((MCamEvent&)*evt, 0); 250 fDisplay[1]->SetCamContent((MCamEvent&)*evt, 1); 251 fDisplay[2]->SetCamContent((MCamEvent&)*evt, 2); 251 // FIXME: Make this publicly available 252 TArrayD val(577); 253 TArrayC use(577); 254 for (int i=0; i<577;i++) 255 { 256 // FIXME: photon event first! 257 MCerPhotPix *pix = evt->GetPixById(i); 258 if (!pix) 259 continue; 260 MPedestalPix &ppix = (*ped)[i]; 261 if (ppix.GetPedestalRms()<0) 262 continue; 263 val[i] = pix->GetNumPhotons()/ppix.GetPedestalRms(); 264 use[i] = 1; 265 } 266 267 fDisplay[0]->SetCamContent(*evt, 0); 268 fDisplay[1]->SetCamContent(*ped, 1); 269 fDisplay[2]->SetCamContent(val, &use); 252 270 fDisplay[3]->FillLevels(*evt, *clean); 253 fDisplay[4]->SetCamContent( (MCamEvent&)*ped);271 fDisplay[4]->SetCamContent(*ped, 0); 254 272 255 273 if (fDisplayHillas)
Note:
See TracChangeset
for help on using the changeset viewer.