ATLAS Offline Software
Functions
GrouperByCapacityFactory.cxx File Reference
#include "GrouperByCapacityFactory.h"
#include "TrigHLTJetHypo/TrigHLTJetHypoUtils/AllJetsGrouper.h"
#include "TrigHLTJetHypo/TrigHLTJetHypoUtils/SingleJetGrouper.h"
#include "TrigHLTJetHypo/TrigHLTJetHypoUtils/CombinationsGrouper.h"
Include dependency graph for GrouperByCapacityFactory.cxx:

Go to the source code of this file.

Functions

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

Function Documentation

◆ grouperByCapacityFactory()

std::unique_ptr<IJetGrouper> grouperByCapacityFactory ( unsigned int  cap,
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 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
CombinationsGrouper
Definition: CombinationsGrouper.h:10
SingleJetGrouper
Definition: SingleJetGrouper.h:10
AllJetsGrouper
Definition: AllJetsGrouper.h:10
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77