QualityControl  1.5.1
O2 Data Quality Control Framework
Utilities.h
Go to the documentation of this file.
1 // Copyright CERN and copyright holders of ALICE O2. This software is
2 // distributed under the terms of the GNU General Public License v3 (GPL
3 // Version 3), copied verbatim in the file "COPYING".
4 //
5 // See http://alice-o2.web.cern.ch/license for full licensing information.
6 //
7 // In applying this license CERN does not waive the privileges and immunities
8 // granted to it by virtue of its status as an Intergovernmental Organization
9 // or submit itself to any jurisdiction.
10 
14 // Custom class used to store values in ttree which will be published to ccdb as monitoring object
15 // probably will be modified as you want
16 
17 #ifndef __O2_QC_FT0_UTILITIES_H__
18 #define __O2_QC_FT0_UTILITIES_H__
19 
20 #include <vector>
21 #include "DataFormatsFT0/Digit.h"
22 #include "DataFormatsFT0/ChannelData.h"
23 #include "Rtypes.h"
24 #include "TObject.h"
25 
27 {
28 
30 
31  EventWithChannelData() = default;
32  EventWithChannelData(int pEventID, uint16_t pBC, uint32_t pOrbit, double pTimestamp, const std::vector<o2::ft0::ChannelData>& pChannels)
33  : eventID(pEventID), bc(pBC), orbit(pOrbit), timestampNS(pTimestamp), channels(pChannels) {}
34 
35  int eventID = -1;
36  uint16_t bc = o2::InteractionRecord::DummyBC;
37  uint32_t orbit = o2::InteractionRecord::DummyOrbit;
38  double timestampNS = 0;
39  std::vector<o2::ft0::ChannelData> channels;
40 
41  int getEventID() const { return eventID; }
42  uint16_t getBC() const { return bc; }
43  uint32_t getOrbit() const { return orbit; }
44  double getTimestamp() const { return timestampNS; }
45  const std::vector<o2::ft0::ChannelData>& getChannels() const { return channels; }
46 
47  ClassDefNV(EventWithChannelData, 2);
48 };
49 
50 } // namespace o2::quality_control_modules::ft0
51 
52 #endif
Definition: BasicDigitQcTask.h:30