Project
Loading...
Searching...
No Matches
DataSamplingConditionFactory.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_DATASAMPLINGCONDITIONFACTORY_H
13#define ALICEO2_DATASAMPLINGCONDITIONFACTORY_H
14
19
21#include <memory>
22#include <string>
23
24namespace o2::utilities
25{
26
29{
30 public:
32 static std::unique_ptr<DataSamplingCondition> create(std::string name);
33
34 // a list of getters of specific DataSamplingCondition's, they should be implemented
35 // inside particular DataSamplingCondition*.cxx files.
37 static std::unique_ptr<DataSamplingCondition> createDataSamplingConditionRandom();
39 static std::unique_ptr<DataSamplingCondition> createDataSamplingConditionPayloadSize();
41 static std::unique_ptr<DataSamplingCondition> createDataSamplingConditionNConsecutive();
43 static std::unique_ptr<DataSamplingCondition> createDataSamplingConditionCustom();
44};
45
46} // namespace o2::utilities
47
48#endif //ALICEO2_DATASAMPLINGCONDITIONFACTORY_H
A standarised data sampling condition, to decide if given data sample should be passed forward.
A factory of DataSamplingConditions children.
static std::unique_ptr< DataSamplingCondition > createDataSamplingConditionCustom()
Getter for DataSamplingConditionCustom.
static std::unique_ptr< DataSamplingCondition > createDataSamplingConditionPayloadSize()
Getter for DataSamplingConditionPayloadSize.
static std::unique_ptr< DataSamplingCondition > createDataSamplingConditionRandom()
Getter for DataSamplingConditionRandom.
static std::unique_ptr< DataSamplingCondition > createDataSamplingConditionNConsecutive()
Getter for DataSamplingConditionNConsecutive.
static std::unique_ptr< DataSamplingCondition > create(std::string name)
Creates instance of DataSamplingCondition child, given the name.
GLuint const GLchar * name
Definition glcorearb.h:781
A header which contains some meta-data generated by Data Sampling.