// -*- mode: c++ -*- // // $Id: BrTofAdcGainCalModule.h,v 1.4 2001/10/07 13:19:39 ouerdane Exp $ // $Author: ouerdane $ // $Date: 2001/10/07 13:19:39 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrTofAdcGainCalModule #define BRAT_BrTofAdcGainCalModule #ifndef BRAT_BrTofCalModule #include "BrTofCalModule.h" #endif #ifndef BRAT_BrEventNode #include "BrEventNode.h" #endif #ifndef BRAT_BrDataTable #include "BrDataTable.h" #endif #ifndef ROOT_TH1 #include "TH1.h" #endif class BrTofAdcGainCalModule : 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 // histograms TH1F** fTopAdc; TH1F** fBotAdc; TH1F* fTSum; TH1F* fBSum; virtual void SaveAscii(); virtual void ReadAscii(); void NormalizeHistos(); public: BrTofAdcGainCalModule(); BrTofAdcGainCalModule(const Char_t* name, const Char_t* title); virtual ~BrTofAdcGainCalModule () {} void SetDefaultParameters(); void SetMinGain(Float_t g = 200) { fMinGain = g; } void SetMaxGain(Float_t g = 1800) { fMaxGain = g; } void SetFitStart(Float_t s = 300) { fFitStart = s; } void SetFitStop(Float_t s = 250) { fFitStop = s; } 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(BrTofAdcGainCalModule,0) // Tof ADC gain cal module }; #endif //____________________________________________________________________ // // $Log: BrTofAdcGainCalModule.h,v $ // Revision 1.4 2001/10/07 13:19:39 ouerdane // Changed fit parameters and function to gaus // // Revision 1.3 2001/10/02 01:53:28 ouerdane // Added SetSaveAscii, SetLoadAscii, SetCommitAscii and updated the way parameters are tagged for Use // // Revision 1.2 2001/07/31 09:22:27 ouerdane // Removed all references to a TList member, replaced // by histogram members, declare ntuple if fNtuple is true (set // via SetNtuple) // // Revision 1.1 2001/06/29 13:52:43 cholm // Imported TOF classes from Djamel // //