// -*- mode: c++ -*- // // $Id: BrTd1AdcGainCalModule.h,v 1.2 2002/03/20 19:32:17 videbaek Exp $ // $Author: videbaek $ // $Date: 2002/03/20 19:32:17 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrTd1AdcGainCalModule #define BRAT_BrTd1AdcGainCalModule #ifndef BRAT_BrTofCalModule #include "BrTofCalModule.h" #endif class BrEventNode; class TH1F; class BrTd1AdcGainCalModule : public BrTofCalModule { private: Float_t fMinGain; // reasonable min limit Float_t fMaxGain; // reasonable max limit Float_t fFitStart; // start fit at histo_max - fFitStart Float_t fFitStop; // stop fit at histo_max - fFitStop Bool_t fUseGap; // Float_t fAdcCut; // effective cut above pedestal for incrementing histogram requirement. // histograms TH1F** fTopAdc; TH1F** fBotAdc; TH1F* fTSum; TH1F* fBSum; virtual void SaveAscii(); virtual void ReadAscii(); void NormalizeHistos(); public: BrTd1AdcGainCalModule(); BrTd1AdcGainCalModule(const Char_t* name, const Char_t* title); virtual ~BrTd1AdcGainCalModule () {} void SetDefaultParameters(); void SetAdcCut(Float_t c = 300) { fAdcCut = c; } void SetFitStart(Float_t s = 300) { fFitStart = s; } void SetFitStop(Float_t s = 300) { fFitStop = s; } void SetMinGain(Float_t g = 600) { fMinGain = g; } void SetMaxGain(Float_t g = 6000) { fMaxGain = g; } void UseGap(Bool_t gap = kTRUE ) { fUseGap = gap;} virtual void DefineHistograms(); virtual void Init(); virtual void Begin(); virtual void Event(BrEventNode* inNode, BrEventNode* outNode); virtual void Finish(); virtual void Print(Option_t* option="B") const; // *MENU* ClassDef(BrTd1AdcGainCalModule,0) // Td1 ADC gain cal module }; #endif //____________________________________________________________________ // // $Log: BrTd1AdcGainCalModule.h,v $ // Revision 1.2 2002/03/20 19:32:17 videbaek // Introduced gap parameters taken from the calibration DB rather than coded in // line. // // Revision 1.1 2002/02/15 21:21:32 videbaek // Added new directory for td1 calibration. // Even though they are of TofDig type, this could not easily be incorporated into // the tof code. Thus a new set of similar code. //