(UNKNOWN PRODUCT) » EXPCONF » TMrbSubevent

class TMrbSubevent: public TNamed

__________________________________________________[C++ CLASS IMPLEMENTATION]

 Name:           expconf/src/TMrbSubevent.cxx
 Purpose:        MARaBOU configuration: subevent definition
 Description:    Implements class methods to define subevents
 Header files:   TMrbConfig.h  -- MARaBOU class definitions
 Keywords:
 Author:         R. Lutter
 Mailto:         <a href=mailto:rudi.lutter@physik.uni-muenchen.de>R. Lutter</a>
 Revision:       $Id: TMrbSubevent.cxx,v 1.45 2011/05/18 11:04:49 Marabou Exp $
 Date:

Function Members (Methods)

public:
TMrbSubevent()
TMrbSubevent(const TMrbSubevent&)
TMrbSubevent(const Char_t* SevtName, const Char_t* SevtTitle = "", Int_t Crate = -1)
virtual~TMrbSubevent()
voidTObject::AbstractMethod(const char* method) const
voidAddEvent(TMrbEvent* Evt)
Bool_tAddModule(TMrbModule* Module)
Bool_tAddParam(TMrbModuleChannel* Param)
voidAllocateHistograms(Bool_t Flag = kTRUE)
virtual Bool_tAllowsMultipleModules() const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidBrowse(TBrowser* Browser)
virtual Bool_tCheckModuleID(TMrbModule* Module) const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
voidCreateHistoArray(const Char_t* ArrayName = NULL)
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
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)
Bool_tExplicitParamNamesToBeUsed()
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
voidFillHistogramsIfTrueHitOnly(Bool_t Flag = kTRUE)
TMrbEvent*FindEvent(const Char_t* EvtName) const
TMrbModule*FindModule(const Char_t* ModuleName) const
TMrbModule*FindModuleByID(TMrbConfig::EMrbModuleID ModuleID, TMrbModule* After = NULL) const
TMrbModule*FindModuleByID(TMrbNamedX* ModuleID, TMrbModule* After = NULL) const
TMrbModule*FindModuleBySerial(Int_t ModuleSerial) const
TMrbModule*FindModuleByType(UInt_t ModuleType, TMrbModule* After = NULL) const
TMrbModule*FindModuleByType(TMrbNamedX* ModuleType, TMrbModule* After = NULL) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TMrbModuleChannel*FindParam(const Char_t* ParamName) const
Int_tGet(const Char_t* ParamName, const Char_t* RegName) const
Int_tGet(const Char_t* ParamName, Int_t RegIndex) const
UInt_tGetAnalyzeOptions(TMrbEvent* Parent = NULL) const
virtual const Char_t*GetCommonCodeFile() const
UInt_tGetConfigOptions(TMrbEvent* Parent = NULL) const
Int_tGetCrate() const
const Char_t*GetDescr()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
const Char_t*GetHistoArrayName()
Int_tGetHitDataLength()
virtual const char*TObject::GetIconName() const
UInt_tGetLegalDataTypes() const
TObjArray*GetLofEvents()
TObjArray*GetLofModules()
const Char_t*GetLofModulesAsString(TString& LofModules) const
TObjArray*GetLofParams()
const Char_t*GetLofParamsAsString(TString& LofParams) const
TMrbNamedX*GetMbsBranch()
Int_tGetMbsBranchNo()
virtual const char*TNamed::GetName() const
const Char_t*GetNameOfXhit()
Int_tGetNofEvents() const
Int_tGetNofModules() const
Int_tGetNofParams() const
Int_tGetNofShorts() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const Char_t*GetPrefix() const
virtual const Char_t*GetPrivateCodeFile() const
UInt_tGetReadoutOptions(TMrbEvent* Parent = NULL) const
Int_tGetSerial() const
UInt_tGetSubtype() const
virtual const char*TNamed::GetTitle() const
UInt_tGetType() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tHasFixedLengthFormat() const
virtual ULong_tTNamed::Hash() const
Bool_tHasIndexedParams() const
virtual Bool_tHasPrivateCode() const
Bool_tHasXhit()
voidHelp()
Bool_tHistoArrayToBeCreated()
Bool_tHistosToBeAllocated() const
Bool_tHistosToBeFilledIfTrueHit() const
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
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsInArrayMode() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsRaw() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
Bool_tMakeAnalyzeCode(ofstream& AnaStrm, TMrbConfig::EMrbAnalyzeTag TagIndex, const Char_t* Extension)
Bool_tMakeAnalyzeCode(ofstream& AnaStrm, TMrbConfig::EMrbAnalyzeTag TagIndex, TMrbEvent* Event, TMrbTemplate& Template, const Char_t* Prefix = NULL)
Bool_tMakeConfigCode(ofstream& CfgStrm, TMrbConfig::EMrbConfigTag TagIndex, TMrbTemplate& Template, const Char_t* Prefix = NULL)
virtual Bool_tMakeRcFile(ofstream& RcStrm, TMrbConfig::EMrbRcFileTag TagIndex, const Char_t* ResourceName)
virtual Bool_tMakeReadoutCode(ofstream& RdoStrm, TMrbConfig::EMrbReadoutTag TagIndex, TMrbTemplate& Template, const Char_t* Prefix = NULL)
virtual Bool_tMakeSpecialAnalyzeCode(ofstream& AnaStrm, TMrbConfig::EMrbAnalyzeTag TagIndex, TMrbTemplate& Template)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tNeedsBranchMode() const
virtual Bool_tNeedsHitBuffer() const
virtual Bool_tNeedsModulesToBeAssigned() const
TMrbModule*NextModule(TMrbModule* After = NULL) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
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)
TNamed&TNamed::operator=(const TNamed& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
Bool_tPrefixToBePrepended() const
voidPrependPrefix(const Char_t* Prefix)
voidPrependPrefix(Bool_t Flag = kTRUE)
virtual voidPrint() const
virtual voidPrint(Option_t* Option) const
voidPrint(ostream& OutStrm, const Char_t* Prefix = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
virtual Bool_tSerialToBeCreated() const
Bool_tSet(const Char_t* ParamName, const Char_t* RegName, Int_t Value)
Bool_tSet(const Char_t* ParamName, Int_t RegIndex, Int_t Value)
Bool_tSetAnalyzeOptions(Option_t* Options = "byName:Histograms")
voidSetArrayMode(Bool_t ArrayMode = kTRUE)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
Bool_tSetConfigOptions(Option_t* Options = "")
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
Bool_tSetMbsBranch(TMrbNamedX* MbsBranch)
Bool_tSetMbsBranch(Int_t MbsBranchNo, const Char_t* MbsBranchName = NULL)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
Bool_tSetParamName(Int_t ParamNo, Char_t* ParamName)
Bool_tSetReadoutOptions(Option_t* Options = "")
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp)
virtual Bool_tSingleModuleOnly() const
virtual Int_tTNamed::Sizeof() const
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_tUse(const Char_t* Assignment, Bool_t BookHistos = kTRUE)
Bool_tUse(const Char_t* ModuleName, const Char_t* Assignment, Bool_t BookHistos = kTRUE)
virtual voidTObject::UseCurrentStyle()
voidUseExplicitParamNames(Bool_t Flag = kTRUE)
Bool_tUseXhit(Int_t DataLength)
Bool_tUseXhit(const Char_t* HitName, Int_t DataLength = -1)
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
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
UInt_tfAnalyzeOptions... in MakeAnalyzeCode()
Bool_tfArrayModekTRUE if subevent data are stored in an array
UInt_tfConfigOptions... in MakeConfigCode()
Int_tfCratecrate number
Bool_tfCreateHistoArraykTRUE if histo array / .histlist file is to be created
Bool_tfExplicitParamNameskTRUE if explicit param names to be used
Bool_tfHasIndexedParamsif there are TArrayX params
TStringfHistoArrayNamename of histo array / .histlist file
Bool_tfHistosToBeAllocatedkTRUE if histograms to be allocated for all params
Bool_tfHistosToBeFilledIfTrueHitfill histograms if is it true hit
Int_tfHitDataLengthlength of hit data
UInt_tfLegalDataTypesdatatypes legal for this type of subevent
TObjArrayfLofEvents
TObjArrayfLofModules
TObjArrayfLofParamslist of params
TMrbNamedXfMbsBranchbranch within MBS
TStringTNamed::fNameobject identifier
Int_tfNofEventslist of parent events
Int_tfNofModuleslist of modules housing these params
Int_tfNofParamsnumber of params
Int_tfNofShortsnumber of 16 bit words;
TStringfPrefixprefix to be prepended to params & histos
Bool_tfPrependPrefixkTRUE if subevents has its own prefix
UInt_tfReadoutOptionsoptions used in MakeReadoutCode()
Int_tfSerialheader words: unique subevent id
TStringfSevtDescrdescription
UInt_tfSevtSubtypesubevent subtype
UInt_tfSevtTypesubevent type
TMrbModule*fSoftModuleinternal module name, simulated by software
TStringTNamed::fTitleobject title
TStringfXhita special (extended) hit

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TMrbSubevent(const Char_t* SevtName, const Char_t* SevtTitle = "", Int_t Crate = -1)
__________________________________________________________________[C++ CTOR]

 Name:           TMrbSubevent
 Purpose:        Create a subevent
 Arguments:      Char_t * SevtName       -- subevent name
                 Char_t * SevtTitle      -- ... and title
                 Int_t Crate             -- crate number
 Results:        --
 Exceptions:
 Description:    Class constructor
 Keywords:

Bool_t AddParam(TMrbModuleChannel* Param)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::AddParam
 Purpose:        Add a new param to subevent
 Arguments:      TMrbModuleChannel * Param        -- param addr
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Adds a param to list.
 Keywords:

TMrbModule * FindModuleByID(TMrbConfig::EMrbModuleID ModuleID, TMrbModule* After = NULL) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::FindModuleByID
 Purpose:        Find a module by its id
 Arguments:      EMrbModuleID ModuleID  -- module id
                 TMrbModule * After     -- search to be started after this module
 Results:        TMrbModule * Module    -- module address
 Exceptions:
 Description:    Loops thru the list of modules to find
                 next module having specified id
 Keywords:

TMrbModule * FindModuleByType(UInt_t ModuleType, TMrbModule* After = NULL) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::FindModuleByType
 Purpose:        Find a module by its type
 Arguments:      UInt_t ModuleType     -- module type
                 TMrbModule * After    -- search to be started after this module
 Results:        TMrbModule * Module   -- module address
 Exceptions:
 Description:    Loops thru the list of modules to find
                 next module having specified type
 Keywords:

TMrbModule * FindModuleBySerial(Int_t ModuleSerial) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::FindModuleBySerial
 Purpose:        Find a module by its unique serial number
 Arguments:      Int_t ModuleSerial       -- serial number
 Results:        TMrbModule * Module      -- module address
 Exceptions:
 Description:    Loops thru the list of modules to find
                 specified serial number
 Keywords:

Bool_t Use(const Char_t* ModuleName, const Char_t* Assignment, Bool_t BookHistos = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::Use
 Purpose:        Assign parameters
 Arguments:      Char_t * ModuleName  -- module which houses these channels
                 Char_t * Assignment  -- param name(s) & channel number(s)
                 Bool_t BookHistos    -- kTRUE if to book histograms for these channels
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Defines which subaddresses to be used by assigning meangingful names.
                 Assignment may be a single param name or a set of names, separated by blanks.
                 Subsequent names will be assigned subsequent channel numbers.
 Keywords:

Bool_t SetParamName(Int_t ParamNo, Char_t* ParamName)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::SetParamName
 Purpose:        Set param name explicitly
 Arguments:      Int_t ParamNo        -- param number
                 Char_t * ParamName   -- name to be assigned
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Overwrites param names explicitly
 Keywords:

Bool_t MakeAnalyzeCode(ofstream& AnaStrm, TMrbConfig::EMrbAnalyzeTag TagIndex, const Char_t* Extension)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::MakeAnalyzeCode
 Purpose:        Write a piece of code for data analysis
 Arguments:      ofstream & AnaStrm       -- file output stream
                 EMrbAnalyzeTag TagIndex  -- index of tag word from template file
                 Char_t * Extension       -- file extensions to be appended (.h or .cxx)
 Results:
 Exceptions:
 Description:    Writes code needed for data analysis.
                 Searches for following files:
                      (1)  if subevent has private code
                      (1a)    Subevent_<Name>.<Extension>.code
                      (1b)    <PrivateCodeFile>.<Extension>.code
                      (1c)    Subevent_<Class>.<Extension>.code
                      (2)  standard:
                              Subevent.<Extension>.code
 Keywords:

Bool_t MakeAnalyzeCode(ofstream& AnaStrm, TMrbConfig::EMrbAnalyzeTag TagIndex, TMrbEvent* Event, TMrbTemplate& Template, const Char_t* Prefix = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::MakeAnalyzeCode
 Purpose:        Write a piece of code for data analysis
 Arguments:      ofstream & AnaStrm           -- file output stream
                 EMrbAnalyzeTag TagIndex      -- index of tag word from template file
                 TMrbEvent * Event            -- associated event
                 TMrbTemplate & Template      -- template
                 Char_t * Prefix              -- prefix to select template code
 Results:
 Exceptions:
 Description:    Writes code needed for data analysis.
 Keywords:

Bool_t MakeConfigCode(ofstream& CfgStrm, TMrbConfig::EMrbConfigTag TagIndex, TMrbTemplate& Template, const Char_t* Prefix = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::MakeConfigCode
 Purpose:        Write some lines to the config file
 Arguments:      ofstream & CfgStrm           -- file output stream
                 EMrbConfigTag TagIndex       -- index of tag word from template file
                 TMrbTemplate & Template      -- template
                 Char_t * Prefix              -- prefix to select template code
 Results:
 Exceptions:
 Description:    Writes code into config file.
 Keywords:

void Print(ostream& OutStrm, const Char_t* Prefix = "") const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::Print
 Purpose:        Output current subevent definitions
 Arguments:      ofstream & Out   -- output stream
                 Char_t * Prefix  -- prefix to be output in front
 Results:        --
 Exceptions:
 Description:    Outputs current subevent definition to stdout.
 Keywords:

Bool_t Set(const Char_t* ParamName, const Char_t* RegName, Int_t Value)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::Set
 Purpose:        Set register values
 Arguments:      Char_t * ParamName       -- parameter name
                 Char_t * RegName         -- register name
                 Int_t Value              -- value to be set
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets register values of specified param
 Keywords:

Bool_t Set(const Char_t* ParamName, Int_t RegIndex, Int_t Value)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::Set
 Purpose:        Set register values
 Arguments:      Char_t * ParamName       -- parameter name
                 Int_t RegIndex           -- register index
                 Int_t Value              -- value to be set
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets register values of specified param
 Keywords:

Int_t Get(const Char_t* ParamName, const Char_t* RegName) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::Get
 Purpose:        Get register values
 Arguments:      Char_t * ParamName       -- parameter name
                 Char_t * RegName         -- register name
 Results:        Int_t Value              -- value to be set
 Exceptions:
 Description:    Gets register values of specified param
 Keywords:

Int_t Get(const Char_t* ParamName, Int_t RegIndex) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::Get
 Purpose:        Get register values
 Arguments:      Char_t * ParamName       -- parameter name
                 Int_t RegIndex           -- register index
 Results:        Int_t Value              -- value to be set
 Exceptions:
 Description:    Gets register values of specified param
 Keywords:

Bool_t SetReadoutOptions(Option_t* Options = "")
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::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 subevent individually
 Keywords:

Bool_t SetAnalyzeOptions(Option_t* Options = "byName:Histograms")
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::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 subevent individually
 Keywords:

Bool_t SetConfigOptions(Option_t* Options = "")
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::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 subevent individually
 Keywords:

UInt_t GetReadoutOptions(TMrbEvent* Parent = NULL) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::GetReadoutOptions
 Purpose:        Return current options for method MakeReadoutCode()
 Arguments:      TMrbEvent * Parent -- parent event
 Results:        UInt_t Options     -- readout options
 Exceptions:
 Description:    Returns readout options:
                     local options if fReadoutOptions is set
                     options of parent event otherwise
 Keywords:

UInt_t GetAnalyzeOptions(TMrbEvent* Parent = NULL) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::GetAnalyzeOptions
 Purpose:        Return current options for method MakeAnalyzeCode()
 Arguments:      TMrbEvent * Parent -- parent event
 Results:        UInt_t Options     -- readout options
 Exceptions:
 Description:    Returns analyze options:
                     local options if fAnalyzeOptions is set
                     options of parent event otherwise
 Keywords:

UInt_t GetConfigOptions(TMrbEvent* Parent = NULL) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::GetConfigOptions
 Purpose:        Return current options for method MakeConfigCode()
 Arguments:      TMrbEvent * Parent -- parent event
 Results:        UInt_t Options     -- readout options
 Exceptions:
 Description:    Returns config options:
                     local options if fConfigOptions is set
                     options of parent event otherwise
 Keywords:

const Char_t * GetLofModulesAsString(TString& LofModules) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::GetLofModulesAsString
 Purpose:        Return a colon-separated string with module names
 Arguments:      TString & LofModules      -- where to store module names
 Results:        Char_t * LofModules       -- string containing module names
 Exceptions:
 Description:    Returns a colon-separated string with module names.
 Keywords:

const Char_t * GetLofParamsAsString(TString& LofParams) const
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::GetLofParamsAsString
 Purpose:        Return a colon-separated string with module names
 Arguments:      TString & LofParams      -- where to store module names
 Results:        Char_t * LofParams       -- string containing module names
 Exceptions:
 Description:    Returns a colon-separated string with module names.
 Keywords:

Bool_t UseXhit(const Char_t* HitName, Int_t DataLength = -1)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::UseXhit
 Purpose:        Define a special hit to be used instead of TUsrHit
 Arguments:      Char_t * HitName         -- name to be used
                 Int_t DataLength         -- length if additional hit data in words
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Defines a new object inherited from normal TUsrHit.
                 Adds some additional data (i.e. trace data).
                 Code will be generated automatically depending on argument DataLength.
                 If DataLength is missing (or = -1) no code generation will take place,
                 it is then up to the user to provide his own class.
 Keywords:

Bool_t SetMbsBranch(Int_t MbsBranchNo, const Char_t* MbsBranchName = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TMrbSubevent::SetMbsBranch
 Purpose:        Assign subevent 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:

void Browse(TBrowser* Browser)
{}
TMrbSubevent()
{}
TMrbSubevent(const Char_t* SevtName, const Char_t* SevtTitle = "", Int_t Crate = -1)
~TMrbSubevent()
void AddEvent(TMrbEvent* Evt)
TMrbEvent * FindEvent(const Char_t* EvtName) const
TMrbModuleChannel * FindParam(const Char_t* ParamName) const
Bool_t AddModule(TMrbModule* Module)
TMrbModule * NextModule(TMrbModule* After = NULL) const
TMrbModule * FindModule(const Char_t* ModuleName) const
TMrbModule * FindModuleByID(TMrbConfig::EMrbModuleID ModuleID, TMrbModule* After = NULL) const
TMrbModule * FindModuleByType(UInt_t ModuleType, TMrbModule* After = NULL) const
Bool_t Use(const Char_t* ModuleName, const Char_t* Assignment, Bool_t BookHistos = kTRUE)
Int_t GetSerial() const
{ return(fSerial); }
Int_t GetNofEvents() const
{ return(fNofEvents); }
Int_t GetNofModules() const
{ return(fNofModules); }
Int_t GetNofParams() const
{ return(fNofParams); }
Int_t GetNofShorts() const
{ return(fNofShorts); }
UInt_t GetLegalDataTypes() const
{ return(fLegalDataTypes); }
Int_t GetCrate() const
{ return(fCrate); }
UInt_t GetType() const
{ return(fSevtType); }
UInt_t GetSubtype() const
{ return(fSevtSubtype); }
const Char_t * GetDescr()
{ return(fSevtDescr.Data()); }
Bool_t MakeReadoutCode(ofstream& RdoStrm, TMrbConfig::EMrbReadoutTag TagIndex, TMrbTemplate& Template, const Char_t* Prefix = NULL)
{ return(kFALSE); }
Bool_t MakeSpecialAnalyzeCode(ofstream& AnaStrm, TMrbConfig::EMrbAnalyzeTag TagIndex, TMrbTemplate& Template)
{ return(kFALSE); }
Bool_t MakeRcFile(ofstream& RcStrm, TMrbConfig::EMrbRcFileTag TagIndex, const Char_t* ResourceName)
{ return(kFALSE); }
void UseExplicitParamNames(Bool_t Flag = kTRUE)
{ fExplicitParamNames = Flag; }
Bool_t ExplicitParamNamesToBeUsed()
{ return(fExplicitParamNames); }
const Char_t * GetPrefix() const
{ return(fPrefix.Data()); }
Bool_t PrefixToBePrepended() const
{ return(fPrependPrefix); }
void PrependPrefix(const Char_t* Prefix)
void PrependPrefix(Bool_t Flag = kTRUE)
{ fPrependPrefix = fPrefix.IsNull() ? kFALSE : Flag; }
void Print(Option_t* Option) const
{ TObject::Print(Option); }
void Print(ostream& OutStrm, const Char_t* Prefix = "") const
void AllocateHistograms(Bool_t Flag = kTRUE)
{ fHistosToBeAllocated = Flag; }
Bool_t HistosToBeAllocated() const
{ return(fHistosToBeAllocated); }
void FillHistogramsIfTrueHitOnly(Bool_t Flag = kTRUE)
{ fHistosToBeFilledIfTrueHit = Flag; }
Bool_t HistosToBeFilledIfTrueHit() const
{ return(fHistosToBeFilledIfTrueHit); }
Bool_t SetMbsBranch(Int_t MbsBranchNo, const Char_t* MbsBranchName = NULL)
TMrbNamedX * GetMbsBranch()
{ return(&fMbsBranch); }
Int_t GetMbsBranchNo()
{ return(fMbsBranch.GetIndex()); }
Bool_t HasFixedLengthFormat() const
{ return(kTRUE); }
Bool_t AllowsMultipleModules() const
{ return(kTRUE); }
Bool_t SerialToBeCreated() const
{ return(kTRUE); }
Bool_t IsRaw() const
{ return(kFALSE); }
Bool_t CheckModuleID(TMrbModule* Module) const
{ return(kTRUE); }
void SetArrayMode(Bool_t ArrayMode = kTRUE)
 params to be addressed in array mode?
{ fArrayMode = ArrayMode; }
Bool_t IsInArrayMode() const
{ return(fArrayMode); }
Bool_t HasIndexedParams() const
{ return(fHasIndexedParams); }
Bool_t UseXhit(const Char_t* HitName, Int_t DataLength = -1)
const Char_t * GetNameOfXhit()
{ return(fXhit.Data()); }
Int_t GetHitDataLength()
{ return(fHitDataLength); }
Bool_t HasXhit()
{ return(fHitDataLength > 0); }
Bool_t NeedsHitBuffer() const
{ return(kFALSE); }
Bool_t NeedsBranchMode() const
{ return(kFALSE); }
Bool_t NeedsModulesToBeAssigned() const
{ return(kTRUE); }
Bool_t HasPrivateCode() const
{ return(kFALSE); }
Bool_t SingleModuleOnly() const
{ return(kFALSE); }
const Char_t * GetPrivateCodeFile() const
{ return(NULL); }
const Char_t * GetCommonCodeFile() const
{ return(NULL); }
TObjArray * GetLofEvents()
{ return(&fLofEvents); }
TObjArray * GetLofModules()
{ return(&fLofModules); }
TObjArray * GetLofParams()
{ return(&fLofParams); }
void CreateHistoArray(const Char_t* ArrayName = NULL)
Bool_t HistoArrayToBeCreated()
{ return(fCreateHistoArray); }
const Char_t * GetHistoArrayName()
{ return(fHistoArrayName.Data()); }
void Help()
{ gSystem->Exec(Form("mrbHelp %s", this->ClassName())); }



Revision: $Id: TMrbSubevent.h,v 1.24 2011/05/18 11:04:49 Marabou 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.