Project
Loading...
Searching...
No Matches
DomainInfoHeader.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#ifndef O2_FRAMEWORK_DOMAININFOHEADER_H_
12#define O2_FRAMEWORK_DOMAININFOHEADER_H_
13
14#include "Headers/DataHeader.h"
16
17#include <cstdint>
18#include <memory>
19#include <cassert>
20
21namespace o2::framework
22{
23
24//__________________________________________________________________________________________________
28
29//__________________________________________________________________________________________________
36 constexpr static const o2::header::HeaderType sHeaderType = "DmnInfo";
37 static const uint32_t sVersion = 1;
38
40 : BaseHeader(sizeof(DomainInfoHeader), sHeaderType, header::gSerializationMethodNone, sVersion)
41 {
42 }
43
45
47 static const DomainInfoHeader* Get(const BaseHeader* baseHeader)
48 {
49 return (baseHeader->description == DomainInfoHeader::sHeaderType) ? static_cast<const DomainInfoHeader*>(baseHeader) : nullptr;
50 }
51};
52
53} // namespace o2::framework
54
55#endif // O2_FRAMEWORK_DOMAININFOHEADER_H_
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
a BaseHeader with domain information from the source
static const DomainInfoHeader * Get(const BaseHeader *baseHeader)
static constexpr const o2::header::HeaderType sHeaderType
DomainInfoHeader(const DomainInfoHeader &)=default
the base header struct Every header type must begin (i.e. derive) with this. Don't use this struct di...
Definition DataHeader.h:351
o2::header::HeaderType description
header type description, set by derived header
Definition DataHeader.h:385