Project
Loading...
Searching...
No Matches
DataSamplingCondition.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 ALICEO2_DATASAMPLINGCONDITION_H
13#define ALICEO2_DATASAMPLINGCONDITION_H
14
19
20#include "Framework/DataRef.h"
21
22#include <boost/property_tree/ptree_fwd.hpp>
23#include <string>
24
25namespace o2::utilities
26{
27
30{
31 public:
35 virtual ~DataSamplingCondition() = default;
36
38 virtual void configure(const boost::property_tree::ptree&) = 0;
40 virtual bool decide(const o2::framework::DataRef&) = 0;
41};
42
43} // namespace o2::utilities
44
45#endif //ALICEO2_DATASAMPLINGCONDITION_H
A standardised data sampling condition, to decide if given data sample should be passed forward.
virtual ~DataSamplingCondition()=default
Default destructor.
virtual bool decide(const o2::framework::DataRef &)=0
Makes decision whether to pass a data sample or not.
DataSamplingCondition()=default
Default constructor.
virtual void configure(const boost::property_tree::ptree &)=0
Reads custom configuration parameters.
A header which contains some meta-data generated by Data Sampling.