ATLAS Offline Software
Loading...
Searching...
No Matches
GenericResult.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGSTEERINGEVENT_GENERICRESULT_H
6#define TRIGSTEERINGEVENT_GENERICRESULT_H
7
15
16#include "xAODCore/CLASS_DEF.h"
17
18#include <stdint.h>
19#include <vector>
20
21
23 public:
25 virtual ~GenericResult(){}
30 virtual bool accepted() const = 0;
31
36 virtual bool error() const = 0;
37
42 virtual uint32_t error_bits() const = 0;
43
44 /*
45 virtual bctime() = 0;
46 virtual char lvl1confirmation() = 0;
47 */
48
54 virtual bool serialize( std::vector<uint32_t>& output ) = 0;
55
69 virtual bool serialize( uint32_t*& output, int& data_size, const int max_size=-1, const unsigned int mod_id = 0 ) = 0;
70
76 virtual bool deserialize( const std::vector<uint32_t>& source ) = 0;
77
83 virtual bool deserialize( uint32_t* source, int data_size ) = 0;
84};
85
86CLASS_DEF ( GenericResult, 102650969, 1)
87
88#endif // TRIGSTEERINGEVENT_GENERICRESULT_H
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
File providing the different SG_BASE macros.
the interface class for all HLT, CALIB, MONITORING results The class define the interface between PSC...
virtual bool deserialize(const std::vector< uint32_t > &source)=0
unpacking raw result into the usable high level object
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(uint32_t *source, int data_size)=0
more efficient version of above deserialize, using raw C arrays
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 ~GenericResult()
virtual uint32_t error_bits() const =0
bit flags to explain problems during processing
virtual bool error() const =0
problems during processing
virtual bool accepted() const =0
reject or accept