Changeset 3248 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 02/21/04 01:14:08 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.