#include <TGo4MbsSubEvent.h>
Inheritance diagram for TGo4MbsSubEvent:
Public Member Functions | |
TGo4MbsSubEvent () | |
TGo4MbsSubEvent (Int_t datasize) | |
virtual | ~TGo4MbsSubEvent () |
virtual Int_t | Fill () |
Method called by the event owner (analysis step) to fill the event element from the set event source. | |
virtual void | Clear (Option_t *t="") |
void | PrintEvent () |
Method called by the event owner (analysis step) to clear the event element. | |
void | Set (Int_t dlen, Short_t type=10, Short_t subtype=1, Short_t procid=0, Char_t subcrate=0, Char_t ctrl=0) |
void | SetDlen (Int_t dlen) |
Int_t | GetDlen () const |
Int_t | GetIntLen () const |
void | SetType (Short_t type) |
Short_t | GetType () const |
void | SetSubtype (Short_t subtype) |
Short_t | GetSubtype () const |
void | SetProcid (Short_t procid) |
Short_t | GetProcid () const |
void | SetSubcrate (Char_t subcrate) |
Char_t | GetSubcrate () const |
void | SetControl (Char_t control) |
Char_t | GetControl () const |
Int_t | GetAllocatedLength () |
Return length of allocated memory for data field. | |
Int_t * | GetDataField () |
Direct access to the fiData field pointer. | |
Int_t | Data (Int_t i) |
Returns the value at position i in the fiData field. | |
Bool_t | IsFilled () |
true if this subevent was filled since the last Clear() | |
Private Member Functions | |
void | ReAllocate (Int_t newsize) |
Allocate the data field with newsize. | |
Private Attributes | |
Bool_t | fbIsFilled |
True if this subevent has already been filled in this event cycle. | |
Bool_t | fbIsDataOwner |
True if subevent owns data field. | |
TGo4SubEventHeader10 | fxHeader |
| |
Int_t | fiAllocLen |
Length of the allocated data field. | |
Int_t * | fiData |
Pointer to external integer field containing the subevent data. | |
Friends | |
class | TGo4MbsSource |
Definition at line 24 of file TGo4MbsSubEvent.h.
|
Definition at line 24 of file TGo4MbsSubEvent.cxx. References TRACE. |
|
Definition at line 35 of file TGo4MbsSubEvent.cxx. References fbIsDataOwner, fiAllocLen, fiData, and TRACE. |
|
Definition at line 50 of file TGo4MbsSubEvent.cxx. References Clear(), TGo4Log::Debug(), fbIsDataOwner, fiData, GetAllocatedLength(), and TRACE. |
|
Method called by the event owner (analysis step) to fill the event element from the set event source. Event source can be the source of the analysis step (if this is a raw event) or the event processor (if this is a reduced event). Fill method has to specify how the event source writes to the members of this event structure. Either by calling methods of the source (like myevent.a=fxEventSource->GetA(); etc ), or by direct copy to the member (like fxEventSource->FillMemoryAt(&myevent.a);) Reimplemented from TGo4EventElement. Definition at line 38 of file TGo4MbsSubEvent.h. |
|
Reimplemented from TGo4EventElement. Definition at line 138 of file TGo4MbsSubEvent.cxx. References TGo4SubEventHeader10::Clear(), fbIsDataOwner, fbIsFilled, TGo4MbsSource::fguLONGBYSHORT, fiAllocLen, fiData, fxHeader, GetDlen(), Set(), and TRACE. Referenced by TGo4MbsEvent::Clear(), ReAllocate(), and ~TGo4MbsSubEvent(). |
|
Method called by the event owner (analysis step) to clear the event element.
Reimplemented from TGo4EventElement. Definition at line 71 of file TGo4MbsSubEvent.cxx. References GetControl(), GetDataField(), GetDlen(), GetProcid(), GetSubcrate(), GetSubtype(), GetType(), and TRACE. Referenced by TGo4MbsEvent::PrintEvent(). |
|
Definition at line 123 of file TGo4MbsSubEvent.cxx. References SetDlen(), SetSubtype(), and SetType(). Referenced by Clear(). |
|
Definition at line 47 of file TGo4MbsSubEvent.h. References TGo4GSIEventHeader::fiDlen, TGo4SubEventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsSubEvent(), and Set(). |
|
Definition at line 48 of file TGo4MbsSubEvent.h. References TGo4GSIEventHeader::fiDlen, TGo4SubEventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4SimpleEventProcessor::BuildSimpleEvent(), Clear(), GetIntLen(), PrintEvent(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), TMeshUnpackProc::UnpackBranch3(), and TXXXUnpackProc::XXXUnpack(). |
|
Definition at line 49 of file TGo4MbsSubEvent.h. References GetDlen(). Referenced by TXXXProc::BuildEvent(), and TXXXUnpackProc::XXXUnpack(). |
|
Definition at line 51 of file TGo4MbsSubEvent.h. References TGo4GSIEventHeader::fsType, TGo4SubEventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 52 of file TGo4MbsSubEvent.h. References TGo4GSIEventHeader::fsType, TGo4SubEventHeader10::fxGSIHeader, and fxHeader. Referenced by PrintEvent(). |
|
Definition at line 54 of file TGo4MbsSubEvent.h. References TGo4GSIEventHeader::fsSubtype, TGo4SubEventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 55 of file TGo4MbsSubEvent.h. References TGo4GSIEventHeader::fsSubtype, TGo4SubEventHeader10::fxGSIHeader, and fxHeader. Referenced by PrintEvent(). |
|
Definition at line 57 of file TGo4MbsSubEvent.h. References TGo4SubEventHeader10::fsProcid, and fxHeader. Referenced by TGo4MbsEvent::TGo4MbsEvent(). |
|
Definition at line 58 of file TGo4MbsSubEvent.h. References TGo4SubEventHeader10::fsProcid, and fxHeader. Referenced by TGo4MbsSource::BuildMbsSubEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), TGo4MbsEvent::GetSubEvent(), and PrintEvent(). |
|
Definition at line 60 of file TGo4MbsSubEvent.h. References TGo4SubEventHeader10::fcSubcrate, and fxHeader. Referenced by TGo4MbsEvent::TGo4MbsEvent(). |
|
Definition at line 61 of file TGo4MbsSubEvent.h. References TGo4SubEventHeader10::fcSubcrate, and fxHeader. Referenced by TXXXProc::BuildEvent(), TGo4MbsSource::BuildMbsSubEvent(), TGo4MbsEvent::GetSubEvent(), PrintEvent(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), TMeshUnpackProc::UnpackBranch3(), and TXXXUnpackProc::XXXUnpack(). |
|
Definition at line 63 of file TGo4MbsSubEvent.h. References TGo4SubEventHeader10::fcControl, and fxHeader. Referenced by TGo4MbsEvent::TGo4MbsEvent(). |
|
Definition at line 64 of file TGo4MbsSubEvent.h. References TGo4SubEventHeader10::fcControl, and fxHeader. Referenced by TGo4MbsSource::BuildMbsSubEvent(), TGo4MbsEvent::GetSubEvent(), and PrintEvent(). |
|
Return length of allocated memory for data field.
Definition at line 67 of file TGo4MbsSubEvent.h. References fiAllocLen. Referenced by Data(), and ~TGo4MbsSubEvent(). |
|
Direct access to the fiData field pointer. User has to care about allocated range as specified in fiAllocLen. Definition at line 71 of file TGo4MbsSubEvent.h. References fiData. Referenced by TXXXProc::BuildEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), PrintEvent(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), TMeshUnpackProc::UnpackBranch3(), and TXXXUnpackProc::XXXUnpack(). |
|
Returns the value at position i in the fiData field. If Index i is out of DLen range, zero is returned. Definition at line 75 of file TGo4MbsSubEvent.h. References fiData, and GetAllocatedLength(). |
|
true if this subevent was filled since the last Clear()
Definition at line 79 of file TGo4MbsSubEvent.h. References fbIsFilled. Referenced by TGo4MbsEvent::NextSubEvent(). |
|
Allocate the data field with newsize. Free the previously allocated field before, and set new fiAllocLen value. Definition at line 167 of file TGo4MbsSubEvent.cxx. References Clear(), TGo4Log::Debug(), fbIsDataOwner, fiAllocLen, fiData, and TRACE. Referenced by TGo4MbsSource::BuildMbsSubEvent(). |
|
Definition at line 26 of file TGo4MbsSubEvent.h. |
|
True if this subevent has already been filled in this event cycle. For subsequent subevents of identical header ids, prevents overwriting. Definition at line 89 of file TGo4MbsSubEvent.h. Referenced by TGo4MbsSource::BuildMbsSubEvent(), Clear(), and IsFilled(). |
|
True if subevent owns data field.
Definition at line 92 of file TGo4MbsSubEvent.h. Referenced by TGo4MbsSource::BuildMbsSubEvent(), Clear(), ReAllocate(), TGo4MbsSubEvent(), and ~TGo4MbsSubEvent(). |
|
Definition at line 95 of file TGo4MbsSubEvent.h. Referenced by TGo4MbsSource::BuildMbsSubEvent(), Clear(), GetControl(), GetDlen(), GetProcid(), GetSubcrate(), GetSubtype(), GetType(), SetControl(), SetDlen(), SetProcid(), SetSubcrate(), SetSubtype(), and SetType(). |
|
Length of the allocated data field. Is _not_ equal to the subevent data length which can be smaller. On filling the subevent, it is tested if the source data fits into the already allocated field; if the source data is larger, we will re-allocate the field with the larger size before filling it. If the source data is smaller, we leave the data field as is and use only the first DLen words. Definition at line 105 of file TGo4MbsSubEvent.h. Referenced by TGo4MbsSource::BuildMbsSubEvent(), Clear(), GetAllocatedLength(), ReAllocate(), and TGo4MbsSubEvent(). |
|
Pointer to external integer field containing the subevent data. Length of this field may be changed dynamically depending on the maximum length of the incoming subevent of this type. Definition at line 111 of file TGo4MbsSubEvent.h. Referenced by TGo4MbsSource::BuildMbsSubEvent(), Clear(), Data(), GetDataField(), ReAllocate(), TGo4MbsSubEvent(), and ~TGo4MbsSubEvent(). |