// -*- mode: c++ -*- // // $Id: BrBbPedCalModule.h,v 1.4 2001/10/23 20:47:44 ouerdane Exp $ // $Author: ouerdane $ // $Date: 2001/10/23 20:47:44 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrBbPedCalModule #define BRAT_BrBbPedCalModule #ifndef BRAT_BrBbCalModule #include "BrBbCalModule.h" #endif #ifndef BRAT_BrEventNode #include "BrEventNode.h" #endif #ifndef ROOT_TProfile #include "TProfile.h" #endif #ifndef ROOT_TList #include "TList.h" #endif #ifndef BRAT_BrBbCalibration #include "BrBbCalibration.h" #endif #ifndef BRAT_BrDetectorParamsBB #include "BrDetectorParamsBB.h" #endif #ifndef ROOT_TString #include "TString.h" #endif class BrBbPedCalModule : public BrBbCalModule { private: virtual void SaveAscii(); virtual void ReadAscii(); public: BrBbPedCalModule(); BrBbPedCalModule(const Char_t* name, const Char_t* title); virtual ~BrBbPedCalModule(); virtual void DefineHistograms(); virtual void Init(); virtual void Begin(); virtual void Event(BrEventNode* inNode, BrEventNode* outNode); virtual void End(); virtual void Finish(); virtual void Print(Option_t* option="B") const; // *MENU* void SetMaxWidth(Float_t w = 10) { fMaxWidth = w; } private: TH1F** fPed; // pedestal histos TH1F* fPedSum; // pedestal summary TH1F* fPedWSum; // pedestal width summary // parameter limits Float_t fMaxWidth; Float_t fFitWindow; ClassDef(BrBbPedCalModule, 0) // Beam-Beam counters pedestal module }; #endif //____________________________________________________________________ // // $Log: BrBbPedCalModule.h,v $ // Revision 1.4 2001/10/23 20:47:44 ouerdane // Updated calibration modules for more efficiency, details are mainly technical // // Revision 1.3 2001/10/15 22:46:54 ouerdane // Fixed some small errors // // Revision 1.2 2001/10/15 00:35:08 ouerdane // Updated all Beam-Beam counter calibration modules (like I did for the TOF // some weeks ago): // // Common changes: // added methods Set[Save,Commit,Load]Ascii(Bool_t) // removed methods Set[ReadFrom,LoadFrom,SaveTo]File // // BrBbGainCalModule: // cleaned up a lot the code, added diagnostic histograms showing calibrated // ADC after the 1st MIP peak was found. // Still at a stage where the 1st MIP peak is the only one to be checked. // Later on, will add algorithm to find other peaks. // // Added BrBbSlewingCalModule in Makefile.am, etc // The fit function introduced is dT = a + b/sqrt(dE) + c/dE (where dE = ADC/Gain0) // // Revision 1.1 2001/07/23 11:40:07 ouerdane // Added calibration modules for Beam-Beam counters // BrBbCalModule: base class // BrBbPedCalModule: pedestals // BrBbTdcGaincalModule tdc gains // // Updated Makefile.am, LinkDef.h, Include.h // // Revision 1.1 2001/07/22 19:02:56 ouerdane // Calibration software for BB counters. // // dir: bbcal, apps, mm_scripts, example // * bbcal: BrBbCalibration, BrBbCalModule // BrBbPedCalModule, BrBbTdcGainCalModule // // * apps: BbDbBrowser // // * mm_scripts: BbPedstal.C, BbTdcGain.C // CommitPedCal.C, CommitTdcGain.C // * example: bblGain.tdc bbrGain.tdc // bblRun2535.ped bbrRun2535.ped // // the software makes the difference between BBR and BBL // a module treats BBR or BBL but not both at the same time // It's not completely an arbitrary choice. The database deals // with BBR and BBL, not BB. // // IMHO, it should part of brat. // //