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>
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 |
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.
virtual bool GenericResult::accepted | ( | ) | const [pure virtual] |
virtual bool GenericResult::deserialize | ( | uint32_t * | source, | |
int | data_size | |||
) | [pure virtual] |
more efficient version of above deserialize, using raw C arrays
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
source | is a vector of serialized data |
Implemented in HLT::HLTResult.
virtual bool GenericResult::error | ( | ) | const [pure virtual] |
problems during processing
Implemented in HLT::HLTResult.
virtual uint32_t GenericResult::error_bits | ( | ) | const [pure virtual] |
bit flags to explain problems during processing
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
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. |
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
output | the place where to put the data |
Implemented in HLT::HLTResult.