ATLAS Offline Software
PhysicsAnalysis
AnalysisCommon
AnalysisUtils
AnalysisUtils
IFilterUtils.h
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// IFilterUtils.h
8
// Header file for class IFilterUtils
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef ANALYSISUTILS_IFILTERUTILS_H
12
#define ANALYSISUTILS_IFILTERUTILS_H
13
27
namespace
AnalysisUtils
{
28
29
template
<
class
In,
class
Out,
class
Pred>
30
Out
copy_if
(In
first
,
const
In& last, Out
res
,
const
Pred&
p
)
31
{
32
for
( ;
first
!= last; ++
first
) {
33
if
(
p
(*
first
) ) {
34
*
res
++ = *
first
;
35
}
36
}
37
return
res
;
38
}
39
40
}
//> end AnalysisUtils namespace
41
42
#endif //> ANALYSISUTILS_IFILTERUTILSS_H
python.PerfMonSerializer.p
def p
Definition:
PerfMonSerializer.py:743
AnalysisUtils
utility class to select combination of elements in a collection
Definition:
AnalysisCombination.h:16
res
std::pair< std::vector< unsigned int >, bool > res
Definition:
JetGroupProductTest.cxx:14
AnalysisUtils::copy_if
Out copy_if(In first, const In &last, Out res, const Pred &p)
Definition:
IFilterUtils.h:30
DeMoScan.first
bool first
Definition:
DeMoScan.py:534
Generated on Sun Jun 30 2024 21:17:17 for ATLAS Offline Software by
1.8.18