(UNKNOWN PRODUCT) » ANALYZE » TMrbAnalyze

class TMrbAnalyze: public TObject

__________________________________________________[C++ CLASS IMPLEMENTATION]

 Name:           TMrbAnalyze.cxx
 Purpose:        Implement class methods for user's analysis
 Description:    This code defines class methods for data analysis
                 common to all user applications

 Header files:   TMrbAnalyze.h     -- class definitions
 Keywords:
 Author:         R. Lutter
 Mailto:         <a href=mailto:rudi.lutter@physik.uni-muenchen.de>R. Lutter</a>
 Revision:       $Id: TMrbAnalyze.cxx,v 1.103 2011/08/23 08:05:16 Marabou Exp $
 Date:

Function Members (Methods)

public:
TMrbAnalyze()
TMrbAnalyze(TMrbIOSpec* IOSpec)
TMrbAnalyze(const TMrbAnalyze&)
virtual~TMrbAnalyze()
voidTObject::AbstractMethod(const char* method) const
Bool_tAddCalibrationToList(TF1* CalibrationAddr, Int_t AbsParamIndex)
Bool_tAddCalibrationToList(TF1* CalibrationAddr, Int_t ModuleIndex, Int_t RelParamIndex)
TF1*AddCalibrationToList(const Char_t* Name, const Char_t* Formula, Double_t Xmin, Double_t Xmax, Int_t ModuleIndex, Int_t RelParamIndex)
Bool_tAddDCorrToList(TF1* DCorrAddr, Int_t AbsParamIndex)
Bool_tAddDCorrToList(TF1* DCorrAddr, Int_t ModuleIndex, Int_t RelParamIndex)
TF1*AddDCorrToList(const Char_t* Name, const Char_t* Formula, Double_t Xmin, Double_t Xmax, Int_t ModuleIndex, Int_t RelParamIndex)
Bool_tAddHistoToList(TH1* HistoAddr, Int_t ModuleIndex, Int_t RelParamIndex)
voidAddIOSpec(TMrbIOSpec* IOSpec)
Bool_tAddModuleToList(const Char_t* ModuleName, const Char_t* ModuleTitle, Int_t ModuleIndex, Int_t AbsParamIndex, Int_t NofParams, Int_t TimeOffset = 0)
Bool_tAddParamToList(const Char_t* ParamName, TObject* ParamAddr, Int_t ModuleIndex, Int_t RelParamIndex)
Bool_tAddResourcesFromFile(const Char_t* ResourceFile)
Bool_tAdjustFunctionPointers()
Bool_tAdjustWindowPointers()
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
Int_tClearHistograms(const Char_t* Pattern, TMrbIOSpec* IOSpec = NULL)
virtual TObject*TObject::Clone(const char* newname = "") const
Bool_tCloseRootTree(TMrbIOSpec* IOSpec = NULL)
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
Bool_tDumpData(const Char_t* Prefix, Int_t Index, const Char_t* CallingClass, const Char_t* CallingMethod, const Char_t* Msg, const UShort_t* DataPtr, Int_t DataWC)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
TMrbNamedX*FindHisto(const Char_t* HistoName, Bool_t SingleFlag = kFALSE) const
TMrbNamedX*FindModule(const Char_t* ModuleName) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TMrbNamedX*FindParam(const Char_t* ParamName) const
Bool_tFinishRun(TMrbIOSpec* IOSpec, Bool_t BeforeSH = kTRUE)
Int_tGetBranchSize() const
TF1*GetCalibration(const Char_t* CalibrationName) const
TF1*GetCalibration(Int_t AbsParamIndex) const
TF1*GetCalibration(Int_t ModuleIndex, Int_t RelParamIndex) const
TF1*GetCalibration(Int_t AbsParamIndex, TArrayD& Coeffs) const
TF1*GetCalibration(Int_t AbsParamIndex, Double_t& Gain, Double_t& Offset) const
TF1*GetCalibration(Int_t ModuleIndex, Int_t RelParamIndex, TArrayD& Coeffs) const
TF1*GetCalibration(Int_t ModuleIndex, Int_t RelParamIndex, Double_t& Gain, Double_t& Offset) const
TMrbCalibrationListEntry*GetCalibrationListEntry(Int_t AbsParamIndex) const
TMrbCalibrationListEntry*GetCalibrationListEntry(Int_t ModuleIndex, Int_t RelParamIndex) const
TMrbIOSpec*GetCurIOSpec()
TF1*GetDCorr(const Char_t* DCorrName) const
TF1*GetDCorr(Int_t AbsParamIndex) const
TF1*GetDCorr(Int_t ModuleIndex, Int_t RelParamIndex) const
TF1*GetDCorr(Int_t AbsParamIndex, Double_t& Factor) const
TF1*GetDCorr(Int_t ModuleIndex, Int_t RelParamIndex, Double_t& Factor) const
TF1*GetDCorr(Int_t AbsParamIndex, Double_t& Beta, Double_t& Angle) const
TF1*GetDCorr(Int_t ModuleIndex, Int_t RelParamIndex, Double_t& Beta, Double_t& Angle) const
TMrbDCorrListEntry*GetDCorrListEntry(Int_t AbsParamIndex) const
TMrbDCorrListEntry*GetDCorrListEntry(Int_t ModuleIndex, Int_t RelParamIndex) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetDumpCount() const
Int_tGetEventsProcessed() const
TH1*GetHistoAddr(const Char_t* HistoName) const
TH1*GetHistoAddr(Int_t AbsParamIndex) const
TH1*GetHistoAddr(Int_t ModuleIndex, Int_t RelParamIndex) const
TH1*GetHistoFromList(TObjArray& HistoList, Int_t AbsParamIndex) const
TH1*GetHistoFromList(TObjArray& HistoList, Int_t ModuleNumber, Int_t RelParamIndex) const
Int_tGetHistoIndex(Int_t ModuleIndex, Int_t RelParamIndex) const
TMrbHistoListEntry*GetHistoListEntry(const Char_t* HistoName) const
virtual const char*TObject::GetIconName() const
TMrbLofNamedX*GetListOfHistos()
TMrbLofNamedX*GetListOfModules()
TMrbLofNamedX*GetListOfParams()
TMrbLofNamedX*GetLofHistos()
TList*GetLofIOSpecs()
TMrbLogger*GetMessageLogger() const
Int_tGetModuleIndex(const Char_t* ModuleName) const
Int_tGetModuleIndexByParam(const Char_t* ParamName) const
TMrbModuleListEntry*GetModuleListEntry(Int_t ModuleIndex) const
TMrbModuleListEntry*GetModuleListEntry(const Char_t* ModuleName) const
const Char_t*GetModuleName(Int_t ModuleIndex) const
const Char_t*GetModuleTitle(Int_t ModuleIndex) const
virtual const char*TObject::GetName() const
TMrbIOSpec*GetNextIOSpec(TMrbIOSpec* IOSpec)
Int_tGetNofHistos() const
Int_tGetNofModules() const
Int_tGetNofParams() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TObject*GetParamAddr(const Char_t* ParamName) const
TObject*GetParamAddr(Int_t AbsParamIndex) const
TObject*GetParamAddr(Int_t ModuleIndex, Int_t RelParamIndex) const
Int_tGetParamIndex(const Char_t* ParamName, Bool_t AbsFlag = kTRUE) const
Int_tGetParamIndex(Int_t ModuleIndex, Int_t RelParamIndex) const
const Char_t*GetParamName(Int_t AbsParamIndex) const
const Char_t*GetParamName(Int_t ModuleIndex, Int_t RelParamIndex) const
const Char_t*GetResource(const Char_t* Resource)
Int_tGetRunId() const
TMrbAnalyze::EMrbRunStatusGetRunStatus() const
Int_tGetScaleDown() const
Int_tGetSplitLevel() const
Int_tGetTimeOffset(Int_t ModuleNumber) const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Bool_tHandleMessage(const Char_t* ArgList)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
voidHelp()
voidIncrEventCount()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
Bool_tInitialize(TMrbIOSpec* IOSpec)
voidInitializeLists(Int_t NofModules, Int_t NofParams)
Bool_tInitializeUserCode(TMrbIOSpec* IOSpec, Bool_t BeforeHB = kFALSE)
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
Bool_tIsFakeMode() const
virtual Bool_tTObject::IsFolder() const
Bool_tIsModScaleDown() const
Bool_tTObject::IsOnHeap() const
Bool_tIsReplayMode() const
virtual Bool_tTObject::IsSortable() const
Int_tIsToBeUpdated()
Bool_tIsVerbose() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidMarkHistogramsWithTime()
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
Int_tOpenFileList(TString&, TMrbIOSpec*)
Bool_tOpenRootFile(const Char_t* FileName)
Bool_tOpenRootFile(TMrbIOSpec* IOSpec)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
voidPrintCalibration() const
voidPrintCalibration(ostream& Out) const
voidPrintCalibration(Int_t AbsParamIndex) const
voidPrintCalibration(const Char_t* CalibrationName) const
voidPrintCalibration(ostream& Out, Int_t AbsParamIndex) const
voidPrintCalibration(ostream& Out, const Char_t* CalibrationName) const
voidPrintCalibration(ostream& Out, TMrbNamedX* CalX) const
voidPrintCalibration(Int_t ModuleIndex, Int_t RelParamIndex) const
voidPrintCalibration(ostream& Out, Int_t ModuleIndex, Int_t RelParamIndex) const
voidPrintLists(ostream& out = cout) const
voidPrintLists(const Char_t* FileName) const
voidPrintStartStop(TUsrEvtStart* Start = NULL, TUsrEvtStop* StopEvent = NULL) const
voidPrintStartStop(UInt_t StartTime, UInt_t StopTime) const
Int_tProcessFileList()
virtual Int_tTObject::Read(const char* name)
Int_tReadCalibrationFromFile(const Char_t* CalibrationFile)
Int_tReadDCorrFromFile(const Char_t* DCorrFile)
virtual voidTObject::RecursiveRemove(TObject* obj)
Bool_tReloadMultipleFiles(TString& ParamFileString)
Bool_tReloadParams(const Char_t* ParamFile)
Bool_tReloadParams(TMrbIOSpec* IOSpec)
Bool_tReloadVarsAndWdws(const Char_t* ParamFile)
Bool_tReloadVarsAndWdws(TMrbIOSpec* IOSpec)
Bool_tReplayEvents(TMrbIOSpec* IOSpec)
voidTObject::ResetBit(UInt_t f)
voidResetEventCount()
voidResetEventsPerTrigger()
voidResetModuleHits(Int_t StartIndex = 0, Int_t StopIndex = 0)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
Int_tSaveHistograms(const Char_t* Pattern, const Char_t* HistFile)
Int_tSaveHistograms(const Char_t* Pattern, TMrbIOSpec* IOSpec)
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetBranchSize(Int_t BranchSize = TMrbAnalyze::kBranchBufferSize)
voidSetCurIOSpec(TMrbIOSpec* IOSpec)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetDumpCount(Int_t Count)
voidSetFakeMode(Bool_t FakeMode = kTRUE)
voidSetFileSize(Int_t FileSize = 0)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetReplayMode(Bool_t Flag = kTRUE)
voidSetRunId(Int_t RunId)
voidSetRunStatus(TMrbAnalyze::EMrbRunStatus RunStatus)
voidSetScaleDown(Int_t ScaleDown = 1)
voidSetSplitLevel(Bool_t SplitLevel = TMrbAnalyze::kBranchSplitLevel)
Bool_tSetTimeOffset(Int_t ModuleNumber, Int_t Offset)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUpdateFlag()
voidSetVerboseMode(Bool_t VerboseFlag = kTRUE)
voidSetWriteTreeFlag(Bool_t Flag = kTRUE)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
Bool_tTestRunStatus()
Bool_tTreeToBeWritten() const
TH1F*UpdateDTimeHistory()
TH1F*UpdateRateHistory()
virtual voidTObject::UseCurrentStyle()
voidWaitForLock(const Char_t* LockFile, const Char_t* Msg = NULL)
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
Bool_tWriteRootTree(const Char_t* FileName)
Bool_tWriteRootTree(TMrbIOSpec* IOSpec)
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum { kMB
kTimeUnitsPerSec
kTimeNsecsPerUnit
kBranchSplitLevel
kBranchBufferSize
kUpdateTime
kMaxPolyDegree
};
enum EMrbRunStatus { M_ABSENT
M_STARTING
M_RUNNING
M_PAUSING
M_STOPPING
M_STOPPED
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Int_tfBranchSizebuffer size for branches
TMrbLofNamedXfCalibrationListlist of calibrations, indexed by param number
TMrbIOSpec*fCurIOSpeccurrent i/o spec
TMrbLofNamedXfDCorrListlist of doppler corrections, indexed by param number
Int_tfDumpCountnumber of data records to be dumped: 0 -> never, N -> N times, -1 -> always
Int_tfEventsProcPrevevent count of last update
Int_tfEventsProcessedevents processed so far
Bool_tfFakeModekTRUE if fake mode
Int_tfFileSizefile size in MB
Int_tfHistFileVersionversion number of (autosaved) hist file
TMrbLofNamedXfHistoListlist of histograms, indexed by param number
TListfLofIOSpecslist of i/o specs
TMrbLogger*fMessageLogger! addr of message logger
TMrbLofNamedXfModuleListlist of modules, indexed by serial number
Int_tfNofModulesnumber of modules
Int_tfNofParamsnumber of parameters
TMrbLofNamedXfParamListlist of params, indexed by param number
Bool_tfReplayModekTRUE if replay mode
TStringfResourceFileuser's resource defs
TStringfResourceName
TStringfResourceString
TFile*fRootFileInroot file to read tree data from (replay mode only)
TFile*fRootFileOutroot file to store data trees
Int_tfRunIdcurrent run id
TMrbAnalyze::EMrbRunStatusfRunStatuskTRUE: program is to be terminated (after ^C)
Int_tfScaleDownglobal scale-down factor
TMrbLofNamedXfSingleListlist of single histograms, indexed by param number
Int_tfSplitLevelsplit mode
Int_tfTimeOfLastUpdateupdate time is stored here
Int_tfUpdateFlag> 0: mmap objects are to be updated
Bool_tfVerboseModekTRUE if verbose mode
Bool_tfWriteRootTreekTRUE if root data are to be written

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TMrbAnalyze(TMrbIOSpec* IOSpec)
__________________________________________________________________[C++ CTOR]

 Name:           TMrbAnalyze::TMrbAnalyze
 Purpose:        Create an object to analyze user data
 Arguments:      TMrbIOSpec * IOSpec  -- i/o specifications
 Exceptions:
 Description:    Main class to initialize the user's analyzing procedures
 Keywords:

Bool_t OpenRootFile(const Char_t* FileName)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::OpenRootFile
 Purpose:        Open a file to replay tree data
 Arguments:      Char_t * RootFile   -- file name
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Opens a ROOT file for input.
                 Replay mode only.
 Keywords:

Int_t OpenFileList(TString& , TMrbIOSpec* )
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::OpenFileList
 Purpose:        Read i/o specs from a file
 Arguments:      TString & FileList          -- list of i/o specs
                 TMrbIOSpec * DefaultIOSpec  -- default values
 Results:        Int_t NofEntries            -- number of entries in file, 0 if error
 Exceptions:
 Description:    Reads a set of i/o specs.
                 Format is
                      inputFile  startEvent  stopEvent  paramFile  histoFile  outputFile

                 where       value            meaning

                 inputFile                    name of input file
                             xyz.root                file contains ROOT trees
                             xyz.lmd                 file contains MBS list mode data
                             xyz.med                 file contains MBS event data (as used by miniball)
                 startEvent                   event / time stamp to start with
                             N                       event number
                             hh.mm.ss[:xxx]          time stamp in standard format
                             :nnnnnn                 time stamp in seconds from start
                             0                       read data from begin of file
                 stopEvent                    event / time stamp to end with
                             N                       event number
                             hh.mm.ss[:xxx]          time stamp in standard format
                             :nnnnnn                 time stamp in seconds from start
                             0                       read data to end of file
                 paramFile                    name of file where to reload params from
                             xyz.root                file contains ROOT objects
                             xyz.par                 file contains ASCII text
                             -                   params remain unchanged
                             none                don't load any params
                 histoFile                    name of file to save histograms
                             xyz.root                clear histo space on start, save histos to file at end
                             +                       don't clear histo space, add data to current histos,
                             ++                      same as +, but save to file currently open
                 outputFile                   name of file to store tree data
                             none                don't write tree data
                             +                   append to current file
                             xyz.root            open file for output

 Keywords:

Int_t ProcessFileList()
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ProcessFileList
 Purpose:        Process i/o specs in file list
 Arguments:      --
 Results:        Int_t NofEntries           -- number of entries processed
 Exceptions:
 Description:    Processes any entries in fLofIOSpecs.
 Keywords:

Bool_t WriteRootTree(const Char_t* FileName)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::WriteRootTree
 Purpose:        Open a file to write root data
 Arguments:      Char_t * RootFile   -- file name
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Opens a ROOT file for output.
 Keywords:

Bool_t CloseRootTree(TMrbIOSpec* IOSpec = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::CloseRootTree
 Purpose:        Close root file output
 Arguments:      TMrbIOSpec * IOSpec    -- i/o spec
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Checks i/o spec for the "close bit" and closes output file.
                 Closes anyway of i/o spec is not given.
 Keywords:

Bool_t TestRunStatus()
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::TestRunStatus
 Purpose:        Test run status
 Arguments:
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Tests run status flag. Waits if it's PAUSING.
                 Returns kFALSE on STOP.
 Keywords:

TH1F * UpdateRateHistory()
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::UpdateRateHistory
 Purpose:        Update the histogram showing the rate history
 Arguments:
 Results:        TH1F * rh      -- pointer to rate histogram
 Exceptions:
 Description:    Updates the rate history by adding a bin to the histogram.
 Keywords:

TH1F * UpdateDTimeHistory()
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::UpdateDTimeHistory
 Purpose:        Update the histogram showing the rate history
 Arguments:
 Results:        TH1F * rh      -- pointer to rate histogram
 Exceptions:
 Description:    Updates the rate history by adding a bin to the histogram.
 Keywords:

void MarkHistogramsWithTime()
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::MarkHistogramsWithTime
 Purpose:        Write a time stamp to all histograms in memory
 Arguments:
 Results:
 Exceptions:
 Description:    Loops thru the directory and writes time stamps to histograms.
 Keywords:

Bool_t ReloadParams(const Char_t* ParamFile)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ReloadParams
 Purpose:        Reload parameters from file
 Arguments:      Char_t * ParamFile      -- file to be loaded
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Loops thru objects in file ParamFile, searches for
                 variables, windows, and cuts.
 Keywords:

Bool_t ReloadVarsAndWdws(const Char_t* ParamFile)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ReloadVarsAndWdws
 Purpose:        Reload parameters (var & wdw settings) from file
 Arguments:      Char_t * VarWdwFile      -- file to be loaded
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Loops thru objects in file ParamFile, searches for
                 variables, windows, and cuts.
 Keywords:

Bool_t ReloadVarsAndWdws(TMrbIOSpec* IOSpec)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ReloadVarsAndWdws
 Purpose:        Reload parameters (var & wdw settings) from file
 Arguments:      TMrbIOSpec * IOSpec    -- i/o specifications
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Loops thru objects in file ParamFile, searches for
                 variables, windows, and cuts.
 Keywords:

Bool_t ReloadMultipleFiles(TString& ParamFileString)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ReloadMultipleFiles
 Purpose:        Reload parameters (var & wdw settings) from several files
 Arguments:      TString & ParamFileString  -- string containing ;-separated file names
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Decodes the parfile string and calls 'reload params' for each file.
 Keywords:

Int_t SaveHistograms(const Char_t* Pattern, const Char_t* HistFile)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::SaveHistograms
 Purpose:        Save mmap data to file
 Arguments:      Char_t * Pattern    -- pattern (regexp) to select histos
                 Char_t * HistoFile  -- file name
 Results:        Int_t NofHistos    -- number of histos saved
 Exceptions:     NofHistos = -1 on error
 Description:    Writes mmap file contents to root file.
 Keywords:

Int_t SaveHistograms(const Char_t* Pattern, TMrbIOSpec* IOSpec)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::SaveHistograms
 Purpose:        Save mmap data to file
 Arguments:      Char_t * Pattern      -- pattern (regexp) to select histos
                 TMrbIOSpec * IOSpec   -- i/o specs
 Results:        Int_t NofHistos       -- number of histos saved
 Exceptions:     NofHistos = -1 on error
 Description:    Writes mmap file contents to root file.
 Keywords:

Int_t ClearHistograms(const Char_t* Pattern, TMrbIOSpec* IOSpec = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ClearHistograms
 Purpose:        Clear histograms in mmap file
 Arguments:      Char_t * Pattern      -- pattern (regexp) to select histograms
                 TMrbIOSpec * IOSpec   -- i/o specs
 Results:        Int_t NofHistos      -- number of histos cleared
 Exceptions:     NofHistos = -1 on error
 Description:    Clears shared memory.
 Keywords:

void PrintStartStop(TUsrEvtStart* Start = NULL, TUsrEvtStop* StopEvent = NULL) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintStartStop
 Purpose:        Output time stamps for start and stop
 Arguments:      TUsrEvtStart * StartEvent            -- start event (default gStartEvent)
                 TUsrEvtStop * StopEvent              -- stop event (default gStopEvent)
 Results:        --
 Exceptions:
 Description:    Outputs start/stop records read from root file
                 (replay mode only)
 Keywords:

void PrintStartStop(UInt_t StartTime, UInt_t StopTime) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintStartStop
 Purpose:        Output time stamps for start and stop
 Arguments:      UInt_t StartTime            -- start time
                 UInt_t StopTime             -- stop time
 Results:        --
 Exceptions:
 Description:    Outputs start/stop records read from root file
                 (replay mode only)
 Keywords:

void InitializeLists(Int_t NofModules, Int_t NofParams)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::InitializeLists
 Purpose:        Initialize lists and resize
 Arguments:      Int_t NofModules    -- number of modules
                 Int_t NofParams     -- number of params
 Results:        --
 Exceptions:
 Description:    Initializes (clears) lists and resizes them.
 Keywords:

const Char_t * GetModuleName(Int_t ModuleIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetModuleName
 Purpose:        Get module name by its index
 Arguments:      Int_t ModuleIndex   -- module index
 Results:        Char_t * ModuleName -- module name
 Exceptions:
 Description:    Searches for a module with specified index.
                 Returns its name.
 Keywords:

const Char_t * GetModuleTitle(Int_t ModuleIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetModuleTitle
 Purpose:        Get module title by its index
 Arguments:      Int_t ModuleIndex    -- module index
 Results:        Char_t * ModuleTitle -- module title
 Exceptions:
 Description:    Searches for a module with specified index.
                 Returns its title.
 Keywords:

Int_t GetModuleIndex(const Char_t* ModuleName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetModuleIndex
 Purpose:        Get module index by its name
 Arguments:      Char_t * ModuleName    -- module name
 Results:        Int_t ModuleIndex      -- module index
 Exceptions:
 Description:    Searches for a module with specified name.
                 Returns its index.
 Keywords:

Int_t GetModuleIndexByParam(const Char_t* ParamName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetModuleIndexByParam
 Purpose:        Get module index by param name
 Arguments:      Char_t * ParamName      -- param name
 Results:        Int_t ModuleIndex       -- module index
 Exceptions:
 Description:    Searches for a param with specified name
                 Returns module index.
 Keywords:

TMrbModuleListEntry * GetModuleListEntry(Int_t ModuleIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetModuleListEntry
 Purpose:        Get module list entry by module index
 Arguments:      Int_t ModuleIndex                 -- module index
 Results:        TMrbModuleListEntry * ListEntry   -- entry
 Exceptions:
 Description:    Searches for a module with specified index.
                 Returns entry in module list.
 Keywords:

TMrbModuleListEntry * GetModuleListEntry(const Char_t* ModuleName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetModuleListEntry
 Purpose:        Get module list entry by module name
 Arguments:      const Char_t * ModuleName         -- module name
 Results:        TMrbModuleListEntry * ListEntry   -- entry
 Exceptions:
 Description:    Searches for a module with specified name.
                 Returns entry in module list.
 Keywords:

void ResetModuleHits(Int_t StartIndex = 0, Int_t StopIndex = 0)
________________________________________________________________[C++ METHOD]

 Name:           ResetModuleHits
 Purpose:        Clear module hit counters
 Arguments:      Int_t StartIndex     -- start index
                 Int_t StopIndex      -- stop index
 Results:        --
 Exceptions:
 Description:    Reset hit counters for modules within given index limits in list.
 Keywords:

const Char_t * GetParamName(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetParamName
 Purpose:        Get param name by its relative index
 Arguments:      Int_t ModuleIndex      -- module index
                 Int_t RelParamIndex    -- relative param index
 Results:        Char_t * ParamName     -- param name
 Exceptions:
 Description:    Searches for a param with specified index.
                 Returns its name.
 Keywords:

const Char_t * GetParamName(Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetParamName
 Purpose:        Get param name by its absolute index
 Arguments:      Int_t AbsParamIndex    -- absolute param index
 Results:        Char_t * ParamName     -- param name
 Exceptions:
 Description:    Searches for a param with specified index.
                 Returns its name.
 Keywords:

Int_t GetParamIndex(const Char_t* ParamName, Bool_t AbsFlag = kTRUE) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetParamIndex
 Purpose:        Get param index
 Arguments:      Char_t * ParamName     -- param name
                 Bool_t AbsFlag         -- abs or rel?
 Results:        Int_t ParamIndex       -- param index
 Exceptions:
 Description:    Searches for a param with specified name
                 Returns its index.
 Keywords:

Int_t GetParamIndex(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetParamIndex
 Purpose:        Get param index
 Arguments:      Int_t ModuleIndex      -- module index
                 Int_t RelParamIndex    -- relative param index
 Results:        Int_t AbsParamIndex    -- absolute param index
 Exceptions:
 Description:    Calculates absolute param index.
 Keywords:

TMrbHistoListEntry * GetHistoListEntry(const Char_t* HistoName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetHistoListEntry
 Purpose:        Get entry in histogram table
 Arguments:      Char_t * HistoName               -- histo name
 Results:        TMrbHistoListEntry * HistoEntry  -- address
 Exceptions:
 Description:    Searches for a histo with specified name
                 Returns entry address.
 Keywords:

TH1 * GetHistoAddr(const Char_t* HistoName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetHistoAddr
 Purpose:        Get histo addr by name
 Arguments:      Char_t * HistoName     -- histo name
 Results:        TH1 * HistoAddr        -- address
 Exceptions:
 Description:    Searches for a histo with specified name
                 Returns histogram address.
 Keywords:

TH1 * GetHistoAddr(Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetHistoAddr
 Purpose:        Get histogram address
 Arguments:      Int_t AbsParamIndex    -- absolute param/histo index
 Results:        TH1 * HistoAddr      -- histo address
 Exceptions:
 Description:    Returns histo address.
 Keywords:

TH1 * GetHistoAddr(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetHistoAddr
 Purpose:        Get histogram by module number and param offset
 Arguments:      Int_t ModuleIndex      -- module index
                 Int_t RelParamIndex    -- relative param index
 Results:        TH1 * HistoAddr        -- histogram address
 Exceptions:
 Description:    Returns histogram addr given by module and param.
 Keywords:

TH1 * GetHistoFromList(TObjArray& HistoList, Int_t ModuleNumber, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetHistoFromList
 Purpose:        Get histogram from list
 Arguments:      TObjArray HistoList    -- array containing histograms
                 Int_t ModuleIndex      -- module index
                 Int_t RelParamIndex    -- relative param index
 Results:        TH1 * HistoAddr        -- histogram address
 Exceptions:
 Description:    Calculates absolute param index. Returns histo from list.
 Keywords:

TH1 * GetHistoFromList(TObjArray& HistoList, Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetHistoFromList
 Purpose:        Get histogram from list
 Arguments:      TObjArray HistoList    -- array containing histograms
                 Int_t AbsParamIndex    -- absolute param index
 Results:        TH1 * HistoAddr        -- histogram address
 Exceptions:
 Description:    Calculates absolute param index. Returns histo from list.
 Keywords:

TF1 * GetCalibration(const Char_t* CalibrationName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibration
 Purpose:        Get Calibration by its name
 Arguments:      Char_t * CalibrationName     -- calibration name
 Results:        TF1 * CalibAddr              -- address
 Exceptions:
 Description:    Searches for a calibrations function with specified name
                 Returns address.
 Keywords:

TF1 * GetCalibration(Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibration
 Purpose:        Get calibration address
 Arguments:      Int_t AbsParamIndex       -- absolute param/calib index
 Results:        TF1 * CalibrationAddr     -- address
 Exceptions:
 Description:    Returns calibration address.
 Keywords:

TF1 * GetCalibration(Int_t ModuleIndex, Int_t RelParamIndex, Double_t& Gain, Double_t& Offset) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibration
 Purpose:        Get gain and offset
 Arguments:      Int_t ModuleIndex         -- module index
                 Int_t RelParamIndex       -- relative param index
 Results:        TF1 * CalibrationAddr     -- address
                 Double_t & Gain           -- gain
                 Double_t & Offset         -- offset
 Exceptions:
 Description:    Returns gain and offset.
 Keywords:

TF1 * GetCalibration(Int_t AbsParamIndex, Double_t& Gain, Double_t& Offset) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibration
 Purpose:        Get gain and offset
 Arguments:      Int_t AbsParamIndex       -- absolute param/calib index
 Results:        TF1 * CalibrationAddr     -- address
                 Double_t Gain             -- gain
                 Double_t Offset           -- offset
 Exceptions:
 Description:    Returns gain and offset.
 Keywords:

TF1 * GetCalibration(Int_t ModuleIndex, Int_t RelParamIndex, TArrayD& Coeffs) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibration
 Purpose:        Get gain and offset
 Arguments:      Int_t ModuleIndex         -- module index
                 Int_t RelParamIndex       -- relative param index
 Results:        TF1 * CalibrationAddr     -- address
                 TArrayD & Coeffs          -- calibration coefficients
 Exceptions:
 Description:    Returns calibration coeffs.
 Keywords:

TF1 * GetCalibration(Int_t AbsParamIndex, TArrayD& Coeffs) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibration
 Purpose:        Get gain and offset
 Arguments:      Int_t AbsParamIndex       -- absolute param/calib index
 Results:        TF1 * CalibrationAddr     -- address
                 TArrayD & Coeffs          -- calibration coefficients
 Exceptions:
 Description:    Returns calibration coeffs.
 Keywords:

TF1 * GetCalibration(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibration
 Purpose:        Get calibration by module number and param offset
 Arguments:      Int_t ModuleIndex          -- module index
                 Int_t RelParamIndex        -- relative param index
 Results:        TF1 * CalibrationAddr      -- calibration address
 Exceptions:
 Description:    Returns calibration addr given by module and param.
 Keywords:

TMrbCalibrationListEntry * GetCalibrationListEntry(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibrationListEntry
 Purpose:        Get calibration entry from list
 Arguments:      Int_t ModuleIndex                     -- module index
                 Int_t RelParamIndex                   -- relative param index
 Results:        TMrbCalibrationListEntry * ListEntry  -- entry
 Exceptions:
 Description:    Returns calibration list entry.
 Keywords:

TMrbCalibrationListEntry * GetCalibrationListEntry(Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetCalibrationListEntry
 Purpose:        Get calibration entry from list
 Arguments:      Int_t AbsParamIndex                   -- absolute param/calib index
 Results:        TMrbCalibrationListEntry * ListEntry  -- entry
 Exceptions:
 Description:    Returns calibration list entry.
 Keywords:

Int_t ReadCalibrationFromFile(const Char_t* CalibrationFile)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ReadCalibrationFromFile
 Purpose:        Read calibration data from file
 Arguments:      Char_t * CalibrationFile   -- file name
 Results:        Int_t NofEntries           -- number of calibration entries
 Exceptions:
 Description:    Reads calibration data from file.
 Keywords:

void PrintCalibration(ostream& Out) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintCalibration
 Purpose:        Print calibration
 Arguments:      Out           -- output stream
 Results:        --
 Exceptions:
 Description:    Preints calibration data
 Keywords:

void PrintCalibration(ostream& Out, const Char_t* CalibrationName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintCalibration
 Purpose:        Print calibration by its name
 Arguments:      Out 		                    -- output
                 Char_t * CalibrationName     -- calibration name (=histo name)
 Results:        --
 Exceptions:
 Description:    Searches for a calibration function with specified name
                 Prints settings.
 Keywords:

void PrintCalibration(ostream& Out, Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintCalibration
 Purpose:        Print calibration by its name
 Arguments:      Out 		                 -- output
                 Int_t AbsParamIndex       -- absolute param/calib index
 Results:        --
 Exceptions:
 Description:    Prints calibration data.
 Keywords:

void PrintCalibration(ostream& Out, TMrbNamedX* CalX) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintCalibration
 Purpose:        Print calibration by its name
 Arguments:      Out 		                 -- output
                 TMrbNameX CalX            -- calibration entry
 Results:        --
 Exceptions:
 Description:    Prints calibration data.
 Keywords:

void PrintCalibration(ostream& Out, Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintCalibration
 Purpose:        Print calibration by its name
 Arguments:      Int_t ModuleIndex          -- module index
                 Int_t RelParamIndex        -- relative param index
 Results:        --
 Exceptions:
 Description:    Prints calibration data.
 Keywords:

TF1 * GetDCorr(const Char_t* DCorrName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetDCorr
 Purpose:        Get doppler correction by its name
 Arguments:      Char_t * DCorrName     -- dcorr name
 Results:        TF1 * DCorrAddr        -- address
 Exceptions:
 Description:    Searches for a dcorr function with specified name
                 Returns address.
 Keywords:

TF1 * GetDCorr(Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetDCorr
 Purpose:        Get doppler correction address
 Arguments:      Int_t AbsParamIndex       -- absolute param/calib index
 Results:        TF1 * DCorrAddr           -- address
 Exceptions:
 Description:    Returns dcorr address.
 Keywords:

TF1 * GetDCorr(Int_t ModuleIndex, Int_t RelParamIndex, Double_t& Factor) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetDCorr
 Purpose:        Get doppler corr factor
 Arguments:      Int_t ModuleIndex         -- module index
                 Int_t RelParamIndex       -- relative param index
 Results:        TF1 * DCorrAddr           -- address
                 Double_t & Factor         -- dcorr factor
 Exceptions:
 Description:    Returns dcorr factor. Valid only for dcorr type 'ConstFactor'.
 Keywords:

TF1 * GetDCorr(Int_t AbsParamIndex, Double_t& Factor) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetDCorr
 Purpose:        Get doppler corr factor
 Arguments:      Int_t AbsParamIndex       -- absolute param/calib index
 Results:        TF1 * DCorrAddr           -- address
                 Double_t & Factor         -- dcorr factor
 Exceptions:
 Description:    Returns dcorr factor. Valid only for dcorr type 'ConstFactor'.
 Keywords:

TF1 * GetDCorr(Int_t ModuleIndex, Int_t RelParamIndex, Double_t& Beta, Double_t& Angle) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetDCorr
 Purpose:        Get doppler corr factor
 Arguments:      Int_t ModuleIndex         -- module index
                 Int_t RelParamIndex       -- relative param index
 Results:        TF1 * DCorrAddr           -- address
                 Double_t & Beta           -- velocity
                 Double_t & Angle          -- angle
                 Bool_t InDegrees          -- angle to be returned in degrees
 Exceptions:
 Description:    Returns dcorr factor. Valid only for dcorr type 'FixedAngle'.
 Keywords:

TF1 * GetDCorr(Int_t AbsParamIndex, Double_t& Beta, Double_t& Angle) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetDCorr
 Purpose:        Get doppler corr factor
 Arguments:      Int_t AbsParamIndex       -- absolute param/calib index
 Results:        TF1 * DCorrAddr           -- address
                 Double_t & Beta           -- velocity
                 Double_t & Angle          -- angle
 Exceptions:
 Description:    Returns dcorr factor. Valid only for dcorr type 'FixedAngle'.
 Keywords:

TF1 * GetDCorr(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetDCorr
 Purpose:        Get calibration by module number and param offset
 Arguments:      Int_t ModuleIndex          -- module index
                 Int_t RelParamIndex        -- relative param index
 Results:        TF1 * DCorrAddr            -- calibration address
 Exceptions:
 Description:    Returns dcoor addr given by module and param.
 Keywords:

TMrbDCorrListEntry * GetDCorrListEntry(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetDCorrListEntry
 Purpose:        Get doppler corr entry from list
 Arguments:      Int_t ModuleIndex                     -- module index
                 Int_t RelParamIndex                   -- relative param index
 Results:        TMrbDCorrListEntry * ListEntry        -- entry
 Exceptions:
 Description:    Returns doppler corr list entry.
 Keywords:

TMrbDCorrListEntry * GetDCorrListEntry(Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::TMrbDCorrListEntry
 Purpose:        Get doppler corr entry from list
 Arguments:      Int_t AbsParamIndex                   -- absolute param/calib index
 Results:        TMrbDCorrListEntry * ListEntry        -- entry
 Exceptions:
 Description:    Returns calibration list entry.
 Keywords:

Int_t ReadDCorrFromFile(const Char_t* DCorrFile)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ReadDCorrFromFile
 Purpose:        Read doppler correction data from file
 Arguments:      Char_t * ReadDCorrFromFile    -- file name
 Results:        Int_t NofEntries              -- number of calibration entries
 Exceptions:
 Description:    Reads dcorr data from file.
 Keywords:

Bool_t AddDCorrToList(TF1* DCorrAddr, Int_t ModuleIndex, Int_t RelParamIndex)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddDCorrToList
 Purpose:        Add a new doppler correction function to list
 Arguments:      TF1 * DCorrAddr        -- address
                 Int_t ModuleIndex      -- list index
                 Int_t RelParamIndex    -- relative param index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in dcorr list.
 Keywords:

Bool_t AddDCorrToList(TF1* DCorrAddr, Int_t AbsParamIndex)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddDCorrToList
 Purpose:        Add a new dcorr function to list
 Arguments:      TF1 * DCorrAddr        -- address
                 Int_t AbsParamIndex    -- absolute param index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in dcorr list.
 Keywords:

TF1 * AddDCorrToList(const Char_t* Name, const Char_t* Formula, Double_t Xmin, Double_t Xmax, Int_t ModuleIndex, Int_t RelParamIndex)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddDCorrToList
 Purpose:        Add a new dcorr function to list
 Arguments:      Char_t * Name          -- name of calibration function
                 Char_t * Formula       -- formula (type B)
                 Double_t Xmin          -- minimum x
                 Double_t Xmax          -- maximum x
                 Int_t ModuleIndex      -- list index
                 Int_t RelParamIndex    -- relative param index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in dcorr list.
 Keywords:

TObject * GetParamAddr(const Char_t* ParamName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetParamAddr
 Purpose:        Get param addr by name
 Arguments:      Char_t * ParamName     -- param name
 Results:        TObject * ParamAddr    -- address
 Exceptions:
 Description:    Searches for a param with specified name
                 Returns param address.
 Keywords:

TObject * GetParamAddr(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetParamAddr
 Purpose:        Get param address
 Arguments:      Int_t ModuleIndex      -- module index
                 Int_t RelParamIndex    -- relative param index
 Results:        Int_t * ParamAddr      -- param address
 Exceptions:
 Description:    Returns param address.
 Keywords:

TObject * GetParamAddr(Int_t AbsParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetParamAddr
 Purpose:        Get param address
 Arguments:      Int_t AbsParamIndex    -- absolute param index
 Results:        TObject * ParamAddr    -- param address
 Exceptions:
 Description:    Returns param address.
 Keywords:

Bool_t AddModuleToList(const Char_t* ModuleName, const Char_t* ModuleTitle, Int_t ModuleIndex, Int_t AbsParamIndex, Int_t NofParams, Int_t TimeOffset = 0)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddModuleToList
 Purpose:        Add a new module to list
 Arguments:      Char_t * ModuleName    -- name
                 Char_t * ModuleTitle   -- title
                 Int_t ModuleIndex      -- list index
                 Int_t AbsParamIndex    -- absolute index of first param
                 Int_t NofParams        -- number of active params
                 Int_t TimeOffset       -- time offset
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in module list.
 Keywords:

Bool_t AddParamToList(const Char_t* ParamName, TObject* ParamAddr, Int_t ModuleIndex, Int_t RelParamIndex)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddParamToList
 Purpose:        Add a new param to list
 Arguments:      Char_t * ParamName     -- name
                 Int_t * ParamAddr      -- address
                 Int_t ModuleIndex      -- list index
                 Int_t RelParamIndex    -- relative param index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in param list.
 Keywords:

Bool_t AddHistoToList(TH1* HistoAddr, Int_t ModuleIndex, Int_t RelParamIndex)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddHistoToList
 Purpose:        Add a new histo to list
 Arguments:      TH1 * HistoAddr        -- address
                 Int_t ModuleIndex      -- list index
                 Int_t RelParamIndex    -- relative param index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in histo list.
 Keywords:

Int_t GetHistoIndex(Int_t ModuleIndex, Int_t RelParamIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetHistoIndex
 Purpose:        Return absolute histo index
 Arguments:      Int_t ModuleIndex      -- list index
                 Int_t RelParamIndex    -- relative param index
 Results:        Int_t HistoIndex       -- index
 Exceptions:
 Description:    Returns histo index
 Keywords:

Bool_t AddCalibrationToList(TF1* CalibrationAddr, Int_t ModuleIndex, Int_t RelParamIndex)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddCalibrationToList
 Purpose:        Add a new calibration function to list
 Arguments:      TF1 * CalibrationAddr  -- address
                 Int_t ModuleIndex      -- list index
                 Int_t RelParamIndex    -- relative param index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in calibration list.
 Keywords:

Bool_t AddCalibrationToList(TF1* CalibrationAddr, Int_t AbsParamIndex)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddCalibrationToList
 Purpose:        Add a new calibration function to list
 Arguments:      TF1 * CalibrationAddr  -- address
                 Int_t AbsParamIndex    -- absolute param index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in calibration list.
 Keywords:

TF1 * AddCalibrationToList(const Char_t* Name, const Char_t* Formula, Double_t Xmin, Double_t Xmax, Int_t ModuleIndex, Int_t RelParamIndex)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddCalibrationToList
 Purpose:        Add a new calibration function to list
 Arguments:      Char_t * Name          -- name of calibration function
                 Char_t * Formula       -- formula (type B)
                 Double_t Xmin          -- minimum x
                 Double_t Xmax          -- maximum x
                 Int_t ModuleIndex      -- list index
                 Int_t RelParamIndex    -- relative param index
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Creates a new entry in calibration list.
 Keywords:

void PrintLists(ostream& out = cout) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintLists
 Purpose:        Output list contents
 Arguments:      ostream & Out     -- output stream
 Results:        --
 Exceptions:
 Description:    Printout of module, param, histo lists, resp.
 Keywords:

void PrintLists(const Char_t* FileName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::PrintLists
 Purpose:        Output list contents
 Arguments:      Char_t * FileName    -- output file
 Results:        --
 Exceptions:
 Description:    Printout of module, param, histo lists, resp.
 Keywords:

Bool_t DumpData(const Char_t* Prefix, Int_t Index, const Char_t* CallingClass, const Char_t* CallingMethod, const Char_t* Msg, const UShort_t* DataPtr, Int_t DataWC)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::DumpData
 Purpose:        Dump data to file
 Arguments:      Char_t * Prefix        -- file name prefix
                 Int_t Index            -- file index
                 Char_t * CallingClass  -- called by this class
                 Char_t * CallingMethod -- from this method
                 Char_t * Msg           -- message
                 UShort_t * DataPtr     -- pointer to data array
                 Int_t DataWC           -- word count
 Results:        --
 Exceptions:
 Description:    Dumps data to file <Prefix>-<Index>.dmp
 Keywords:

Bool_t AddResourcesFromFile(const Char_t* ResourceFile)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::AddResourcesFromFile
 Purpose:        Add user's resource defs to gEnv
 Arguments:      Char_t * ResourceFile        -- resource file
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Opens resource file,
                       adds contents to gEnv,
                       extracts env variable "TMrbConfig.ResourceName"
 Keywords:

const Char_t * GetResource(const Char_t* Resource)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetResource
 Purpose:        Return completed resource string
 Arguments:      Char_t * Resource         -- resource string
 Results:        Char_t * Resource         -- (completed) string
 Exceptions:
 Description:    Prepends user's resource name if present.
 Keywords:

Bool_t SetTimeOffset(Int_t ModuleNumber, Int_t Offset)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::SetTimeOffset
 Purpose:        Insert time offset in table
 Arguments:      Int_t ModuleIndex       -- module number
                 Int_t Offset            -- time offset
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Defines a time offset. Time offsets are needed to
                 build events from hit buffer data.
 Keywords:

Int_t GetTimeOffset(Int_t ModuleNumber) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::GetTimeOffset
 Purpose:        Get time offset from table
 Arguments:      Int_t ModuleIndex       -- module number
 Results:        Int_t Offset            -- time offset
 Exceptions:
 Description:    Returns the time offset for given module.
 Keywords:

void WaitForLock(const Char_t* LockFile, const Char_t* Msg = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::WaitForLock
 Purpose:        Wait for lock file to disappear
 Arguments:      Char_t * Lockfile       -- lock file
                 Char_t * Msg            -- message
 Results:        --
 Exceptions:
 Description:    Loops on file 'Lockfile'. Tests every second if it has disappeared.
 Keywords:

void ResetEventsPerTrigger()
________________________________________________________________[C++ METHOD]

 Name:           TMrbAnalyze::ResetEventsPerTrigger
 Purpose:        Clear events per trigger
 Arguments:      --
 Results:        --
 Exceptions:
 Description:    Loops thu list of modules and clears event count
 Keywords:

TMrbAnalyze()
{}
TMrbAnalyze(TMrbIOSpec* IOSpec)
~TMrbAnalyze()
{ fLofIOSpecs.Delete(); }
void SetScaleDown(Int_t ScaleDown = 1)
Bool_t Initialize(TMrbIOSpec* IOSpec)
Bool_t InitializeUserCode(TMrbIOSpec* IOSpec, Bool_t BeforeHB = kFALSE)
Bool_t AdjustWindowPointers()
Bool_t AdjustFunctionPointers()
Bool_t HandleMessage(const Char_t* ArgList)
Bool_t OpenRootFile(const Char_t* FileName)
Bool_t ReplayEvents(TMrbIOSpec* IOSpec)
Bool_t WriteRootTree(const Char_t* FileName)
void SetFileSize(Int_t FileSize = 0)
Int_t GetScaleDown() const
{ return(fScaleDown); }
void SetRunId(Int_t RunId)
{ fRunId = RunId; }
Int_t GetRunId() const
{ return(fRunId); }
void SetBranchSize(Int_t BranchSize = TMrbAnalyze::kBranchBufferSize)
{ fBranchSize = BranchSize; }
void SetSplitLevel(Bool_t SplitLevel = TMrbAnalyze::kBranchSplitLevel)
{ fSplitLevel = SplitLevel; }
Int_t GetBranchSize() const
{ return(fBranchSize); }
Int_t GetSplitLevel() const
{ return(fSplitLevel); }
void SetRunStatus(TMrbAnalyze::EMrbRunStatus RunStatus)
{ fRunStatus = RunStatus; }
EMrbRunStatus GetRunStatus() const
{ return(fRunStatus); }
Int_t IsToBeUpdated()
void SetUpdateFlag()
{ fUpdateFlag++; }
Int_t GetEventsProcessed() const
{ return(fEventsProcessed); }
void SetReplayMode(Bool_t Flag = kTRUE)
{ fReplayMode = Flag; }
Bool_t IsReplayMode() const
{ return(fReplayMode); }
void IncrEventCount()
{ fEventsProcessed++; }
void ResetEventCount()
Bool_t IsModScaleDown() const
{ return((fEventsProcessed % fScaleDown) == 0); }
void SetWriteTreeFlag(Bool_t Flag = kTRUE)
{ fWriteRootTree = Flag; }
Bool_t TreeToBeWritten() const
{ return(fWriteRootTree); }
Bool_t ReloadParams(const Char_t* ParamFile)
Bool_t FinishRun(TMrbIOSpec* IOSpec, Bool_t BeforeSH = kTRUE)
void AddIOSpec(TMrbIOSpec* IOSpec)
{ fLofIOSpecs.Add(IOSpec); }
TMrbIOSpec * GetNextIOSpec(TMrbIOSpec* IOSpec)
void SetCurIOSpec(TMrbIOSpec* IOSpec)
{ fCurIOSpec = IOSpec; }
TMrbIOSpec * GetCurIOSpec()
{ return(fCurIOSpec); }
TList * GetLofIOSpecs()
{ return(&fLofIOSpecs); }
void PrintCalibration(ostream& Out) const
void PrintCalibration(ostream& Out, Int_t ModuleIndex, Int_t RelParamIndex) const
void PrintCalibration(ostream& Out, Int_t AbsParamIndex) const
void PrintCalibration(ostream& Out, const Char_t* CalibrationName) const
Int_t GetNofModules() const
{ return(fNofModules); }
Int_t GetNofParams() const
{ return(fNofParams); }
Int_t GetNofHistos() const
{ return(fHistoList.GetEntriesFast()); }
TMrbLofNamedX * GetLofHistos()
{ return(&fHistoList); }
void SetDumpCount(Int_t Count)
{ fDumpCount = Count; }
Int_t GetDumpCount() const
{ return(fDumpCount); }
void SetVerboseMode(Bool_t VerboseFlag = kTRUE)
{ fVerboseMode = VerboseFlag; }
Bool_t IsVerbose() const
{ return(fVerboseMode); }
void SetFakeMode(Bool_t FakeMode = kTRUE)
{ fFakeMode = FakeMode; }
Bool_t IsFakeMode() const
{ return(fFakeMode); }
TMrbNamedX * FindModule(const Char_t* ModuleName) const
{ return(fModuleList.FindByName(ModuleName)); }
TMrbNamedX * FindParam(const Char_t* ParamName) const
{ return(fParamList.FindByName(ParamName)); }
TMrbNamedX * FindHisto(const Char_t* HistoName, Bool_t SingleFlag = kFALSE) const
TMrbLofNamedX * GetListOfParams()
{ return(&fParamList); }
TMrbLofNamedX * GetListOfModules()
{ return(&fModuleList); }
TMrbLofNamedX * GetListOfHistos()
{ return(&fHistoList); }
TMrbLogger * GetMessageLogger() const
{ return(fMessageLogger); }
void Help()
{ gSystem->Exec(Form("mrbHelp %s", this->ClassName())); }



Revision: $Id: TMrbAnalyze.h,v 1.59 2011/03/11 10:14:50 Otto.Schaile Exp $

ROOT page - Home page - Class index - Top of the page

This page has been automatically generated by use of ROOT's THtml class. If you have any comments or suggestions about the page layout send a mail to Marabou Support.