Project
Loading...
Searching...
No Matches
FeeLinkId.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
12#ifndef O2_MCH_RAW_ELECMAP_FEE_LINK_ID_H
13#define O2_MCH_RAW_ELECMAP_FEE_LINK_ID_H
14
15#include <cstdint>
16#include <iosfwd>
17
18namespace o2::mch::raw
19{
20
22{
23 public:
24 FeeLinkId(uint16_t feeId, uint8_t linkId);
25
26 uint16_t feeId() const { return mFeeId; }
27 uint8_t linkId() const { return mLinkId; }
28
29 private:
30 uint16_t mFeeId;
31 uint8_t mLinkId;
32};
33
34FeeLinkId decodeFeeLinkId(uint32_t code);
35
36uint32_t encode(const FeeLinkId& id);
37
38bool operator<(const FeeLinkId& f1, const FeeLinkId& f2);
39
40std::ostream& operator<<(std::ostream& os, const FeeLinkId& id);
41
42std::string asString(const FeeLinkId& feeLinkId);
43} // namespace o2::mch::raw
44
45#endif
uint8_t linkId() const
Definition FeeLinkId.h:27
uint16_t feeId() const
Definition FeeLinkId.h:26
FeeLinkId decodeFeeLinkId(uint32_t code)
Definition FeeLinkId.cxx:30
std::string asString(const SampaCluster &sc)
uint32_t encode(const DsDetId &id)
Create an integer code for the given id.
Definition DsDetId.cxx:28
bool operator<(const observer_ptr< W1 > &p1, const observer_ptr< W2 > &p2)
std::ostream & operator<<(std::ostream &stream, o2::InteractionRecord const &ir)