BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrDbUpdateModule


class description - source file - inheritance tree

class BrDbUpdateModule : public BrModule


    public:
BrDbUpdateModule BrDbUpdateModule() BrDbUpdateModule BrDbUpdateModule(const Char_t* name, const Char_t* title) BrDbUpdateModule BrDbUpdateModule(BrDbUpdateModule&) virtual void ~BrDbUpdateModule() virtual void Begin() static TClass* Class() virtual void Init() virtual TClass* IsA() const virtual void Print(Option_t* option = "B") const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Bool_t fHasBegun check if first begin or not

Class Description

 BrDbUpdateModule: a module to update the runinfo and
 calibration parameters information

 This module _must_ be placed _before_ all other analysis modules in
 the module pipeline.

 Note that this module assumes that you use file sets when looping
 over sequences of a run or multiple runs.

 Therefor, your configuration script should look like

   // Register all needed runs.  Needed runs are passed on the
   // commandline as
   
   //   bratmain <script> -r <run1> -r <run2> ...
   
   // The runs are processed in the order given
   Int_t nRuns = runOption->GetNValues();
   Int_t i     = 0;
   for (i = 0; i < nRuns; i++)
     BrRunInfoManager::Instance()->Register(runOption->GetValue(i));

   // Make the input module, and set the modus operandi according to
   // the number of runs we're processing.
   BrIOModule* inputModule =
     new BrEventIO("inputModule", "Reader of data files");
   mainModule->AddModule(inputModule);
   inputModule->SetIOMode((nRuns > 1 ?
                           BrIOModule::kRunFile :
                           BrIOModule::kJobFile) |BrIOReadFile);

   // Add a file set for each run we're processing
   for (i = 0; i < ; i++)
     inputModule->AddFileSet(includeOption->GetValue(),
                             Form("run%06dseq....root",
                                  runOption->GetValue(i)));

   // Add the Database update module
   BrDbUpdateModule* dbUpdateModule =
     new BrDbUpdateModule("dbUpdateModule", "Update from DB");
   mainModule->AddModule(dbUpdateModule);


BrDbUpdateModule()
 Default constructor.

BrDbUpdateModule(const Char_t* name, const Char_t* title) : BrModule(name, title)
 Named Constructor

void Init()
 Instantiate, initialize and update only once the run info manager

void Begin()
 update the calibration manager for the 1st begin

void Print(Option_t* option) const
 Print module information
 See BrModule::Print for options.
 In addition this module defines the Option:
 <fill in here>



Inline Functions


                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
        BrDbUpdateModule BrDbUpdateModule(BrDbUpdateModule&)
                    void ~BrDbUpdateModule()

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on 2002/03/21 15:06:17 $ by ouerdane $

Validate HTML
Validate CSS