Project
Loading...
Searching...
No Matches
TriggerDCS.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_EMCAL_TRIGGERDCS_H
13#define ALICEO2_EMCAL_TRIGGERDCS_H
14
15#include <iosfwd>
16#include <array>
17#include <Rtypes.h>
18
21
22namespace o2
23{
24
25namespace emcal
26{
27
35
37{
38 public:
40 TriggerDCS() = default;
41
43 ~TriggerDCS() = default;
44
46 TriggerDCS(const TriggerDCS& trg) = default;
47
50
56 bool operator==(const TriggerDCS& other) const;
57
60 std::string toJSON() const;
61
62 void setSTUEMCal(TriggerSTUDCS so) { mSTUEMCal = so; }
63 void setSTUDCal(TriggerSTUDCS so) { mSTUDCAL = so; }
64
65 std::array<TriggerTRUDCS, 46> getTRUArr() const { return mTRUArr; }
66
67 TriggerSTUDCS getSTUDCSEMCal() const { return mSTUEMCal; }
68 TriggerSTUDCS getSTUDCSDCal() const { return mSTUDCAL; }
69 TriggerTRUDCS getTRUDCS(Int_t iTRU) const { return mTRUArr.at(iTRU); }
70
71 void setTRU(Int_t iTRU, TriggerTRUDCS a) { mTRUArr.at(iTRU) = a; }
72
77 bool isTRUEnabled(int iTRU) const;
78
79 private:
80 TriggerSTUDCS mSTUEMCal;
81 TriggerSTUDCS mSTUDCAL;
82 std::array<TriggerTRUDCS, 46> mTRUArr;
83
84 ClassDefNV(TriggerDCS, 1);
85};
86
91std::ostream& operator<<(std::ostream& in, const TriggerDCS& dcs);
92
93} // namespace emcal
94
95} // namespace o2
96
97#endif
CCDB container for the DCS data in EMCAL.
Definition TriggerDCS.h:37
bool isTRUEnabled(int iTRU) const
Check whether TRU is enabled.
std::array< TriggerTRUDCS, 46 > getTRUArr() const
Definition TriggerDCS.h:65
~TriggerDCS()=default
Destructor.
TriggerDCS()=default
default constructor
void setTRU(Int_t iTRU, TriggerTRUDCS a)
Definition TriggerDCS.h:71
TriggerSTUDCS getSTUDCSEMCal() const
Definition TriggerDCS.h:67
void setSTUEMCal(TriggerSTUDCS so)
Definition TriggerDCS.h:62
TriggerSTUDCS getSTUDCSDCal() const
Definition TriggerDCS.h:68
TriggerDCS(const TriggerDCS &trg)=default
copy constructor
void setSTUDCal(TriggerSTUDCS so)
Definition TriggerDCS.h:63
TriggerDCS & operator=(const TriggerDCS &source)=default
Assignment operator.
bool operator==(const TriggerDCS &other) const
Comparison of two DCS data.
TriggerTRUDCS getTRUDCS(Int_t iTRU) const
Definition TriggerDCS.h:69
std::string toJSON() const
Serialize object to JSON format.
CCDB container for STU DCS data in EMCAL.
CCDB container for TRU DCS data in EMCAL.
GLsizei GLsizei GLchar * source
Definition glcorearb.h:798
GLboolean GLboolean GLboolean GLboolean a
Definition glcorearb.h:1233
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.
Definition Cell.cxx:355
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other