ATLAS Offline Software
Loading...
Searching...
No Matches
HLTExtraData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#pragma once
6#if !defined(TRIGSTEERINGEVENT_HLTEXTRADATA_H) && !defined(XAOD_STANDALONE)
7#define TRIGSTEERINGEVENT_HLTEXTRADATA_H
8
16
18#include <string>
19#include <vector>
20
21namespace HLT {
22
37 public:
43
47 HLTExtraData(const std::vector<uint32_t>& storage);
48
52
56 void serialize(std::vector<uint32_t>& storage);
57
61 void deserialize(const std::vector<uint32_t>& storage);
62
63
64 std::string appName;
65 uint32_t statusCode;
66 std::vector<uint32_t> anonymous;
67
68 private:
69
71 inline bool empty() {
72 return (appName.empty() && statusCode==0 && anonymous.empty());
73 }
74
76 };
77
79
80} // namespace HLT
81
82#endif
Class representing the HLT extra payload stored in HLT::HLTResult::getExtras()
bool empty()
Return true if all members have default values (no serialization needed)
std::vector< uint32_t > anonymous
For future use-cases (only use as last resort)
void deserialize(const std::vector< uint32_t > &storage)
Deserialize storage into members.
friend void swap(HLTExtraData &, HLTExtraData &)
HLTExtraData()
Construct empty object.
void serialize(std::vector< uint32_t > &storage)
Serialize the data and append it to the vector.
std::string appName
application name
HLTExtraData & operator=(HLTExtraData)
unified assignement op
TrigSteeringEvent::StringSerializer m_stringSerializer
uint32_t statusCode
various status codes (for prescale/COOL updates)
Utility class (not a tool or so) to serialize strings into stream of 32bit integers.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
void swap(HLTExtraData &, HLTExtraData &)