Project
Loading...
Searching...
No Matches
MeanVertexData.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 MEAN_VERTEX_DATA_H_
13#define MEAN_VERTEX_DATA_H_
14
17#include <array>
18#include <deque>
19#include <gsl/span>
20
21namespace o2
22{
23namespace calibration
24{
25
27
29 int entries = 0;
30 std::vector<std::array<float, 3>> histoVtx{0};
31 std::array<double, 3> means{};
32 std::array<double, 3> meanSquares{};
33 bool mVerbose = false;
34
35 MeanVertexData() = default;
36
38 {
39 histoVtx.clear();
40 }
41 double getMean(int i) const { return means[i]; }
42 double getRMS(int i) const;
47
48 //_____________________________________________
49
50 size_t getEntries() const { return entries; }
51 void print() const;
52 void fill(const gsl::span<const PVertex> data);
53 void merge(const MeanVertexData* prev);
54 void subtract(const MeanVertexData* prev);
55 void useVerboseMode(bool flag) { mVerbose = flag; }
56
58};
59
60} // end namespace calibration
61} // end namespace o2
62
63#endif /* MEAN_VERTEX_DATA_H_ */
int32_t i
GLboolean * data
Definition glcorearb.h:298
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
void subtract(const MeanVertexData *prev)
std::array< double, 3 > meanSquares
MeanVertexData(const MeanVertexData &other)=default
MeanVertexData(MeanVertexData &&other)=default
std::vector< std::array< float, 3 > > histoVtx
ClassDefNV(MeanVertexData, 1)
MeanVertexData & operator=(MeanVertexData &other)=default
void fill(const gsl::span< const PVertex > data)
void merge(const MeanVertexData *prev)
MeanVertexData & operator=(MeanVertexData &&other)=default
std::array< double, 3 > means
VectorOfTObjectPtrs other