Changeset 4941 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 09/10/04 21:09:46 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestCam.cc
r4939 r4941 175 175 for (Int_t i=0; i<npixels; i++) 176 176 { 177 (*fHiGainArray)[i] = new MHCalibrationPix(" Calibrated Events",177 (*fHiGainArray)[i] = new MHCalibrationPix("TestPix", 178 178 "Test Calibration Pixel"); 179 179 … … 186 186 TH1F *h = pix.GetHGausHist(); 187 187 188 h->SetName ("HTest HiGainPix");189 h->SetTitle(" Distribution of calibrated Photons Pixel ");188 h->SetName ("HTestPix"); 189 h->SetTitle("Calibrated Calibration Signals Pixel "); 190 190 h->SetXTitle("Nr. Photons"); 191 191 h->SetYTitle("Nr. of events"); … … 203 203 { 204 204 (*fAverageHiGainAreas)[j] = 205 new MHCalibrationPix(" MHCalibrationTestAverageArea",205 new MHCalibrationPix("TestArea", 206 206 "Average Test Calibrations Area Idx "); 207 207 208 208 MHCalibrationPix &pix = GetAverageHiGainArea(j); 209 210 pix.SetNbins(fTestNbins*3); 211 pix.SetFirst(fTestFirst); 212 pix.SetLast (fTestLast); 213 214 pix.InitBins(); 215 pix.SetEventFrequency(fPulserFrequency); 216 217 TH1F *h = pix.GetHGausHist(); 218 219 h->SetName ("HTestArea"); 220 h->SetTitle("Calibrated Calibration Signals Area Idx "); 221 h->SetXTitle("Nr. Photons"); 222 h->SetYTitle("Nr. of events"); 223 224 if (fGeom->InheritsFrom("MGeomCamMagic")) 225 h->SetTitle(Form("%s%s%s","Calibrated Calibration Signals averaged on event-by-event basis ", 226 j==0 ? "Inner Pixels " : "Outer Pixels Runs: ")); 227 else 228 { 229 pix.ChangeHistId(j); 230 h->SetTitle( Form("%s%s", h->GetTitle()," Runs: ")); 231 } 232 } 233 } 234 235 if (fAverageHiGainSectors->GetEntries()==0) 236 { 237 fAverageHiGainSectors->Expand(nsectors); 238 239 for (Int_t j=0; j<nsectors; j++) 240 { 241 (*fAverageHiGainSectors)[j] = 242 new MHCalibrationPix("TestSector", 243 "Average Test Calibrations Sector "); 244 245 MHCalibrationPix &pix = GetAverageHiGainSector(j); 209 246 210 247 pix.SetNbins(fTestNbins*3); … … 214 251 TH1F *h = pix.GetHGausHist(); 215 252 216 h->SetName ("HTestPix"); 217 h->SetTitle("Test Calibrations Area Idx "); 218 h->SetXTitle("Nr. Photons"); 219 h->SetYTitle("Nr. of events"); 220 221 pix.InitBins(); 222 pix.ChangeHistId(j); 223 pix.SetEventFrequency(fPulserFrequency); 224 225 h->SetTitle( Form("%s%s", h->GetTitle()," Runs: ")); 226 } 227 } 228 229 230 if (fAverageHiGainSectors->GetEntries()==0) 231 { 232 fAverageHiGainSectors->Expand(nsectors); 233 234 for (Int_t j=0; j<nsectors; j++) 235 { 236 (*fAverageHiGainSectors)[j] = 237 new MHCalibrationPix("MHCalibrationTestAverageSector", 238 "Average Test Calibrations Sector "); 239 240 MHCalibrationPix &pix = GetAverageHiGainSector(j); 241 242 pix.SetNbins(fTestNbins*3); 243 pix.SetFirst(fTestFirst); 244 pix.SetLast (fTestLast); 245 246 TH1F *h = pix.GetHGausHist(); 247 248 h->SetName ("HTestPix"); 249 h->SetTitle("Test Calibrations Sector "); 253 h->SetName ("HTestSector"); 254 h->SetTitle("Calibrated Calibration Signals Sector "); 250 255 h->SetXTitle("Nr. Photons"); 251 256 h->SetYTitle("Nr. of events"); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestTimeCam.cc
r4940 r4941 83 83 ///////////////////////////////////////////////////////////////////////////// 84 84 #include "MHCalibrationTestTimeCam.h" 85 #include "MHCalibrationTestTimePix.h"86 85 87 86 #include "MHCalibrationPix.h" … … 211 210 pix.SetLast (fTestLast); 212 211 212 pix.InitBins(); 213 pix.SetEventFrequency(fPulserFrequency); 214 213 215 TH1F *h = pix.GetHGausHist(); 214 216 … … 218 220 h->SetYTitle("Nr. of events"); 219 221 220 pix.InitBins(); 221 pix.ChangeHistId(j); 222 pix.SetEventFrequency(fPulserFrequency); 223 224 h->SetTitle( Form("%s%s", h->GetTitle()," Runs: ")); 222 if (fGeom->InheritsFrom("MGeomCamMagic")) 223 h->SetTitle(Form("%s%s%s","Calibrated Rel. Times averaged on event-by-event basis ", 224 j==0 ? "Inner Pixels " : "Outer Pixels Runs: ")); 225 else 226 { 227 pix.ChangeHistId(j); 228 h->SetTitle( Form("%s%s", h->GetTitle()," Runs: ")); 229 } 225 230 } 226 231 }
Note:
See TracChangeset
for help on using the changeset viewer.