ATLAS Offline Software
Loading...
Searching...
No Matches
GrouperByCapacityFactory.h File Reference
Include dependency graph for GrouperByCapacityFactory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::unique_ptr< IJetGroupergrouperByCapacityFactory (unsigned int capacity, const HypoJetCIter &b, const HypoJetCIter &e)

Function Documentation

◆ grouperByCapacityFactory()

std::unique_ptr< IJetGrouper > grouperByCapacityFactory ( unsigned int capacity,
const HypoJetCIter & b,
const HypoJetCIter & e )

Definition at line 11 of file GrouperByCapacityFactory.cxx.

13 {
14
15 std::unique_ptr<IJetGrouper> pGrouper(nullptr);
16
17 if (cap == 0) {
18 pGrouper.reset(new AllJetsGrouper(b, e));
19 } else if (cap == 1) {
20 pGrouper.reset(new SingleJetGrouper(b, e));
21 } else {
22 pGrouper.reset(new CombinationsGrouper(cap, b, e));
23 }
24
25 return pGrouper;
26}