| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DaqBenchmark Class Reference

#include <DaqBenchmark.h>

Inheritance diagram for DaqBenchmark:

[legend]
Collaboration diagram for DaqBenchmark:
[legend]
List of all members.

Public Member Functions

 DaqBenchmark (const std::string &name, ISvcLocator *pSvcLocator)
 Create an instance of this class.
 ~DaqBenchmark ()
 Destroy this instance of the class.
virtual StatusCode initialize ()
 Initializes this module.
virtual StatusCode finalize ()
 Finalizes this module.
virtual StatusCode execute ()
 Called for each event.
virtual StatusCode sysExecute ()
void put (IDataProviderSvc *svc, DataObject *object, const std::string &address, const bool useRootInTES=true) const
void put (DataObject *object, const std::string &address, const bool useRootInTES=true) const
Gaudi::Utils::GetData< TYPE
>::return_type 
get (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const
Gaudi::Utils::GetData< TYPE
>::return_type 
get (const std::string &location, const bool useRootInTES=true) const
TYPE * getDet (IDataProviderSvc *svc, const std::string &location) const
TYPE * getDet (const std::string &location) const
bool exist (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const
bool exist (const std::string &location, const bool useRootInTES=true) const
bool existDet (IDataProviderSvc *svc, const std::string &location) const
bool existDet (const std::string &location) const
TYPE * getOrCreate (IDataProviderSvc *svc, const std::string &location, const bool useRootInTES=true) const
TYPE * getOrCreate (const std::string &location, const bool useRootInTES=true) const
bool registerContext () const
INTupleSvcevtColSvc () const
IAlgContextSvccontextSvc () const
TOOL * tool (const std::string &type, const std::string &name, const IInterface *parent=0, bool create=true) const
TOOL * tool (const std::string &type, const IInterface *parent=0, bool create=true) const
SERVICE * svc (const std::string &name, const bool create=true) const
IUpdateManagerSvcupdMgrSvc () const
IDataProviderSvcfastContainersSvc () const
StatusCode Error (const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
StatusCode Warning (const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
StatusCode Print (const std::string &msg, const StatusCode st=StatusCode::SUCCESS, const MSG::Level lev=MSG::INFO) const
StatusCode Assert (const bool ok, const std::string &message="", const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
StatusCode Assert (const bool ok, const char *message, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
StatusCode Exception (const std::string &msg, const GaudiException &exc, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
StatusCode Exception (const std::string &msg, const std::exception &exc, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
StatusCode Exception (const std::string &msg="no message", const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
MsgStreammsgStream (const MSG::Level level) const
MsgStreamalways () const
MsgStreamfatal () const
MsgStreamerr () const
MsgStreamerror () const
MsgStreamwarning () const
MsgStreaminfo () const
MsgStreamdebug () const
MsgStreamverbose () const
MsgStreammsg () const
const Statisticscounters () const
StatEntitycounter (const std::string &tag) const
MSG::Level msgLevel () const
bool msgLevel (const MSG::Level level) const
void resetMsgStream () const
bool typePrint () const
bool propsPrint () const
bool statPrint () const
bool errorsPrint () const
long printStat (const MSG::Level level=MSG::ALWAYS) const
long printErrors (const MSG::Level level=MSG::ALWAYS) const
long printProps (const MSG::Level level=MSG::ALWAYS) const
void registerCondition (const std::string &condition, StatusCode(CallerClass::*mf)()=NULL)
void registerCondition (const std::string &condition, CondType *&condPtrDest, StatusCode(CallerClass::*mf)()=NULL)
void registerCondition (char *condition, StatusCode(CallerClass::*mf)()=NULL)
void registerCondition (TargetClass *condition, StatusCode(CallerClass::*mf)()=NULL)
StatusCode runUpdate ()
TransientFastContainer< T > * getFastContainer (const std::string &location, typename TransientFastContainer< T >::size_type initial=0)
StatusCode release (const IInterface *interface) const
unsigned long release ()
const std::string & context () const
const std::string & rootInTES () const
double globalTimeOffset () const
virtual StatusCode sysStart ()
virtual StatusCode sysInitialize ()
virtual StatusCode sysReinitialize ()
virtual StatusCode sysRestart ()
virtual StatusCode sysStop ()
virtual StatusCode sysFinalize ()
virtual StatusCode sysBeginRun ()
virtual StatusCode sysEndRun ()
virtual const std::string & name () const
virtual const std::string & version () const
virtual StatusCode configure ()
virtual StatusCode terminate ()
virtual StatusCode start ()
virtual StatusCode stop ()
virtual StatusCode reinitialize ()
virtual StatusCode restart ()
virtual bool isExecuted () const
virtual void setExecuted (bool state)
virtual void resetExecuted ()
virtual StatusCode beginRun ()
virtual StatusCode endRun ()
virtual Gaudi::StateMachine::State FSMState () const
virtual Gaudi::StateMachine::State targetFSMState () const
virtual bool isEnabled () const
virtual bool filterPassed () const
virtual void setFilterPassed (bool state)
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
void setOutputLevel (int level)
IAuditorSvcauditorSvc () const
IChronoStatSvcchronoSvc () const
IChronoStatSvcchronoStatService () const
IDataProviderSvcdetSvc () const
IDataProviderSvcdetDataService () const
IConversionSvcdetCnvSvc () const
IConversionSvcdetDataCnvService () const
IDataProviderSvceventSvc () const
IDataProviderSvcevtSvc () const
IDataProviderSvceventDataService () const
IConversionSvceventCnvSvc () const
IConversionSvceventDataCnvService () const
IHistogramSvchistoSvc () const
IHistogramSvchistogramDataService () const
IMessageSvcmsgSvc () const
IMessageSvcmessageService () const
INTupleSvcntupleSvc () const
INTupleSvcntupleService () const
IRndmGenSvcrandSvc () const
IToolSvctoolSvc () const
IExceptionSvcexceptionSvc () const
ISvcLocatorserviceLocator () const
ISvcLocatorsvcLoc () const
StatusCode createSubAlgorithm (const std::string &type, const std::string &name, Algorithm *&pSubAlg)
std::vector< Algorithm * > * subAlgorithms () const
virtual StatusCode setProperty (const Property &p)
virtual StatusCode setProperty (const std::string &s)
virtual StatusCode setProperty (const std::string &n, const std::string &v)
StatusCode setProperty (const std::string &name, const TYPE &value)
virtual StatusCode getProperty (Property *p) const
virtual const PropertygetProperty (const std::string &name) const
virtual StatusCode getProperty (const std::string &n, std::string &v) const
virtual const std::vector<
Property * > & 
getProperties () const
StatusCode setProperties ()
PropertydeclareProperty (const std::string &name, T &property, const std::string &doc="none") const
PropertydeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const
IMonitorSvcmonitorSvc () const
void declareInfo (const std::string &name, const T &var, const std::string &desc) const
void declareInfo (const std::string &name, const std::string &format, const void *var, int size, const std::string &desc) const
unsigned long addRef ()
StatusCode queryInterface (const InterfaceID &riid, void **)

Static Public Member Functions

static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()

Public Attributes

 SUCCESS
 NO_INTERFACE
 VERSMISMATCH
 LAST_ERROR

Protected Types

typedef std::map< std::string,
StatEntity
Statistics
typedef std::map< std::string,
unsigned int > 
Counter
typedef std::vector< IAlgTool * > AlgTools
typedef std::pair< IInterface *,
std::string > 
ServiceEntry
typedef std::vector< ServiceEntryServices

Protected Member Functions

StatusCode releaseTool (const IAlgTool *tool) const
StatusCode releaseSvc (const IInterface *svc) const
bool isInitialized () const
bool isFinalized () const
int outputLevel () const
IntegerPropertyoutputLevelProperty ()
void initOutputLevel (Property &prop)

Static Protected Attributes

static const bool IgnoreRootInTES
static const bool UseRootInTES

Private Member Functions

 DaqBenchmark ()
 Suppress default.
 DaqBenchmark (DaqBenchmark &rhs)
 Suppress default.
DaqBenchmarkoperator= (DaqBenchmark &rhs)
 Suppress default.
TH1F ** getSlotLowGainHistograms (const unsigned int slot)
 Returns the High Range ADC histograms for the supplied slot.
TH1F * getLowGainHistogram (TH1F **slotLowGainHistograms, const unsigned int slot, const unsigned int channelNumber)
 Returns the selected histograms from the set supplied.
TH1F ** getSlotHighGainHistograms (const unsigned int slot)
 Returns the High Range ADC histograms for the supplied slot.
TH1F * getHighGainHistogram (TH1F **slotHighGainHistograms, const unsigned int slot, const unsigned int channelNumber)
 Returns the selected histograms from the set supplied.
TH1F ** getSlotTdcHistograms (const unsigned int slot)
 Returns the TDC histograms for the supplied slot.
TH1F * getTdcHistogram (TH1F **slotTdcHistograms, const unsigned int slot, const unsigned int channelNumber)
 Returns the selected histogram from the set supplied.
TH1F ** getSlotHistogram (TH1F ***histograms, const unsigned int slot)
 Returns the selected sub-set of histograms from the specified set.
TH2F ** getSlotFadcHistograms (const unsigned int slot)
 Returns the FADC histograms for the supplied slot.
TH2F * getFadcHistogram (TH2F **slotFadcHistograms, const unsigned int slot, const unsigned int channelNumber)
 Returns the selected histogram from the set supplied.
TH2F ** getSlotHistogram (TH2F ***histograms, const unsigned int slot)
 Returns the selected sub-set of histograms from the specified set.
StatusCode handleDaqFormat (const DayaBay::ReadoutHeader &readoutHeader)
 Handles the benchmark code using the DaqFormat project.
void handleEvent (const DybDaq::EventReadout &event)
 Handles the EventReadout once it has been extracted from the TES.
void handleFragment (const DybDaq::RomFragment &fragment)
 Handles a RomFragment.
void handleFee (const DybDaq::FeeReadout &readout, const unsigned int slot)
 Handled the readout of FEE crate.
StatusCode handleReadoutEvent (const DayaBay::ReadoutHeader &readoutHeader)
 Handles the benchmark code using the ReadoutEvent project.
void handleEvent (const DayaBay::ReadoutPmtCrate &create)
 Handles the ReadoutPmtCrate once it has been extracted from the TES.
void handleChannel (const DayaBay::ReadoutPmtChannel &channel)
 Handles a ReadoutPmtChannel.
StatusCode handleDaqEvent (const DayaBay::ReadoutHeader &readoutHeader)
 Handles the benchmark code using the DaqEvent project.
void handleEvent (const DayaBay::DaqPmtCrate &crate)
 Handles DaqPmtCrate.
void handleFrame (const DayaBay::DaqLtbFrame &frame)
 Handles a DaqLtbFrame.
void handleChannel (const DayaBay::DaqPmtChannel &channel)
 Handles a DaqPmtChannel.
void handleChannel (const DayaBay::DaqFadcChannel &channel)
 Handles a DaqFadcChannel.

Private Attributes

IStatisticsSvc * m_statsSvc
 The Statistics service used by this module.
TH1F *** m_feeLowGainHistograms
 The set of historgrams for the FEE high range ADCs.
TH1F *** m_feeHighGainHistograms
 The set of historgrams for the FEE low range ADCs.
TH1F *** m_feeTdcHistograms
 The set of historgrams for the FEE TDCs.
TH2F *** m_fadcHistograms
 The set of historgrams for the FADCs.
unsigned long m_eventCount
 The number of event seen so far by this module.
unsigned long m_payloadLength
 The number of bytes seen so far by this module.
time_t m_beginTime
 The time this module was initialized.
time_t m_firstEventTime
 The trigger time of the first event seen by this module.
time_t m_lastEventTime
 The trigger time of the last event seen by this module.
bool m_useDaqFormat
 True if the DaqFormat products should be used in the benchmark.
bool m_useDaqEvent
 True if the DaqEvent products should be used in the benchmark.
bool m_useReadoutEvent
 True if the ReadoutEvent products should be used in the benchmark.

Detailed Description

Definition at line 40 of file DaqBenchmark.h.


Constructor & Destructor Documentation

DaqBenchmark::DaqBenchmark ( const std::string &  name,
ISvcLocator pSvcLocator 
)

Create an instance of this class.

DaqBenchmark::~DaqBenchmark (  ) 

Destroy this instance of the class.

DaqBenchmark::DaqBenchmark (  )  [private]

Suppress default.

DaqBenchmark::DaqBenchmark ( DaqBenchmark rhs  )  [private]

Suppress default.


Member Function Documentation

virtual StatusCode DaqBenchmark::initialize (  )  [virtual]

Initializes this module.

Reimplemented from GaudiAlgorithm.

virtual StatusCode DaqBenchmark::finalize (  )  [virtual]

Finalizes this module.

Reimplemented from GaudiAlgorithm.

virtual StatusCode DaqBenchmark::execute (  )  [virtual]

Called for each event.

Reimplemented from GaudiAlgorithm.

DaqBenchmark& DaqBenchmark::operator= ( DaqBenchmark rhs  )  [private]

Suppress default.

TH1F** DaqBenchmark::getSlotLowGainHistograms ( const unsigned int  slot  )  [private]

Returns the High Range ADC histograms for the supplied slot.

TH1F* DaqBenchmark::getLowGainHistogram ( TH1F **  slotLowGainHistograms,
const unsigned int  slot,
const unsigned int  channelNumber 
) [private]

Returns the selected histograms from the set supplied.

TH1F** DaqBenchmark::getSlotHighGainHistograms ( const unsigned int  slot  )  [private]

Returns the High Range ADC histograms for the supplied slot.

TH1F* DaqBenchmark::getHighGainHistogram ( TH1F **  slotHighGainHistograms,
const unsigned int  slot,
const unsigned int  channelNumber 
) [private]

Returns the selected histograms from the set supplied.

TH1F** DaqBenchmark::getSlotTdcHistograms ( const unsigned int  slot  )  [private]

Returns the TDC histograms for the supplied slot.

TH1F* DaqBenchmark::getTdcHistogram ( TH1F **  slotTdcHistograms,
const unsigned int  slot,
const unsigned int  channelNumber 
) [private]

Returns the selected histogram from the set supplied.

TH1F** DaqBenchmark::getSlotHistogram ( TH1F ***  histograms,
const unsigned int  slot 
) [private]

Returns the selected sub-set of histograms from the specified set.

TH2F** DaqBenchmark::getSlotFadcHistograms ( const unsigned int  slot  )  [private]

Returns the FADC histograms for the supplied slot.

TH2F* DaqBenchmark::getFadcHistogram ( TH2F **  slotFadcHistograms,
const unsigned int  slot,
const unsigned int  channelNumber 
) [private]

Returns the selected histogram from the set supplied.

TH2F** DaqBenchmark::getSlotHistogram ( TH2F ***  histograms,
const unsigned int  slot 
) [private]

Returns the selected sub-set of histograms from the specified set.

StatusCode DaqBenchmark::handleDaqFormat ( const DayaBay::ReadoutHeader readoutHeader  )  [private]

Handles the benchmark code using the DaqFormat project.

void DaqBenchmark::handleEvent ( const DybDaq::EventReadout event  )  [private]

Handles the EventReadout once it has been extracted from the TES.

void DaqBenchmark::handleFragment ( const DybDaq::RomFragment fragment  )  [private]

Handles a RomFragment.

void DaqBenchmark::handleFee ( const DybDaq::FeeReadout readout,
const unsigned int  slot 
) [private]

Handled the readout of FEE crate.

StatusCode DaqBenchmark::handleReadoutEvent ( const DayaBay::ReadoutHeader readoutHeader  )  [private]

Handles the benchmark code using the ReadoutEvent project.

void DaqBenchmark::handleEvent ( const DayaBay::ReadoutPmtCrate create  )  [private]

Handles the ReadoutPmtCrate once it has been extracted from the TES.

void DaqBenchmark::handleChannel ( const DayaBay::ReadoutPmtChannel channel  )  [private]

Handles a ReadoutPmtChannel.

StatusCode DaqBenchmark::handleDaqEvent ( const DayaBay::ReadoutHeader readoutHeader  )  [private]

Handles the benchmark code using the DaqEvent project.

void DaqBenchmark::handleEvent ( const DayaBay::DaqPmtCrate crate  )  [private]

Handles DaqPmtCrate.

void DaqBenchmark::handleFrame ( const DayaBay::DaqLtbFrame frame  )  [private]

Handles a DaqLtbFrame.

void DaqBenchmark::handleChannel ( const DayaBay::DaqPmtChannel channel  )  [private]

Handles a DaqPmtChannel.

void DaqBenchmark::handleChannel ( const DayaBay::DaqFadcChannel channel  )  [private]

Handles a DaqFadcChannel.


Member Data Documentation

IStatisticsSvc* DaqBenchmark::m_statsSvc [private]

The Statistics service used by this module.

Definition at line 212 of file DaqBenchmark.h.

TH1F*** DaqBenchmark::m_feeLowGainHistograms [private]

The set of historgrams for the FEE high range ADCs.

Definition at line 217 of file DaqBenchmark.h.

TH1F*** DaqBenchmark::m_feeHighGainHistograms [private]

The set of historgrams for the FEE low range ADCs.

Definition at line 222 of file DaqBenchmark.h.

TH1F*** DaqBenchmark::m_feeTdcHistograms [private]

The set of historgrams for the FEE TDCs.

Definition at line 227 of file DaqBenchmark.h.

TH2F*** DaqBenchmark::m_fadcHistograms [private]

The set of historgrams for the FADCs.

Definition at line 232 of file DaqBenchmark.h.

unsigned long DaqBenchmark::m_eventCount [private]

The number of event seen so far by this module.

Definition at line 237 of file DaqBenchmark.h.

unsigned long DaqBenchmark::m_payloadLength [private]

The number of bytes seen so far by this module.

Definition at line 242 of file DaqBenchmark.h.

time_t DaqBenchmark::m_beginTime [private]

The time this module was initialized.

Definition at line 247 of file DaqBenchmark.h.

time_t DaqBenchmark::m_firstEventTime [private]

The trigger time of the first event seen by this module.

Definition at line 252 of file DaqBenchmark.h.

time_t DaqBenchmark::m_lastEventTime [private]

The trigger time of the last event seen by this module.

Definition at line 257 of file DaqBenchmark.h.

bool DaqBenchmark::m_useDaqFormat [private]

True if the DaqFormat products should be used in the benchmark.

Definition at line 262 of file DaqBenchmark.h.

bool DaqBenchmark::m_useDaqEvent [private]

True if the DaqEvent products should be used in the benchmark.

Definition at line 267 of file DaqBenchmark.h.

bool DaqBenchmark::m_useReadoutEvent [private]

True if the ReadoutEvent products should be used in the benchmark.

Definition at line 272 of file DaqBenchmark.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:46:30 2011 for DaqFormatModules by doxygen 1.4.7