All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
VectorHelper.h
Go to the documentation of this file.
1
#ifndef VECTORHELPER_H
2
#define VECTORHELPER_H 1
3
#include "
TJjetsPFOAnalysisProcessor.h
"
4
5
template
<
class
Object>
bool
TJjetsPFOAnalysisProcessor::areDisjointVectors
(
const
std::vector<Object> &v1,
const
std::vector<Object> &v2 )
const
{
6
bool
have_overlap =
false
;
7
for
(
unsigned
int
i=0; i<v1.size(); i++) {
8
Object v1_element = v1[i];
9
if
(std::find(v2.begin(), v2.end(), v1_element) != v2.end()) {
10
have_overlap =
true
;
11
break
;
12
}
13
}
14
return
!have_overlap;
15
}
16
#endif
TJjetsPFOAnalysisProcessor::areDisjointVectors
bool areDisjointVectors(const std::vector< Object > &v1, const std::vector< Object > &v2) const
Definition:
VectorHelper.h:5
TJjetsPFOAnalysisProcessor.h
Analysis
TJjetsPFOAnalysisProcessor
include
VectorHelper.h
Generated on Tue Mar 29 2022 10:09:42 by
1.8.5