Changeset 3346 for trunk/MagicSoft
- Timestamp:
- 02/28/04 01:01:32 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3345 r3346 4 4 5 5 -*-*- END OF LINE -*-*- 6 2004/02/27: Markus Gaug 7 8 * mcalib/MHCalibrationChargePix.[h,cc] 9 * mcalib/MHCalibrationHiGainChargePix.[h,cc] 10 * mcalib/MHCalibrationLoGainChargePix.[h,cc] 11 12 - histogram name setting and title setting moved to constructor, 13 Functions Init and ChangeHistId derive directly from 14 MHcalibrationChargePix 15 16 6 17 2004/02/27: Raducci Sebastian 7 18 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeHiGainPix.cc
r3264 r3346 72 72 SetAbsTimeFirst(); 73 73 SetAbsTimeLast(); 74 }75 76 77 void MHCalibrationChargeHiGainPix::Init()78 {79 74 80 75 fHGausHist.SetName("HCalibrationChargeHiGainPix"); 81 76 fHGausHist.SetTitle("Distribution of Summed Hi Gain FADC slices Pixel "); 82 fHGausHist.SetXTitle("Sum FADC Slices");83 fHGausHist.SetYTitle("Nr. of events");84 fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast);85 // fHGausHist.Sumw2();86 77 87 78 fHAbsTime.SetName("HAbsTimeHiGainPix"); 88 79 fHAbsTime.SetTitle("Distribution of Absolute Arrival Times Hi Gain Pixel "); 89 fHAbsTime.SetXTitle("Absolute Arrival Time [FADC slice nr]");90 fHAbsTime.SetYTitle("Nr. of events");91 fHAbsTime.SetBins(fAbsTimeNbins,fAbsTimeFirst,fAbsTimeLast);92 93 80 } 94 95 96 97 void MHCalibrationChargeHiGainPix::ChangeHistId(Int_t id)98 {99 100 fPixId = id;101 102 fHGausHist.SetName(Form("%s%d", fHGausHist.GetName(), id));103 fHGausHist.SetTitle(Form("%s%d", fHGausHist.GetTitle(), id));104 105 fHAbsTime.SetName(Form("%s%d", fHAbsTime.GetName(), id));106 fHAbsTime.SetTitle(Form("%s%d", fHAbsTime.GetTitle(), id));107 108 fName = Form("%s%d", fName.Data(), id);109 fTitle = Form("%s%d", fTitle.Data(), id);110 }111 112 81 113 82 void MHCalibrationChargeHiGainPix::Draw(const Option_t *opt) -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeLoGainPix.cc
r3264 r3346 71 71 SetAbsTimeFirst(); 72 72 SetAbsTimeLast(); 73 }74 75 76 void MHCalibrationChargeLoGainPix::Init()77 {78 73 79 74 fHGausHist.SetName("HCalibrationChargeLoGainPix"); 80 75 fHGausHist.SetTitle("Distribution of Summed Hi Gain FADC slices Pixel "); 81 fHGausHist.SetXTitle("Sum FADC Slices");82 fHGausHist.SetYTitle("Nr. of events");83 fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast);84 // fHGausHist.Sumw2();85 76 86 77 fHAbsTime.SetName("HAbsTimeLoGainPix"); 87 78 fHAbsTime.SetTitle("Distribution of Absolute Arrival Times Hi Gain Pixel "); 88 fHAbsTime.SetXTitle("Absolute Arrival Time [FADC slice nr]");89 fHAbsTime.SetYTitle("Nr. of events");90 fHAbsTime.SetBins(fAbsTimeNbins,fAbsTimeFirst,fAbsTimeLast);91 92 79 } 93 80 … … 95 82 96 83 97 void MHCalibrationChargeLoGainPix::ChangeHistId(Int_t id)98 {99 100 fPixId = id;101 102 fHGausHist.SetName(Form("%s%d", fHGausHist.GetName(), id));103 fHGausHist.SetTitle(Form("%s%d", fHGausHist.GetTitle(), id));104 105 fHAbsTime.SetName(Form("%s%d", fHAbsTime.GetName(), id));106 fHAbsTime.SetTitle(Form("%s%d", fHAbsTime.GetTitle(), id));107 108 fName = Form("%s%d", fName.Data(), id);109 fTitle = Form("%s%d", fTitle.Data(), id);110 }111 84 112 85 113 86 114 87 88 89 90 91 92 93 94 95 96 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeLoGainPix.h
r3264 r3346 24 24 ~MHCalibrationChargeLoGainPix(){} 25 25 26 void Init();27 28 26 // Setters 29 27 void SetChargeNbins(const Int_t bins =fgChargeNbins) { fChargeNbins = bins; } … … 34 32 void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; } 35 33 void SetAbsTimeLast (const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; } 36 37 void ChangeHistId(Int_t i);38 34 39 35 ClassDef(MHCalibrationChargeLoGainPix, 1) // Histogram class for a Calibration Pixel with extracted Low Gain -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc
r3290 r3346 80 80 SetPickupLimit(); 81 81 82 fHAbsTime.UseCurrentStyle();83 fHAbsTime.SetDirectory(NULL);84 85 Clear();86 87 SetPulserFrequency();88 }89 90 void MHCalibrationChargePix::Init()91 {92 93 82 fHGausHist.SetName("HCalibrationCharge"); 94 83 fHGausHist.SetTitle("Distribution of Summed FADC slices Pixel"); 95 84 fHGausHist.SetXTitle("Sum FADC Slices"); 96 85 fHGausHist.SetYTitle("Nr. of events"); 97 fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast);98 fHGausHist.Sumw2();99 86 100 87 fHAbsTime.SetName("HAbsTimePixel"); … … 102 89 fHAbsTime.SetXTitle("Absolute Arrival Time [FADC slice nr]"); 103 90 fHAbsTime.SetYTitle("Nr. of events"); 91 fHAbsTime.UseCurrentStyle(); 92 fHAbsTime.SetDirectory(NULL); 93 94 Clear(); 95 96 SetPulserFrequency(); 97 } 98 99 void MHCalibrationChargePix::Init() 100 { 101 102 fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast); 104 103 fHAbsTime.SetBins(fAbsTimeNbins,fAbsTimeFirst,fAbsTimeLast); 105 106 104 } 107 105 … … 134 132 fHAbsTime.SetName(Form("%s%d", fHAbsTime.GetName(), id)); 135 133 fHAbsTime.SetTitle(Form("%s%d", fHAbsTime.GetTitle(), id)); 134 135 fName = Form("%s%d", fName.Data(), id); 136 fTitle = Form("%s%d", fTitle.Data(), id); 136 137 } 137 138 … … 182 183 } 183 184 184 pad->SetTicks();185 pad->SetBorderMode(0);186 185 pad->Divide(1,win); 187 186 pad->cd(1); 188 187 189 188 if (!IsEmpty()) 190 pad->SetLogy();189 gPad->SetLogy(); 191 190 192 191 MHGausEvents::Draw(opt);
Note:
See TracChangeset
for help on using the changeset viewer.