Changeset 3248 for trunk/MagicSoft/Mars
- Timestamp:
- 02/21/04 01:14:08 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3246 r3248 4 4 5 5 -*-*- END OF LINE -*-*- 6 2004/01/19: Markus Gaug 6 7 8 2004/02/20: Markus Gaug 9 10 * mcalib/MCalibrationChargeCalc.[h,cc] 11 * mcalib/MCalibrationChargeCam.[h,cc] 12 * mcalib/MCalibrationChargePINDiode.[h,cc] 13 * mcalib/MCalibrationCalc.[h,cc] 14 * mcalib/MCalibrationCam.[h,cc] 15 * mcalib/MCalibrationPINDiode.[h,cc] 16 17 - added the "charge" versions, remove the old ones. The histograms 18 should be filled in the MH... versions independently of 19 MCalibrationChargeCalc. This is fully realized for the PIN Didoe 20 now and will later be so for the pixels and the blind pixel. 21 22 * mcalib/MHCalibrationChargePINDiode.[h,cc] 23 24 - receives a pointer to MCalibrationChargePINDiode which is filled 25 with the results and told to calculate the fluxes in the 26 Finalize function 27 28 29 2004/02/19: Markus Gaug 7 30 8 31 * mcalib/MCalibrationPix.[h,cc], mcalib/MCalibrationCam.cc, … … 21 44 22 45 23 2004/0 1/19: Abelardo Moralejo46 2004/02/19: Abelardo Moralejo 24 47 25 48 * mhist/MHEvent.[h,cc]: … … 47 70 48 71 49 2004/0 1/19: Thomas Bretz72 2004/02/19: Thomas Bretz 50 73 51 74 * manalysis/MCerPhotEvt.h: … … 69 92 70 93 71 2004/0 1/18: Markus Gaug94 2004/02/18: Markus Gaug 72 95 73 96 * macros/calibration.C … … 82 105 83 106 84 2004/0 1/18: Abelardo Moralejo107 2004/02/18: Abelardo Moralejo 85 108 86 109 * mtools/MCubicSpline.cc … … 107 130 108 131 109 2004/0 1/18: Thomas Bretz132 2004/02/18: Thomas Bretz 110 133 111 134 * manalysis/MPedestalCam.[h,cc]: … … 132 155 133 156 134 2004/0 1/17: Raquel de los Reyes157 2004/02/17: Raquel de los Reyes 135 158 136 159 * macros/CCDataCheck.C … … 139 162 140 163 141 2004/0 1/17: Abelardo Moralejo164 2004/02/17: Abelardo Moralejo 142 165 143 166 * macros/readrfl.C … … 152 175 153 176 154 2004/0 1/17: Raquel de los Reyes177 2004/02/17: Raquel de los Reyes 155 178 156 179 * mcamera/MCameraHV.h -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.cc
r3200 r3248 41 41 #include "MLogManip.h" 42 42 43 #include "MParList.h" 44 43 45 #include "MExtractedSignalPINDiode.h" 46 #include "MCalibrationChargePINDiode.h" 44 47 45 48 ClassImp(MHCalibrationChargePINDiode); … … 61 64 // 62 65 MHCalibrationChargePINDiode::MHCalibrationChargePINDiode(const char *name, const char *title) 63 : f HRmsCharge()66 : fPINDiode(NULL), fHRmsCharge() 64 67 { 65 68 … … 121 124 Bool_t MHCalibrationChargePINDiode::SetupFill(const MParList *pList) 122 125 { 123 124 126 Init(); 127 return kTRUE; 128 } 129 130 Bool_t MHCalibrationChargePINDiode::ReInit(MParList *pList) 131 { 132 133 fPINDiode = (MCalibrationChargePINDiode*)pList->FindCreateObj("MCalibrationChargePINDiode"); 134 if (!fPINDiode) 135 { 136 *fLog << err << GetDescriptor() << ": ERROR: Could not find MCalibrationChargePINDiode ... aborting " << endl; 137 return kFALSE; 138 } 139 125 140 return kTRUE; 126 141 } … … 176 191 CreateFourierSpectrum(); 177 192 193 fPINDiode->SetMeanCharge( GetMean() ); 194 fPINDiode->SetMeanChargeErr( GetMeanErr() ); 195 fPINDiode->SetSigmaCharge( GetSigma() ); 196 fPINDiode->SetSigmaChargeErr( GetSigmaErr() ); 197 198 fPINDiode->SetAbsTimeMean( GetAbsTimeMean() ); 199 fPINDiode->SetAbsTimeRms( GetAbsTimeRms() ); 200 201 fPINDiode->SetRmsChargeMean( GetRmsChargeMean() ); 202 fPINDiode->SetRmsChargeMeanErr( GetRmsChargeMeanErr() ); 203 fPINDiode->SetRmsChargeSigma( GetRmsChargeSigma() ); 204 fPINDiode->SetRmsChargeSigmaErr( GetRmsChargeSigmaErr() ); 205 206 fPINDiode->CalcFluxOutsidePlexiglass(); 178 207 179 208 return kTRUE; -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePINDiode.h
r3175 r3248 8 8 9 9 class TH1F; 10 class MCalibrationChargePINDiode; 10 11 class MHCalibrationChargePINDiode : public MHCalibrationChargePix 11 12 { 12 13 private: 13 14 14 TH1F fHRmsCharge; // Variance of summed FADC slices 15 MCalibrationChargePINDiode *fPINDiode; //! Storage container of the results 16 17 TH1F fHRmsCharge; // Variance of summed FADC slices 15 18 16 19 static const Int_t fgChargeNbins; … … 30 33 Axis_t fRmsChargeLast; 31 34 35 Float_t fRmsChargeMean; 36 Float_t fRmsChargeMeanErr; 37 Float_t fRmsChargeSigma; 38 Float_t fRmsChargeSigmaErr; 39 32 40 Float_t fExtractSlices; 33 41 … … 41 49 42 50 Bool_t SetupFill(const MParList *pList); 43 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 51 Bool_t ReInit ( MParList *pList); 52 Bool_t Fill (const MParContainer *par, const Stat_t w=1); 44 53 Bool_t Finalize(); 45 54 46 55 // Setters 47 void SetChargeNbins(const Int_t bins =fgChargeNbins) { fChargeNbins = bins;}48 void SetChargeFirst(const Axis_t first=fgChargeFirst) { fChargeFirst = first;}49 void SetChargeLast( const Axis_t last =fgChargeLast) { fChargeLast = last;}56 void SetChargeNbins(const Int_t bins =fgChargeNbins) { fChargeNbins = bins; } 57 void SetChargeFirst(const Axis_t first=fgChargeFirst) { fChargeFirst = first; } 58 void SetChargeLast( const Axis_t last =fgChargeLast) { fChargeLast = last; } 50 59 51 void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins;}52 void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first;}53 void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last;}60 void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; } 61 void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; } 62 void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; } 54 63 55 void SetRmsChargeNbins(const Int_t bins =fgRmsChargeNbins) { fRmsChargeNbins = bins; }64 void SetRmsChargeNbins(const Int_t bins =fgRmsChargeNbins) { fRmsChargeNbins = bins; } 56 65 void SetRmsChargeFirst(const Axis_t first=fgRmsChargeFirst) { fRmsChargeFirst = first; } 57 void SetRmsChargeLast( const Axis_t last =fgRmsChargeLast) { fRmsChargeLast = last; }66 void SetRmsChargeLast( const Axis_t last =fgRmsChargeLast) { fRmsChargeLast = last; } 58 67 59 68 // Getters 60 69 TH1F *GetHRmsCharge() { return &fHRmsCharge; } 61 70 const TH1F *GetHRmsCharge() const { return &fHRmsCharge; } 71 72 Float_t GetRmsChargeMean() const { return fRmsChargeMean; } 73 Float_t GetRmsChargeMeanErr() const { return fRmsChargeMeanErr; } 74 Float_t GetRmsChargeSigma() const { return fRmsChargeSigma; } 75 Float_t GetRmsChargeSigmaErr() const { return fRmsChargeSigmaErr; } 62 76 63 77 // Fill histos
Note:
See TracChangeset
for help on using the changeset viewer.