__________________________________________________[C++ CLASS IMPLEMENTATION] Name: expconf/src/TMrbEvent.cxx Purpose: MARaBOU configuration: event definition Description: Implements class methods to define events/triggers Keywords: Author: R. Lutter Mailto: <a href=mailto:rudi.lutter@physik.uni-muenchen.de>R. Lutter</a> Revision: $Id: TMrbEvent.cxx,v 1.30 2011/04/29 07:19:03 Marabou Exp $ Date:
| TMrbEvent() | |
| TMrbEvent(const TMrbEvent&) | |
| TMrbEvent(Int_t TrigNumber, const Char_t* EvtName = "", const Char_t* EvtTitle = "") | |
| virtual | ~TMrbEvent() |
| void | TObject::AbstractMethod(const char* method) const |
| void | AllocPrivateHistograms(const Char_t* Prefix) |
| void | AllocPrivateHistograms(Bool_t Flag) |
| virtual void | TObject::AppendPad(Option_t* option = "") |
| Bool_t | Assign2dimHisto(const Char_t* HistoName, const Char_t* SevtName, const Char_t* ParamX, const Char_t* ParamY) |
| Bool_t | Assign2dimHisto(const Char_t* HistoName, const Char_t* SevtName, Int_t ParamX, Int_t ParamY) |
| Bool_t | Assign2dimHisto(const Char_t* HistoName, const Char_t* SevtX, const Char_t* ParamX, const Char_t* SevtY, const Char_t* ParamY) |
| Bool_t | Assign2dimHisto(const Char_t* HistoName, const Char_t* SevtX, Int_t ParamX, const Char_t* SevtY, Int_t ParamY) |
| virtual void | TObject::Browse(TBrowser* b) |
| static TClass* | Class() |
| virtual const char* | TObject::ClassName() const |
| virtual void | TNamed::Clear(Option_t* option = "") |
| virtual TObject* | TNamed::Clone(const char* newname = "") const |
| virtual Int_t | TNamed::Compare(const TObject* obj) const |
| virtual void | TNamed::Copy(TObject& named) const |
| void | CreateHistoArray(const Char_t* ArrayName = NULL) |
| 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 |
| 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 |
| virtual void | TNamed::FillBuffer(char*& buffer) |
| virtual TObject* | TObject::FindObject(const char* name) const |
| virtual TObject* | TObject::FindObject(const TObject* obj) const |
| TMrbSubevent* | FindSubevent(const Char_t* SevtName) const |
| TMrbSubevent* | FindSubeventByCrate(Int_t Crate, TMrbSubevent* After = NULL) const |
| UInt_t | GetAnalyzeOptions() const |
| Int_t | GetAutoSave() const |
| const Char_t* | GetBaseClass() |
| virtual const Char_t* | GetCommonCodeFile() const |
| UInt_t | GetConfigOptions() const |
| virtual Option_t* | TObject::GetDrawOption() const |
| static Long_t | TObject::GetDtorOnly() |
| Int_t | GetHBHighWaterLimit() const |
| const Char_t* | GetHistoArrayName() |
| virtual const char* | TObject::GetIconName() const |
| TMrbLofNamedX* | GetLofSubevents() |
| const Char_t* | GetLofSubeventsAsString(TString& LofSubevents) const |
| TMrbNamedX* | GetMbsBranch() |
| Int_t | GetMbsBranchNo() |
| virtual const char* | TNamed::GetName() const |
| Int_t | GetNofSubevents() const |
| virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
| static Bool_t | TObject::GetObjectStat() |
| virtual Option_t* | TObject::GetOption() const |
| const Char_t* | GetPointerName() |
| const Char_t* | GetPrefix() const |
| virtual const Char_t* | GetPrivateCodeFile() const |
| UInt_t | GetReadoutOptions() const |
| Int_t | GetSelectedBranchNo() |
| Int_t | GetSizeOfHitBuffer() const |
| Int_t | GetSubtype() const |
| virtual const char* | TNamed::GetTitle() const |
| Int_t | GetTrigger() const |
| TMrbConfig::EMrbTriggerStatus | GetTriggerStatus() const |
| Int_t | GetType() const |
| virtual UInt_t | TObject::GetUniqueID() const |
| virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
| virtual ULong_t | TNamed::Hash() const |
| virtual Bool_t | HasPrivateCode() const |
| Bool_t | HasPrivateHistograms() const |
| Bool_t | HasSubevent(const Char_t* Assignment) |
| void | Help() |
| Bool_t | HistoArrayToBeCreated() |
| 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 |
| virtual void | TObject::Inspect() constMENU |
| void | TObject::InvertBit(UInt_t f) |
| virtual TClass* | IsA() const |
| virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
| virtual Bool_t | TObject::IsFolder() const |
| Bool_t | TObject::IsOnHeap() const |
| Bool_t | IsReservedEvent() |
| virtual Bool_t | TNamed::IsSortable() const |
| Bool_t | IsStartEvent() |
| Bool_t | IsStopEvent() |
| Bool_t | TObject::IsZombie() const |
| virtual void | TNamed::ls(Option_t* option = "") const |
| Bool_t | MakeAnalyzeCode(ofstream& RdoStrm, TMrbConfig::EMrbAnalyzeTag TagIndex, const Char_t* Extension) |
| Bool_t | MakeAnalyzeCode(ofstream& RdoStrm, TMrbConfig::EMrbAnalyzeTag TagIndex, TMrbTemplate& Template, const Char_t* Prefix = NULL) |
| Bool_t | MakeConfigCode(ofstream& CfgStrm, TMrbConfig::EMrbConfigTag TagIndex, TMrbTemplate& Template, const Char_t* Prefix = NULL) |
| virtual Bool_t | MakeRcFile(ofstream& RcStrm, TMrbConfig::EMrbRcFileTag TagIndex, const Char_t* ResourceName) |
| Bool_t | MakeReadoutCode(ofstream& RdoStrm, TMrbConfig::EMrbReadoutTag TagIndex, TMrbTemplate& Template, const Char_t* Prefix = NULL) |
| 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 |
| 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) |
| TNamed& | TNamed::operator=(const TNamed& rhs) |
| virtual void | TObject::Paint(Option_t* option = "") |
| virtual void | TObject::Pop() |
| virtual void | Print() const |
| virtual void | Print(Option_t* Option) const |
| void | Print(ostream& OutStrm, const Char_t* Prefix = "") const |
| virtual Int_t | TObject::Read(const char* name) |
| virtual void | TObject::RecursiveRemove(TObject* obj) |
| void | TObject::ResetBit(UInt_t f) |
| virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU |
| virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
| Bool_t | SelectMbsBranch(Int_t MbsBranchNo) |
| Bool_t | SetAnalyzeOptions(Option_t* Options = "Subevents:Histograms") |
| void | SetAutoSave(Int_t AutoSave = TMrbConfig::kAutoSave) |
| void | SetBaseClass(const Char_t* BaseClass) |
| void | TObject::SetBit(UInt_t f) |
| void | TObject::SetBit(UInt_t f, Bool_t set) |
| Bool_t | SetConfigOptions(Option_t* Options = "") |
| virtual void | TObject::SetDrawOption(Option_t* option = "")MENU |
| static void | TObject::SetDtorOnly(void* obj) |
| Bool_t | SetMbsBranch(TMrbNamedX* MbsBranch) |
| Bool_t | SetMbsBranch(Int_t MbsBranchNo, const Char_t* MbsBranchName = NULL) |
| virtual void | TNamed::SetName(const char* name)MENU |
| virtual void | TNamed::SetNameTitle(const char* name, const char* title) |
| static void | TObject::SetObjectStat(Bool_t stat) |
| void | SetPointerName(const Char_t* PointerName) |
| Bool_t | SetReadoutOptions(Option_t* Options = "") |
| void | SetSizeOfHitBuffer(Int_t NofEntries, Int_t HighWater = 0) |
| virtual void | TNamed::SetTitle(const char* title = "")MENU |
| virtual void | TObject::SetUniqueID(UInt_t uid) |
| Bool_t | ShareSubevents(TMrbEvent* Event) |
| virtual void | ShowMembers(TMemberInspector& insp) |
| virtual Int_t | TNamed::Sizeof() const |
| 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 |
| virtual void | TObject::UseCurrentStyle() |
| 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 |
| virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
| void | TObject::MakeZombie() |
| enum { | kNofHitBufferEntries | |
| }; | ||
| enum TObject::EStatusBits { | kCanDelete | |
| kMustCleanup | ||
| kObjInCanvas | ||
| kIsReferenced | ||
| kHasUUID | ||
| kCannotPick | ||
| kNoContextMenu | ||
| kInvalidObject | ||
| }; | ||
| enum TObject::[unnamed] { | kIsOnHeap | |
| kNotDeleted | ||
| kZombie | ||
| kBitMask | ||
| kSingleKey | ||
| kOverwrite | ||
| kWriteDelete | ||
| }; |
| UInt_t | fAnalyzeOptions | ... in MakeAnalyzeCode() |
| Int_t | fAutoSave | auto save after N bytes |
| TString | fBaseClass | name of base class |
| UInt_t | fConfigOptions | ... in MakeConfigCode() |
| Bool_t | fCreateHistoArray | kTRUE if histo array / .histlist file is to be created |
| UInt_t | fEventSubtype | |
| UInt_t | fEventType | |
| Int_t | fHBHighWaterLimit | |
| TString | fHistoArrayName | name of histo array / .histlist file |
| TMrbLofNamedX | fLof2dimHistos | 2-dim histos to be accumulated |
| TMrbLofNamedX | fLofSubevents | |
| TMrbNamedX | fMbsBranch | branch within MBS |
| TString | TNamed::fName | object identifier |
| Int_t | fNofSubevents | list of subevents |
| TString | fPointerName | name of ptr to event |
| TString | fPrefix | prefix to be prepended to private histos |
| Bool_t | fPrivateHistograms | kTRUE if private histograms to be accumualted |
| UInt_t | fReadoutOptions | options used in MakeReadoutCode() |
| Int_t | fSelectedBranchNo | selected branch |
| Int_t | fSizeOfHitBuffer | |
| TString | TNamed::fTitle | object title |
| Int_t | fTrigger | associated trigger number |
| TMrbConfig::EMrbTriggerStatus | fTriggerStatus | trigger status: assigned, pattern |

__________________________________________________________________[C++ CTOR] Name: TMrbEvent Purpose: Create a event Arguments: Int_t Trigger -- associated trigger number Char_t * EvtName -- event name Char_t * EvtTitle -- ... and title Results: -- Exceptions: Description: Class constructor Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::FindSubeventByCrate Purpose: Find a subevent with given crate number Arguments: Int_t Crate -- crate number TMrbSubevent * After -- start search after obj Results: TMrbSubevent * Subevent -- subevent Exceptions: Description: Searches for next subevent in crate "Crate". Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::HasSubevent Purpose: Assign subevent(s) Arguments: Char_t * Assignment -- subevent name(s) Results: kTRUE/kFALSE Exceptions: Description: Adds a subevent to current event. More than one subevent may be assigned separated by space. Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::ShareSubevents Purpose: Share subevent(s) with another event Arguments: TMrbEvent * DestEvent -- destination Results: kTRUE/kFALSE Exceptions: Description: Assigns subevents to DestEvent. Used to generate multi-trigger events from their single-bit ancestors. Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbConfig::Assign2dimHisto Purpose: Assign 2-dim histo to be accumulated Arguments: Char_t * HistoName -- hostgram name Char_t * SevtX -- subevent containing param X Char_t * ParamX -- name of param X Char_t * SevtY -- subevent containing param Y Char_t * ParamY -- name of param Y Results: kTRUE/kFALSE Exceptions: Description: Adds histo to list of 2-dim histos. Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbConfig::Assign2dimHisto Purpose: Assign 2-dim histo to be accumulated Arguments: Char_t * HistoName -- hostgram name Char_t * SevtX -- subevent containing param X Int_t ParamX -- name of param X Char_t * SevtY -- subevent containing param Y Int_t ParamY -- name of param Y Results: kTRUE/kFALSE Exceptions: Description: Adds histo to list of 2-dim histos. Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbConfig::MakeReadoutCode Purpose: Generate user-defined code to read MBS data Arguments: ofstream & RdoStrm -- where to output code EMrbReadoutTag TagIndex -- tag word index TMrbTemplate Template -- template Char_t * Prefix -- prefix to select template code Results: kTRUE/kFALSE Exceptions: Description: Generates code for specified event (=trigger). Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::MakeAnalyzeCode Purpose: Generate user-defined code to analyze MBS data Arguments: ofstream & ana -- where to output code EMrbAnalyzeTag TagIndex -- tag word index Char_t * Extension -- file extension (.h or .cxx) Results: kTRUE/kFALSE Exceptions: Description: Generates code for specified event (=trigger). Searches for following files: (1) if event has private code (1a) Event_<Name>.<Extension>.code (1b) <PrivateCodeFile>.<Extension>.code (1c) Event_<Class>.<Extension>.code (2) standard: Event.<Extension>.code Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::MakeAnalyzeCode Purpose: Generate user-defined code to analyze MBS data Arguments: ofstream & ana -- where to output code EMrbAnalyzeTag TagIndex -- tag word index TMrbTemplate Template -- template Char_t * Prefix -- prefix to select template code Results: kTRUE/kFALSE Exceptions: Description: Generates code for specified event (=trigger). Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::MakeConfigCode Purpose: Generate config code Arguments: ofstream & CfgStrm -- where to output code EMrbConfigTag TagIndex -- tag word index TMrbTemplate Template -- template Char_t * Prefix -- prefix to select template code Results: kTRUE/kFALSE Exceptions: Description: Outputs config code for specified event (=trigger). Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::SetReadoutOptions Purpose: Define some options to be used in MakeReadoutCode() Arguments: Char_t * Options -- options to be set Results: kTRUE/kFALSE Exceptions: Description: Sets readout options for this event individually Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::SetAnalyzeOptions Purpose: Define some options to be used in MakeAnalyzeCode() Arguments: Char_t * Options -- options to be set Results: kTRUE/kFALSE Exceptions: Description: Sets analyze options for this event individually Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::SetConfigOptions Purpose: Define some options to be used in MakeConfigCode() Arguments: Char_t * Options -- options to be set Results: kTRUE/kFALSE Exceptions: Description: Sets config options for this event individually Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::GetReadoutOptions Purpose: Return current options for method MakeReadoutCode() Arguments: -- Results: UInt_t Options -- readout options Exceptions: Description: Returns readout options: local options if fReadoutOptions is set global options from TMrbConfig otherwise Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::GetAnalyzeOptions Purpose: Return current options for method MakeAnalyzeCode() Arguments: -- Results: UInt_t Options -- readout options Exceptions: Description: Returns analyze options: local options if fAnalyzeOptions is set global options from TMrbConfig otherwise Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::GetConfigOptions Purpose: Return current options for method MakeConfigCode() Arguments: -- Results: UInt_t Options -- readout options Exceptions: Description: Returns config options: local options if fConfigOptions is set global options from TMrbConfig otherwise Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::Print Purpose: Output current event definitions Arguments: ofstream & Out -- output stream Char_t * Prefix -- prefix to be output in front Results: -- Exceptions: Description: Outputs current event definition to OutStrm. Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::GetLofSubeventsAsString Purpose: Return a colon-separated string with subevent names Arguments: TString & LofSubevents -- where to store subevent names Results: Char_t * LofSubevents -- string containing subevent names Exceptions: Description: Returns a colon-separated string with subevent names. Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::SetMbsBranch Purpose: Assign event to a mbs branch Arguments: Int_t MbsBranchNo -- mbs branch number Char_t * BranchName -- name Results: kTRUE/kFALSE Exceptions: Description: Assigns module to a mbs branch. Keywords:
________________________________________________________________[C++ METHOD] Name: TMrbEvent::SelectMbsBranch Purpose: Select a branch Arguments: Int_t MbsBranchNo -- mbs branch number Results: kTRUE/kFALSE Exceptions: Description: Checks if given branch number is assigned to this event or to at least one subevent. Keywords:
{ return(kFALSE); }