ATLAS Offline Software
Loading...
Searching...
No Matches
GrouperByCapacityFactory.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
9
10
11std::unique_ptr<IJetGrouper> grouperByCapacityFactory(unsigned int cap,
12 const HypoJetCIter& b,
13 const HypoJetCIter& e){
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}
std::unique_ptr< IJetGrouper > grouperByCapacityFactory(unsigned int cap, const HypoJetCIter &b, const HypoJetCIter &e)
HypoJetVector::const_iterator HypoJetCIter
Definition HypoJetDefs.h:29