-
Notifications
You must be signed in to change notification settings - Fork 496
Expand file tree
/
Copy pathconfigurableCut.cxx
More file actions
83 lines (68 loc) · 1.62 KB
/
configurableCut.cxx
File metadata and controls
83 lines (68 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Copyright CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See http://alice-o2.web.cern.ch/license for full licensing information.
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
#include "Analysis/configurableCut.h"
#include <iostream>
std::ostream& operator<<(std::ostream& os, configurableCut const& c)
{
os << "Cut value: " << c.getCut() << "; state: " << c.getState();
return os;
}
bool configurableCut::method(float arg) const
{
return arg > cut;
}
void configurableCut::setCut(float cut_)
{
cut = cut_;
}
float configurableCut::getCut() const
{
return cut;
}
void configurableCut::setState(int state_)
{
state = state_;
}
int configurableCut::getState() const
{
return state;
}
void configurableCut::setOption(bool option_)
{
option = option_;
}
bool configurableCut::getOption() const
{
return option;
}
void configurableCut::setBins(std::vector<float> bins_)
{
bins = std::move(bins_);
}
std::vector<float> configurableCut::getBins() const
{
return bins;
}
void configurableCut::setLabels(std::vector<std::string> labels_)
{
labels = std::move(labels_);
}
std::vector<std::string> configurableCut::getLabels() const
{
return labels;
}
void configurableCut::setCuts(o2::framework::Array2D<double> cuts_)
{
cuts = std::move(cuts_);
}
o2::framework::Array2D<double> configurableCut::getCuts() const
{
return cuts;
}