Project
Loading...
Searching...
No Matches
Cluster.cxx
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
18namespace o2
19{
20namespace mid
21{
22void Cluster::setFired(int cathode, bool isFired)
23{
24 firedCathodes = (firedCathodes & ~(1 << cathode)) | (isFired << cathode);
25}
26
27std::ostream& operator<<(std::ostream& os, const Cluster& data)
28{
30 os << "deId: " << static_cast<int>(data.deId) << " position: (" << data.xCoor << ", " << data.yCoor << ", " << data.zCoor << ") resolution: (" << data.xErr << ", " << data.yErr << ") fired BP: " << data.isFired(0) << " NBP: " << data.isFired(1);
31 return os;
32}
33
34} // namespace mid
35} // namespace o2
Reconstructed MID cluster.
GLboolean * data
Definition glcorearb.h:298
std::ostream & operator<<(std::ostream &os, const Cluster &data)
Definition Cluster.cxx:27
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
cluster structure for MID
Definition Cluster.h:30
bool isFired(int cathode) const
Checks if cathode was fired.
Definition Cluster.h:69
uint8_t firedCathodes
Fired cathodes.
Definition Cluster.h:37