Nanga Parbat 1.1.0
A TMD fitting framework
cut.h
Go to the documentation of this file.
1//
2// Authors: Valerio Bertone: valerio.bertone@cern.ch
3//
4
5#pragma once
6
7#include <valarray>
8
10
11namespace NangaParbat
12{
19 class Cut
20 {
21 public:
26 Cut(Cut const& cut);
27
34 Cut(DataHandler const& dataset, double const& min, double const& max);
35
39 virtual ~Cut() {};
40
45 virtual void EnforceCut() = 0;
46
50 std::valarray<bool> GetMask() const { return _mask; }
51
52 protected:
54 double const _min;
55 double const _max;
56 std::valarray<bool> _mask;
57 };
58}
Purely virtual mother class that implements the main feautures of a cut function on a given dataset....
Definition: cut.h:20
double const _min
Minimal value.
Definition: cut.h:54
virtual ~Cut()
The "Cut" destructor.
Definition: cut.h:39
std::valarray< bool > _mask
Cut mask.
Definition: cut.h:56
Cut(Cut const &cut)
The "Cut" copy constructor.
double const _max
Maximal value.
Definition: cut.h:55
DataHandler const & _dataset
The dataset to be processed.
Definition: cut.h:53
virtual void EnforceCut()=0
Purely virtual function to be used implemented in the derived class to eforce the cut.
Cut(DataHandler const &dataset, double const &min, double const &max)
The "Cut" constructor.
std::valarray< bool > GetMask() const
Function that returns the cut mask.
Definition: cut.h:50
The "DataHandler" class provides a common interface to all datasets. It provides methods to get kinem...
Definition: datahandler.h:23
Definition: bstar.h:12