Project
Loading...
Searching...
No Matches
MCClusterLabel.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
16
17#ifndef O2_MID_MCCLUSTERLABEL_H
18#define O2_MID_MCCLUSTERLABEL_H
19
20#include <array>
22
23namespace o2
24{
25namespace mid
26{
28{
29 private:
30 std::array<bool, 2> mFiredCathodes;
31
32 public:
33 MCClusterLabel() = default;
34 MCClusterLabel(int trackID, int eventID, int srcID, bool isFiredBP, bool isFiredNBP);
35
37 void setIsFiredBP(bool isFired) { mFiredCathodes[0] = isFired; };
39 bool isFiredBP() const { return mFiredCathodes[0]; }
40
42 void setIsFiredNBP(bool isFired) { mFiredCathodes[1] = isFired; };
44 bool isFiredNBP() const { return mFiredCathodes[1]; }
45
47};
48} // namespace mid
49} // namespace o2
50
51#endif
void setIsFiredNBP(bool isFired)
Sets flag stating if the non-bending plane was fired.
void setIsFiredBP(bool isFired)
Sets flag stating if the bending plane was fired.
ClassDefNV(MCClusterLabel, 1)
bool isFiredBP() const
Gets flag stating if the bending plane was fired.
bool isFiredNBP() const
Gets flag stating if the non-bending plane was fired.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...