ATLAS Offline Software
Typedefs | Functions | Variables
JetGroupSingleCliqueTest.cxx File Reference
#include "CxxUtils/checker_macros.h"
#include "gtest/gtest.h"
#include "TrigHLTJetHypo/../src/JetGroupSingleClique.h"
#include <vector>
#include <map>
Include dependency graph for JetGroupSingleCliqueTest.cxx:

Go to the source code of this file.

Typedefs

using vec = std::vector< size_t >
 

Functions

 TEST (JetGroupSingleCliqueTester, empty)
 
 TEST (JetGroupSingleCliqueTester, insufficient)
 
 TEST (JetGroupSingleCliqueTester, sufficient)
 

Variables

 ATLAS_NO_CHECK_FILE_THREAD_SAFETY
 

Typedef Documentation

◆ vec

using vec = std::vector<size_t>

Definition at line 13 of file JetGroupSingleCliqueTest.cxx.

Function Documentation

◆ TEST() [1/3]

TEST ( JetGroupSingleCliqueTester  ,
empty   
)

Definition at line 15 of file JetGroupSingleCliqueTest.cxx.

15  {
16  std::vector<std::size_t> satisfyingJets;
17  auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(nullptr);
18 
19  std::size_t n_required{1};
20  JetGroupSingleClique jgsc(satisfyingJets, n_required);
21  EXPECT_TRUE(jgsc.next(collector).empty());
22 }

◆ TEST() [2/3]

TEST ( JetGroupSingleCliqueTester  ,
insufficient   
)

Definition at line 24 of file JetGroupSingleCliqueTest.cxx.

24  {
25  std::vector<std::size_t> satisfyingJets {0, 1};
26  auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(nullptr);
27 
28  std::size_t n_required{3};
29  JetGroupSingleClique jgsc(satisfyingJets, n_required);
30  EXPECT_TRUE(jgsc.next(collector).empty());
31 }

◆ TEST() [3/3]

TEST ( JetGroupSingleCliqueTester  ,
sufficient   
)

Definition at line 34 of file JetGroupSingleCliqueTest.cxx.

34  {
35  std::vector<std::size_t> satisfyingJets {0u, 1u};
36  auto collector = std::unique_ptr<ITrigJetHypoInfoCollector>(nullptr);
37 
38  std::size_t n_required{2};
39  JetGroupSingleClique jgsc(satisfyingJets, n_required);
40 
41  vec exp0 {0u, 1u};
42  EXPECT_EQ(jgsc.next(collector), exp0);
43 }

Variable Documentation

◆ ATLAS_NO_CHECK_FILE_THREAD_SAFETY

ATLAS_NO_CHECK_FILE_THREAD_SAFETY

Definition at line 6 of file JetGroupSingleCliqueTest.cxx.

vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
JetGroupSingleClique
Definition: JetGroupSingleClique.h:20