Project
Loading...
Searching...
No Matches
Efficiency.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_EFFICIENCY_H
18#define O2_MID_EFFICIENCY_H
19
20#include <gsl/span>
21#include <array>
24namespace o2
25{
26namespace mid
27{
28
31{
32 public:
33 enum class ElementType {
34 Board,
35 RPC,
36 Plane
37 };
38
41 void process(gsl::span<const mid::Track> midTracks);
42
46 const ChamberEfficiency& getChamberEfficiency(ElementType et) const { return mEff[static_cast<int>(et)]; }
47
48 private:
49 std::array<ChamberEfficiency, 3> mEff;
50};
51
52} // namespace mid
53} // namespace o2
54
55#endif // O2_MID_EFFICIENCY_H
Measured values of the RPC efficiency.
Reconstructed MID track.
Class to estimate the MID chamber efficiency.
Definition Efficiency.h:31
const ChamberEfficiency & getChamberEfficiency(ElementType et) const
Returns the chamber efficiency.
Definition Efficiency.h:46
@ Plane
Efficiency per RPC.
@ RPC
Efficiency per board.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...