// -*- mode: c++ -*- // // $Id: BrDbUpdateModule.h,v 1.4 2002/03/11 17:10:41 cholm Exp $ // $Author: cholm $ // $Date: 2002/03/11 17:10:41 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrDbUpdateModule #define BRAT_BrDbUpdateModule #ifndef BRAT_BrModule #include "BrModule.h" #endif #ifndef BRAT_BrEventNode #include "BrEventNode.h" #endif #ifndef BRAT_BrRunInfo #include "BrRunInfo.h" #endif class BrDbUpdateModule : public BrModule { private: Bool_t fHasBegun; // check if first begin or not public: BrDbUpdateModule(); BrDbUpdateModule(const Char_t* name, const Char_t* title); virtual ~BrDbUpdateModule () {} virtual void Init(); virtual void Begin(); virtual void Print(Option_t* option="B") const; // *MENU* ClassDef(BrDbUpdateModule,0) // Module updating database parameters }; #endif //____________________________________________________________________ // // $Log: BrDbUpdateModule.h,v $ // Revision 1.4 2002/03/11 17:10:41 cholm // Added update of TMA and SMA calibrations. NOTE: This is temporary, until // BrMultCalibration is in sync with BrMultTmpCalibration, and we can commit // the calibrations to the database. Also, the module _only_ updates in // Begin, and _not_ in Event as previously. This is because that mode is // redundant after the introduction of FileSets. Also, I took out the fNoDb // member as it really doesn't make sense. If one does not want to use the // database, simply do not add the module to the pipeline. That's it. Please // note, that the check of wether the event actually belongs to the current // run has been removed. This shouldn't cause any trouble if the module is // used correctly (like demonstrated in the class documentation and in The // Guide). // // Revision 1.3 2001/12/17 16:24:48 ejkim // choice of DB // // Revision 1.2 2001/08/10 13:49:16 ouerdane // Added 2 methods in BrRunInfoManager: // Int_t* GetRunNumbers -> returns the array of registered runs // Int_t GetNumberOfRuns -> returns the number of runs registered // // Added a check in BrDbUpdateModule::Event: // if the user has not registered initially the run number // returned by the event header, then the job will abort. // It forces the user to know exactly which runs he wants // to analyze at registration time (brRunInfoManager::Register(runNo)) // // Removed in the same class a reference to BrMainModule in Begin since // BrDbUpdateModule might be used in another context (if possible). // // Revision 1.1 2001/07/18 16:19:38 ouerdane // Added 2 classes in this directory (modules/util) // BrDbUpdateModule // BrDbCommitModule // // The 1st one updates the calibration parameter manager and the run info manager // The 2nd commit new calibration to the database, given a start run and an end // run (they can be the same). // // See email on the brahms-soft/dev-list for more details on how to use them. // // Updated Makefile.am, LinkDef.h, Include.h for the classes to compile //