QualityControl  1.5.1
O2 Data Quality Control Framework
TriggerHelpers.h
Go to the documentation of this file.
1 // Copyright CERN and copyright holders of ALICE O2. This software is
2 // distributed under the terms of the GNU General Public License v3 (GPL
3 // Version 3), copied verbatim in the file "COPYING".
4 //
5 // See http://alice-o2.web.cern.ch/license for full licensing information.
6 //
7 // In applying this license CERN does not waive the privileges and immunities
8 // granted to it by virtue of its status as an Intergovernmental Organization
9 // or submit itself to any jurisdiction.
10 
15 #ifndef QUALITYCONTROL_TRIGGERHELPERS_H
16 #define QUALITYCONTROL_TRIGGERHELPERS_H
17 
20 
22 {
23 
25 TriggerFcn triggerFactory(std::string trigger, const PostProcessingConfig& config);
27 std::vector<TriggerFcn> createTriggers(const std::vector<std::string>& triggerNames, const PostProcessingConfig& config);
29 Trigger tryTrigger(std::vector<TriggerFcn>&);
32 bool hasUserOrControlTrigger(const std::vector<std::string>&);
33 
34 } // namespace o2::quality_control::postprocessing::trigger_helpers
35 
36 #endif //QUALITYCONTROL_TRIGGERHELPERS_H
TriggerFcn triggerFactory(std::string trigger, const PostProcessingConfig &config)
Creates a trigger function by taking its corresponding name.
Definition: TriggerHelpers.cxx:51
bool hasUserOrControlTrigger(const std::vector< std::string > &)
Checks if in a given trigger configuration vector there is a UserOrControl trigger. This is trigger cannot be checked as all the others, so we just check if it is requested in the right moments.
Definition: TriggerHelpers.cxx:129
std::vector< TriggerFcn > createTriggers(const std::vector< std::string > &triggerNames, const PostProcessingConfig &config)
Creates a trigger function vector given trigger names.
Definition: TriggerHelpers.cxx:119
Trigger tryTrigger(std::vector< TriggerFcn > &)
Executes a vector of triggers functions and returns the first trigger which is not TriggerType::No...
Definition: TriggerHelpers.cxx:109