|
BmnRoot
|
Abstract base class for BMN digitisation tasks. More...
#include <BmnDigitize.h>
Public Member Functions | |
| BmnDigitize () | |
| Constructor. | |
| BmnDigitize (const char *name) | |
| Constructor with name. | |
| virtual | ~BmnDigitize () |
| Destructor. | |
| virtual void | FillCustomData (Double_t, Bool_t=kTRUE) |
| Fill custom data into time slice. | |
| void | GetEventInfo () |
| Get event information. | |
| Double_t | GetEventTime () const |
| Current event time @value Start time of current event [ns]. | |
| void | SendDigi (BmnDigi *digi) |
| Send a digi object to the DAQ. | |
| void | SetDaqBuffer (BmnDaqBuffer *buffer) |
| Set the DAQ buffer instance. | |
| void | SetEventMode (Bool_t choice=kTRUE) |
| Set event-by-event mode. | |
| virtual void | ResetArrays ()=0 |
| Reset the output arrays. | |
| virtual void | WriteDigi (BmnDigi *digi)=0 |
| Write a digi object to the output array. | |
Protected Attributes | |
| Bool_t | fEventMode |
| Int_t | fCurrentInput |
| Int_t | fCurrentEvent |
| Double_t | fCurrentEventTime |
| BmnDaqBuffer * | fDaqBuffer |
Abstract base class for BMN digitisation tasks.
Derived classes have to implement the abstract method WriteDigi.
Definition at line 22 of file BmnDigitize.h.
| BmnDigitize::BmnDigitize | ( | ) |
Constructor.
Definition at line 17 of file BmnDigitize.cxx.
| BmnDigitize::BmnDigitize | ( | const char * | name | ) |
|
virtual |
Destructor.
Definition at line 74 of file BmnDigitize.cxx.
|
inlinevirtual |
Fill custom data into time slice.
| fillTime | Time until data can be filled |
| limit | If kTRUE, only data up to fillTime will be treated; otherwise, all. |
This method allows the digitizer to implement additional functionality than writing digis and match objects. It will be called from BmnDaq.
Definition at line 48 of file BmnDigitize.h.
| void BmnDigitize::GetEventInfo | ( | ) |
Get event information.
Definition at line 43 of file BmnDigitize.cxx.
References fCurrentEvent, fCurrentEventTime, and fCurrentInput.
Referenced by BmnSsdDigitize::Exec().
|
inline |
Current event time @value Start time of current event [ns].
Definition at line 59 of file BmnDigitize.h.
References fCurrentEventTime.
|
pure virtual |
Reset the output arrays.
This method is called from BmnDaq after a tree->Fill is triggered. To be implemented by the derived class.
Implemented in BmnSsdDigitize.
| void BmnDigitize::SendDigi | ( | BmnDigi * | digi | ) |
Send a digi object to the DAQ.
| digi | Pointer to digi object |
Definition at line 65 of file BmnDigitize.cxx.
References fDaqBuffer, and BmnDaqBuffer::InsertData().
Referenced by BmnSsdDigitize::CreateDigi().
|
inline |
|
inline |
Set event-by-event mode.
| Choice | If kTRUE, the digitizer will run in event-by-event mode |
Definition at line 79 of file BmnDigitize.h.
References fEventMode.
|
pure virtual |
Write a digi object to the output array.
| digi | Pointer to digi object |
A copy of the digi object has to be created and inserted into the output array registered to the FairRootManager in the Init method. The corresponding match object has to be treated accordingly. This method will be called from BmnDaq.
Implemented in BmnSsdDigitize.
|
protected |
Definition at line 105 of file BmnDigitize.h.
Referenced by BmnSsdDigitize::Exec(), and GetEventInfo().
|
protected |
Definition at line 106 of file BmnDigitize.h.
Referenced by BmnSsdDigitize::Exec(), GetEventInfo(), and GetEventTime().
|
protected |
Definition at line 104 of file BmnDigitize.h.
Referenced by GetEventInfo().
|
protected |
Definition at line 107 of file BmnDigitize.h.
Referenced by SendDigi(), and SetDaqBuffer().
|
protected |
Definition at line 103 of file BmnDigitize.h.
Referenced by BmnSsdDigitize::Exec(), and SetEventMode().