Changeset 4940
- Timestamp:
- 09/10/04 21:01:08 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/HCalibLinkDef.h
r4939 r4940 15 15 #pragma link C++ class MHCalibrationTestCam+; 16 16 #pragma link C++ class MHCalibrationTestTimeCam+; 17 #pragma link C++ class MHCalibrationTestTimePix+;18 17 19 18 #pragma link C++ class MHGausEvents++; -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestTimeCam.cc
r4929 r4940 106 106 107 107 using namespace std; 108 109 const Int_t MHCalibrationTestTimeCam::fgTestNbins = 600; 110 const Axis_t MHCalibrationTestTimeCam::fgTestFirst = -0.5; 111 const Axis_t MHCalibrationTestTimeCam::fgTestLast = 29.5; 108 112 // -------------------------------------------------------------------------- 109 113 // 110 114 // Default Constructor. 115 // 116 // Sets: 117 // - fTestNbins to fgTestNbins 118 // - fTestFirst to fgTestFirst 119 // - fTestLast to fgTestLast 111 120 // 112 121 MHCalibrationTestTimeCam::MHCalibrationTestTimeCam(const char *name, const char *title) … … 116 125 fTitle = title ? title : "Histogram class for testing the calibration of arrival times"; 117 126 118 SetAverageNbins(5000); 127 SetTestNbins(); 128 SetTestFirst(); 129 SetTestLast (); 130 119 131 } 120 132 … … 164 176 for (Int_t i=0; i<npixels; i++) 165 177 { 166 (*fHiGainArray)[i] = new MHCalibration TestTimePix("Calibrated Events Time",178 (*fHiGainArray)[i] = new MHCalibrationPix("TestTimePix", 167 179 "TestTime Calibration Pixel"); 180 MHCalibrationPix &pix = (*this)[i]; 181 182 pix.SetNbins(fTestNbins); 183 pix.SetFirst(fTestFirst); 184 pix.SetLast (fTestLast); 185 186 TH1F *h = pix.GetHGausHist(); 187 188 h->SetName ("HTestHiGainPix"); 189 h->SetTitle("Calibrated Rel. Arrival Times Pixel "); 190 h->SetXTitle("Arrival Time [FADC slices]"); 191 h->SetYTitle("Nr. of events"); 192 168 193 InitHists((*this)[i],(*fBadPixels)[i],i); 169 194 } … … 177 202 { 178 203 (*fAverageHiGainAreas)[j] = 179 new MHCalibration TestTimePix("MHCalibrationTestTimeAverageArea",204 new MHCalibrationPix("TestTimeArea", 180 205 "Average TestTime Calibrations Area Idx "); 181 206 182 GetAverageHiGainArea(j).GetHGausHist()->SetTitle("TestTime Calibrations Area Idx "); 183 GetAverageHiGainArea(j).SetNbins(fAverageNbins); 184 GetAverageHiGainArea(j).InitBins(); 185 GetAverageHiGainArea(j).ChangeHistId(j); 186 GetAverageHiGainArea(j).SetEventFrequency(fPulserFrequency); 187 188 TH1F *h = GetAverageHiGainArea(j).GetHGausHist(); 207 MHCalibrationPix &pix = GetAverageHiGainArea(j); 208 209 pix.SetNbins(fTestNbins*3); 210 pix.SetFirst(fTestFirst); 211 pix.SetLast (fTestLast); 212 213 TH1F *h = pix.GetHGausHist(); 214 215 h->SetName ("HTestTimeArea"); 216 h->SetTitle("Calibrated Rel. Arrival Times Area Idx "); 217 h->SetXTitle("Arrival Time [FADC slices]"); 218 h->SetYTitle("Nr. of events"); 219 220 pix.InitBins(); 221 pix.ChangeHistId(j); 222 pix.SetEventFrequency(fPulserFrequency); 223 189 224 h->SetTitle( Form("%s%s", h->GetTitle()," Runs: ")); 190 191 192 225 } 193 226 } … … 201 234 { 202 235 (*fAverageHiGainSectors)[j] = 203 new MHCalibration TestTimePix("MHCalibrationTestTimeAverageSector",236 new MHCalibrationPix("TestTimeSector", 204 237 "Average TestTime Calibrations Sector "); 205 238 206 GetAverageHiGainSector(j).GetHGausHist()->SetTitle("TestTime Calibrations Sector "); 207 GetAverageHiGainSector(j).SetNbins(fAverageNbins); 208 GetAverageHiGainSector(j).InitBins(); 209 GetAverageHiGainSector(j).ChangeHistId(j); 210 GetAverageHiGainSector(j).SetEventFrequency(fPulserFrequency); 211 TH1F *h = GetAverageHiGainSector(j).GetHGausHist(); 212 h->SetTitle( Form("%s%s", h->GetTitle()," Runs: ")); 213 214 239 MHCalibrationPix &pix = GetAverageHiGainSector(j); 240 241 pix.SetNbins(fTestNbins*3); 242 pix.SetFirst(fTestFirst); 243 pix.SetLast (fTestLast); 244 245 TH1F *h = pix.GetHGausHist(); 246 247 h->SetName ("HTestTimeSector"); 248 h->SetTitle("Calibrated Rel. Arr. Times Sector "); 249 h->SetXTitle("Arrival Time [FADC slices]"); 250 h->SetYTitle("Nr. of events"); 251 252 pix.InitBins(); 253 pix.ChangeHistId(j); 254 pix.SetEventFrequency(fPulserFrequency); 255 256 h->SetTitle( Form("%s%s", h->GetTitle()," Runs: ")); 215 257 } 216 258 } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestTimeCam.h
r4929 r4940 11 11 private: 12 12 13 static const Int_t fgTestNbins; // Default for fTestNBins (now set to: 600 ) 14 static const Axis_t fgTestFirst; // Default for fTestFirst (now set to: -0.5 ) 15 static const Axis_t fgTestLast; // Default for fTestLast (now set to: 29.5) 16 17 Int_t fTestNbins; // Number of bins 18 Axis_t fTestFirst; // Lower histogram limit 19 Axis_t fTestLast; // Upper histogram limit 20 13 21 Bool_t ReInitHists(MParList *pList); 14 22 Bool_t FillHists(const MParContainer *par, const Stat_t w=1); … … 26 34 void CalcAverageSigma(); 27 35 36 void SetTestNbins ( const Int_t i=fgTestNbins ) { fTestNbins = i; } 37 void SetTestFirst ( const Axis_t f=fgTestFirst ) { fTestFirst = f; } 38 void SetTestLast ( const Axis_t f=fgTestLast ) { fTestLast = f; } 39 28 40 ClassDef(MHCalibrationTestTimeCam, 0) // Histogram class for Relative Time Camera Calibration 29 41 }; -
trunk/MagicSoft/Mars/mhcalib/Makefile
r4939 r4940 42 42 MHCalibrationTestCam.cc \ 43 43 MHCalibrationTestTimeCam.cc \ 44 MHCalibrationTestTimePix.cc \45 44 MHGausEvents.cc 46 45
Note:
See TracChangeset
for help on using the changeset viewer.