Project
Loading...
Searching...
No Matches
TriggerRecord.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 ALICEO2_CPV_TRIGGERRECORD_H
13#define ALICEO2_CPV_TRIGGERRECORD_H
14
15#include <iosfwd>
16#include "Rtypes.h"
19
20namespace o2
21{
22
23namespace cpv
24{
25
30{
33
34 public:
35 TriggerRecord() = default;
36 TriggerRecord(const BCData& bunchcrossing, int firstentry, int nentries) : mBCData(bunchcrossing), mDataRange(firstentry, nentries) {}
37 ~TriggerRecord() = default;
38
39 void setBCData(const BCData& data) { mBCData = data; }
40 void setDataRange(int firstentry, int nentries) { mDataRange.set(firstentry, nentries); }
41 void setIndexFirstObject(int firstentry) { mDataRange.setFirstEntry(firstentry); }
42 void setNumberOfObjects(int nentries) { mDataRange.setEntries(nentries); }
43
44 const BCData& getBCData() const { return mBCData; }
45 BCData& getBCData() { return mBCData; }
46 int getNumberOfObjects() const { return mDataRange.getEntries(); }
47 int getFirstEntry() const { return mDataRange.getFirstEntry(); }
48
49 void PrintStream(std::ostream& stream) const;
50
51 private:
52 BCData mBCData;
53 DataRange mDataRange;
54
55 ClassDefNV(TriggerRecord, 1);
56};
57
58std::ostream& operator<<(std::ostream& stream, const TriggerRecord& trg);
59
60} // namespace cpv
61
62} // namespace o2
63
64#endif
Class to refer to the 1st entry and N elements of some group in the continuous container.
uint32_t bunchcrossing
Definition RawData.h:3
Header for data corresponding to the same hardware trigger adapted from DataFormatsEMCAL/TriggerRecor...
void setBCData(const BCData &data)
void setDataRange(int firstentry, int nentries)
int getNumberOfObjects() const
TriggerRecord(const BCData &bunchcrossing, int firstentry, int nentries)
void setNumberOfObjects(int nentries)
void PrintStream(std::ostream &stream) const
void setIndexFirstObject(int firstentry)
const BCData & getBCData() const
GLboolean * data
Definition glcorearb.h:298
GLuint GLuint stream
Definition glcorearb.h:1806
std::ostream & operator<<(std::ostream &in, const BadChannelMap &bcm)
Printing bad channel map on the stream.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...