GenericResult Class Reference

the interface class for all HLT, CALIB, MONITORING results The class define the interface between PSC (PESA steering controllers) at Lvl2 and EF used to retrieve the information for processing in the Athena to be put in the (even or detector fragment) headers. More...

#include <GenericResult.h>

Inheritance diagram for GenericResult:
HLT::HLTResult

List of all members.

Public Member Functions

virtual bool accepted () const =0
 reject or accept
virtual bool error () const =0
 problems during processing
virtual uint32_t error_bits () const =0
 bit flags to explain problems during processing
virtual bool serialize (std::vector< uint32_t > &output)=0
 get the result of the processing as the raw vector of 32 bit unsigned integers
virtual bool serialize (uint32_t *&output, int &data_size, const int max_size=-1, const unsigned int mod_id=0)=0
 the optimized version of the above, works on plain C array the content is the same as in above
virtual bool deserialize (const std::vector< uint32_t > &source)=0
 unpacking raw result into the usable high level object
virtual bool deserialize (uint32_t *source, int data_size)=0
 more efficient version of above deserialize, using raw C arrays

Detailed Description

the interface class for all HLT, CALIB, MONITORING results The class define the interface between PSC (PESA steering controllers) at Lvl2 and EF used to retrieve the information for processing in the Athena to be put in the (even or detector fragment) headers.

Author:
Tomasz.Bold@cern.NSPMPLSch

Member Function Documentation

virtual bool GenericResult::accepted (  )  const [pure virtual]

reject or accept

Returns:
true if event is accepted

Implemented in HLT::HLTResult.

virtual bool GenericResult::deserialize ( uint32_t *  source,
int  data_size 
) [pure virtual]

more efficient version of above deserialize, using raw C arrays

Parameters:
source the address in memory where the data start
data_size is the size of the C array storing the result

Implemented in HLT::HLTResult.

virtual bool GenericResult::deserialize ( const std::vector< uint32_t > &  source  )  [pure virtual]

unpacking raw result into the usable high level object

Parameters:
source is a vector of serialized data
Returns:
status of the operation

Implemented in HLT::HLTResult.

virtual bool GenericResult::error (  )  const [pure virtual]

problems during processing

Returns:
true if there was an error during event processing

Implemented in HLT::HLTResult.

virtual uint32_t GenericResult::error_bits (  )  const [pure virtual]

bit flags to explain problems during processing

Returns:
some bits are set if there was na error

Implemented in HLT::HLTResult.

virtual bool GenericResult::serialize ( uint32_t *&  output,
int &  data_size,
const int  max_size = -1,
const unsigned int  mod_id = 0 
) [pure virtual]

the optimized version of the above, works on plain C array the content is the same as in above

See also:
serialize
Warning:
the space allocated inside this function must freed by caller
Parameters:
output place where the result will be stored
data_size the size of the used space of the output (not the allocated)
max_size is the maximum size the output can have, this is needed to handle Lvl2 limit for output size, -1 means no limit, and can be used by EF as well
mod_id is the rob module ID: this is used for data scouting events. mod_id = 0 means you are running on a full event.
Returns:
status of the operation

Implemented in HLT::HLTResult.

virtual bool GenericResult::serialize ( std::vector< uint32_t > &  output  )  [pure virtual]

get the result of the processing as the raw vector of 32 bit unsigned integers

Parameters:
output the place where to put the data
Returns:
status of the operation

Implemented in HLT::HLTResult.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1