ATLAS Offline Software
GenericResult.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #pragma once
6 // emacs -*- c++ -*-
7 #ifndef TRIGSTEERINGEVENT_GENERICRESULT_H
8 #define TRIGSTEERINGEVENT_GENERICRESULT_H
9 
18 #include <stdint.h>
19 #include "xAODCore/CLASS_DEF.h"
20 
22  public:
24  virtual ~GenericResult(){}
29  virtual bool accepted() const = 0;
30 
35  virtual bool error() const = 0;
36 
41  virtual uint32_t error_bits() const = 0;
42 
43  /*
44  virtual bctime() = 0;
45  virtual char lvl1confirmation() = 0;
46  */
47 
53  virtual bool serialize( std::vector<uint32_t>& output ) = 0;
54 
68  virtual bool serialize( uint32_t*& output, int& data_size, const int max_size=-1, const unsigned int mod_id = 0 ) = 0;
69 
75  virtual bool deserialize( const std::vector<uint32_t>& source ) = 0;
76 
82  virtual bool deserialize( uint32_t* source, int data_size ) = 0;
83 };
84 
85 CLASS_DEF ( GenericResult, 102650969, 1)
86 
87 #endif // TRIGSTEERINGEVENT_GENERICRESULT_H
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
GenericResult::deserialize
virtual bool deserialize(const std::vector< uint32_t > &source)=0
unpacking raw result into the usable high level object
GenericResult::serialize
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
GenericResult::deserialize
virtual bool deserialize(uint32_t *source, int data_size)=0
more efficient version of above deserialize, using raw C arrays
GenericResult::accepted
virtual bool accepted() const =0
reject or accept
GenericResult::error_bits
virtual uint32_t error_bits() const =0
bit flags to explain problems during processing
GenericResult::~GenericResult
virtual ~GenericResult()
Definition: GenericResult.h:24
GenericResult::GenericResult
GenericResult()
Definition: GenericResult.h:23
GenericResult::serialize
virtual bool serialize(std::vector< uint32_t > &output)=0
get the result of the processing as the raw vector of 32 bit unsigned integers
GenericResult::error
virtual bool error() const =0
problems during processing
merge.output
output
Definition: merge.py:17
CLASS_DEF.h
File providing the different SG_BASE macros.
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
copySelective.source
string source
Definition: copySelective.py:32
GenericResult
the interface class for all HLT, CALIB, MONITORING results The class define the interface between PSC...
Definition: GenericResult.h:21