ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkTrigger
src
BuildCombinations.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef DERIVATIONFRAMEWORKTRIGGER_BUILDCOMBINATIONS_H
6
#define DERIVATIONFRAMEWORKTRIGGER_BUILDCOMBINATIONS_H
7
8
#include "
RangedItr.h
"
9
10
namespace
DerivationFramework
{
namespace
TriggerMatchingUtils {
11
20
template
<
typename
T>
21
bool
insertIntoSortedVector
(std::vector<T>&
vec
,
const
T& ele);
22
29
template
<
typename
T>
30
std::vector<typename T::value_type>
sorted
(T
begin
, T
end
);
31
37
// First, a note on the type of the argument. This is essentially a way of
38
// passing a vector of vectors but only with iterators over the vectors.
39
template
<
typename
T>
40
std::vector<std::vector<T>>
getAllDistinctCombinations
(
41
std::vector<
RangedItr
<
typename
std::vector<T>::const_iterator>>&
inputs
);
42
43
}}
//> end namespace DerivationFramework::TriggerMatchingUtils
44
#include "
BuildCombinations.icc
"
45
#endif //> !DERIVATIONFRAMEWORKTRIGGER_BUILDCOMBINATIONS_H
PlotCalibFromCool.begin
begin
Definition:
PlotCalibFromCool.py:94
DerivationFramework::TriggerMatchingUtils::getAllDistinctCombinations
std::vector< std::vector< T > > getAllDistinctCombinations(std::vector< RangedItr< typename std::vector< T >::const_iterator >> &inputs)
Get all valid, unique combinations of distinct elements from the input ranges.
vec
std::vector< size_t > vec
Definition:
CombinationsGeneratorTest.cxx:12
postInclude.inputs
inputs
Definition:
postInclude.SortInput.py:15
mergePhysValFiles.end
end
Definition:
DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
DerivationFramework::TriggerMatchingUtils::insertIntoSortedVector
bool insertIntoSortedVector(std::vector< T > &vec, const T &ele)
Helper function for inserting an element into a sorted vector.
RangedItr.h
DerivationFramework::TriggerMatchingUtils::RangedItr
utility class that acts wraps a bidirectional iterator.
Definition:
RangedItr.h:18
DerivationFramework
THE reconstruction tool.
Definition:
ParticleSortingAlg.h:24
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
BuildCombinations.icc
Generated on Thu Nov 7 2024 21:10:59 for ATLAS Offline Software by
1.8.18