__________________________________________________[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:
| TMrbAnalyze() | |
| TMrbAnalyze(TMrbIOSpec* IOSpec) | |
| TMrbAnalyze(const TMrbAnalyze&) | |
| virtual | ~TMrbAnalyze() |
| void | TObject::AbstractMethod(const char* method) const |
| Bool_t | AddCalibrationToList(TF1* CalibrationAddr, Int_t AbsParamIndex) |
| Bool_t | AddCalibrationToList(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_t | AddDCorrToList(TF1* DCorrAddr, Int_t AbsParamIndex) |
| Bool_t | AddDCorrToList(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_t | AddHistoToList(TH1* HistoAddr, Int_t ModuleIndex, Int_t RelParamIndex) |
| void | AddIOSpec(TMrbIOSpec* IOSpec) |
| Bool_t | AddModuleToList(const Char_t* ModuleName, const Char_t* ModuleTitle, Int_t ModuleIndex, Int_t AbsParamIndex, Int_t NofParams, Int_t TimeOffset = 0) |
| Bool_t | AddParamToList(const Char_t* ParamName, TObject* ParamAddr, Int_t ModuleIndex, Int_t RelParamIndex) |
| Bool_t | AddResourcesFromFile(const Char_t* ResourceFile) |
| Bool_t | AdjustFunctionPointers() |
| Bool_t | AdjustWindowPointers() |
| virtual void | TObject::AppendPad(Option_t* option = "") |
| virtual void | TObject::Browse(TBrowser* b) |
| static TClass* | Class() |
| virtual const char* | TObject::ClassName() const |
| virtual void | TObject::Clear(Option_t* = "") |
| Int_t | ClearHistograms(const Char_t* Pattern, TMrbIOSpec* IOSpec = NULL) |
| virtual TObject* | TObject::Clone(const char* newname = "") const |
| Bool_t | CloseRootTree(TMrbIOSpec* IOSpec = NULL) |
| virtual Int_t | TObject::Compare(const TObject* obj) const |
| virtual void | TObject::Copy(TObject& object) const |
| virtual void | TObject::Delete(Option_t* option = "")MENU |
| virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
| virtual void | TObject::Draw(Option_t* option = "") |
| virtual void | TObject::DrawClass() constMENU |
| virtual TObject* | TObject::DrawClone(Option_t* option = "") constMENU |
| virtual void | TObject::Dump() constMENU |
| 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) |
| virtual void | TObject::Error(const char* method, const char* msgfmt) const |
| virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
| virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
| virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
| virtual void | TObject::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_t | FinishRun(TMrbIOSpec* IOSpec, Bool_t BeforeSH = kTRUE) |
| Int_t | GetBranchSize() 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_t | TObject::GetDtorOnly() |
| Int_t | GetDumpCount() const |
| Int_t | GetEventsProcessed() 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_t | GetHistoIndex(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_t | GetModuleIndex(const Char_t* ModuleName) const |
| Int_t | GetModuleIndexByParam(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_t | GetNofHistos() const |
| Int_t | GetNofModules() const |
| Int_t | GetNofParams() const |
| virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
| static Bool_t | TObject::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_t | GetParamIndex(const Char_t* ParamName, Bool_t AbsFlag = kTRUE) const |
| Int_t | GetParamIndex(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_t | GetRunId() const |
| TMrbAnalyze::EMrbRunStatus | GetRunStatus() const |
| Int_t | GetScaleDown() const |
| Int_t | GetSplitLevel() const |
| Int_t | GetTimeOffset(Int_t ModuleNumber) const |
| virtual const char* | TObject::GetTitle() const |
| virtual UInt_t | TObject::GetUniqueID() const |
| Bool_t | HandleMessage(const Char_t* ArgList) |
| virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
| virtual ULong_t | TObject::Hash() const |
| void | Help() |
| void | IncrEventCount() |
| virtual void | TObject::Info(const char* method, const char* msgfmt) const |
| virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
| virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
| Bool_t | Initialize(TMrbIOSpec* IOSpec) |
| void | InitializeLists(Int_t NofModules, Int_t NofParams) |
| Bool_t | InitializeUserCode(TMrbIOSpec* IOSpec, Bool_t BeforeHB = kFALSE) |
| virtual void | TObject::Inspect() constMENU |
| void | TObject::InvertBit(UInt_t f) |
| virtual TClass* | IsA() const |
| virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
| Bool_t | IsFakeMode() const |
| virtual Bool_t | TObject::IsFolder() const |
| Bool_t | IsModScaleDown() const |
| Bool_t | TObject::IsOnHeap() const |
| Bool_t | IsReplayMode() const |
| virtual Bool_t | TObject::IsSortable() const |
| Int_t | IsToBeUpdated() |
| Bool_t | IsVerbose() const |
| Bool_t | TObject::IsZombie() const |
| virtual void | TObject::ls(Option_t* option = "") const |
| void | MarkHistogramsWithTime() |
| void | TObject::MayNotUse(const char* method) const |
| virtual Bool_t | TObject::Notify() |
| void | TObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const |
| Int_t | OpenFileList(TString&, TMrbIOSpec*) |
| Bool_t | OpenRootFile(const Char_t* FileName) |
| Bool_t | OpenRootFile(TMrbIOSpec* IOSpec) |
| static void | TObject::operator delete(void* ptr) |
| static void | TObject::operator delete(void* ptr, void* vp) |
| static void | TObject::operator delete[](void* ptr) |
| static void | TObject::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 void | TObject::Paint(Option_t* option = "") |
| virtual void | TObject::Pop() |
| virtual void | TObject::Print(Option_t* option = "") const |
| void | PrintCalibration() const |
| void | PrintCalibration(ostream& Out) const |
| void | PrintCalibration(Int_t AbsParamIndex) const |
| void | PrintCalibration(const Char_t* CalibrationName) const |
| void | PrintCalibration(ostream& Out, Int_t AbsParamIndex) const |
| void | PrintCalibration(ostream& Out, const Char_t* CalibrationName) const |
| void | PrintCalibration(ostream& Out, TMrbNamedX* CalX) const |
| void | PrintCalibration(Int_t ModuleIndex, Int_t RelParamIndex) const |
| void | PrintCalibration(ostream& Out, Int_t ModuleIndex, Int_t RelParamIndex) const |
| void | PrintLists(ostream& out = cout) const |
| void | PrintLists(const Char_t* FileName) const |
| void | PrintStartStop(TUsrEvtStart* Start = NULL, TUsrEvtStop* StopEvent = NULL) const |
| void | PrintStartStop(UInt_t StartTime, UInt_t StopTime) const |
| Int_t | ProcessFileList() |
| virtual Int_t | TObject::Read(const char* name) |
| Int_t | ReadCalibrationFromFile(const Char_t* CalibrationFile) |
| Int_t | ReadDCorrFromFile(const Char_t* DCorrFile) |
| virtual void | TObject::RecursiveRemove(TObject* obj) |
| Bool_t | ReloadMultipleFiles(TString& ParamFileString) |
| Bool_t | ReloadParams(const Char_t* ParamFile) |
| Bool_t | ReloadParams(TMrbIOSpec* IOSpec) |
| Bool_t | ReloadVarsAndWdws(const Char_t* ParamFile) |
| Bool_t | ReloadVarsAndWdws(TMrbIOSpec* IOSpec) |
| Bool_t | ReplayEvents(TMrbIOSpec* IOSpec) |
| void | TObject::ResetBit(UInt_t f) |
| void | ResetEventCount() |
| void | ResetEventsPerTrigger() |
| void | ResetModuleHits(Int_t StartIndex = 0, Int_t StopIndex = 0) |
| virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU |
| Int_t | SaveHistograms(const Char_t* Pattern, const Char_t* HistFile) |
| Int_t | SaveHistograms(const Char_t* Pattern, TMrbIOSpec* IOSpec) |
| virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
| void | TObject::SetBit(UInt_t f) |
| void | TObject::SetBit(UInt_t f, Bool_t set) |
| void | SetBranchSize(Int_t BranchSize = TMrbAnalyze::kBranchBufferSize) |
| void | SetCurIOSpec(TMrbIOSpec* IOSpec) |
| virtual void | TObject::SetDrawOption(Option_t* option = "")MENU |
| static void | TObject::SetDtorOnly(void* obj) |
| void | SetDumpCount(Int_t Count) |
| void | SetFakeMode(Bool_t FakeMode = kTRUE) |
| void | SetFileSize(Int_t FileSize = 0) |
| static void | TObject::SetObjectStat(Bool_t stat) |
| void | SetReplayMode(Bool_t Flag = kTRUE) |
| void | SetRunId(Int_t RunId) |
| void | SetRunStatus(TMrbAnalyze::EMrbRunStatus RunStatus) |
| void | SetScaleDown(Int_t ScaleDown = 1) |
| void | SetSplitLevel(Bool_t SplitLevel = TMrbAnalyze::kBranchSplitLevel) |
| Bool_t | SetTimeOffset(Int_t ModuleNumber, Int_t Offset) |
| virtual void | TObject::SetUniqueID(UInt_t uid) |
| void | SetUpdateFlag() |
| void | SetVerboseMode(Bool_t VerboseFlag = kTRUE) |
| void | SetWriteTreeFlag(Bool_t Flag = kTRUE) |
| virtual void | ShowMembers(TMemberInspector& insp) |
| virtual void | Streamer(TBuffer& b) |
| void | StreamerNVirtual(TBuffer& b) |
| virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
| Bool_t | TObject::TestBit(UInt_t f) const |
| Int_t | TObject::TestBits(UInt_t f) const |
| Bool_t | TestRunStatus() |
| Bool_t | TreeToBeWritten() const |
| TH1F* | UpdateDTimeHistory() |
| TH1F* | UpdateRateHistory() |
| virtual void | TObject::UseCurrentStyle() |
| void | WaitForLock(const Char_t* LockFile, const Char_t* Msg = NULL) |
| virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
| virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) |
| virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const |
| Bool_t | WriteRootTree(const Char_t* FileName) |
| Bool_t | WriteRootTree(TMrbIOSpec* IOSpec) |
| virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
| void | TObject::MakeZombie() |
| 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 | ||
| }; |
| Int_t | fBranchSize | buffer size for branches |
| TMrbLofNamedX | fCalibrationList | list of calibrations, indexed by param number |
| TMrbIOSpec* | fCurIOSpec | current i/o spec |
| TMrbLofNamedX | fDCorrList | list of doppler corrections, indexed by param number |
| Int_t | fDumpCount | number of data records to be dumped: 0 -> never, N -> N times, -1 -> always |
| Int_t | fEventsProcPrev | event count of last update |
| Int_t | fEventsProcessed | events processed so far |
| Bool_t | fFakeMode | kTRUE if fake mode |
| Int_t | fFileSize | file size in MB |
| Int_t | fHistFileVersion | version number of (autosaved) hist file |
| TMrbLofNamedX | fHistoList | list of histograms, indexed by param number |
| TList | fLofIOSpecs | list of i/o specs |
| TMrbLogger* | fMessageLogger | ! addr of message logger |
| TMrbLofNamedX | fModuleList | list of modules, indexed by serial number |
| Int_t | fNofModules | number of modules |
| Int_t | fNofParams | number of parameters |
| TMrbLofNamedX | fParamList | list of params, indexed by param number |
| Bool_t | fReplayMode | kTRUE if replay mode |
| TString | fResourceFile | user's resource defs |
| TString | fResourceName | |
| TString | fResourceString | |
| TFile* | fRootFileIn | root file to read tree data from (replay mode only) |
| TFile* | fRootFileOut | root file to store data trees |
| Int_t | fRunId | current run id |
| TMrbAnalyze::EMrbRunStatus | fRunStatus | kTRUE: program is to be terminated (after ^C) |
| Int_t | fScaleDown | global scale-down factor |
| TMrbLofNamedX | fSingleList | list of single histograms, indexed by param number |
| Int_t | fSplitLevel | split mode |
| Int_t | fTimeOfLastUpdate | update time is stored here |
| Int_t | fUpdateFlag | > 0: mmap objects are to be updated |
| Bool_t | fVerboseMode | kTRUE if verbose mode |
| Bool_t | fWriteRootTree | kTRUE if root data are to be written |

__________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[C++ METHOD] Name: TMrbAnalyze::PrintCalibration Purpose: Print calibration Arguments: Out -- output stream Results: -- Exceptions: Description: Preints calibration data Keywords:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[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:
________________________________________________________________[C++ METHOD] Name: TMrbAnalyze::ResetEventsPerTrigger Purpose: Clear events per trigger Arguments: -- Results: -- Exceptions: Description: Loops thu list of modules and clears event count Keywords:
{ fSplitLevel = SplitLevel; }{ return(fModuleList.FindByName(ModuleName)); }