ATLAS Offline Software
Typedefs | Functions
makeRepeatedConditions.h File Reference
#include "TrigHLTJetHypo/../src/RepeatedConditionsDefs.h"
#include <utility>
#include <vector>
Include dependency graph for makeRepeatedConditions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using EtaPair = std::pair< double, double >
 
using EtaPairs = std::vector< EtaPair >
 

Functions

ConditionPtrs makeRepeatedConditions (const EtaPairs &etas)
 
ConditionPtrs makeRepeatedConditions (const EtaPair &eta)
 

Typedef Documentation

◆ EtaPair

using EtaPair = std::pair<double, double>

Definition at line 13 of file makeRepeatedConditions.h.

◆ EtaPairs

using EtaPairs = std::vector<EtaPair>

Definition at line 14 of file makeRepeatedConditions.h.

Function Documentation

◆ makeRepeatedConditions() [1/2]

ConditionPtrs makeRepeatedConditions ( const EtaPair eta)

Definition at line 11 of file makeRepeatedConditions.cxx.

11  {
12 
13  ConditionPtrs conditions;
14 
15  auto el_condition = std::unique_ptr<ICondition>(nullptr);
16  el_condition.reset(new EtaConditionAbs(eta.first, eta.second));
17 
18  auto rep_condition = std::unique_ptr<IRepeatedCondition>(nullptr);
19 
20  std::size_t multiplicity{1u};
21  int clique{0};
22  rep_condition.reset(new RepeatedCondition(std::move(el_condition),
23  multiplicity,
24  clique));
25 
26  conditions.push_back(std::move(rep_condition));
27 
28  return conditions;
29 }

◆ makeRepeatedConditions() [2/2]

ConditionPtrs makeRepeatedConditions ( const EtaPairs etas)

Definition at line 32 of file makeRepeatedConditions.cxx.

32  {
33 
34  ConditionPtrs conditions;
35 
36  for (const auto& ep : etas){
37  auto el_condition = std::unique_ptr<ICondition>(nullptr);
38  el_condition.reset(new EtaConditionAbs(ep.first, ep.second));
39 
40  auto rep_condition = std::unique_ptr<IRepeatedCondition>(nullptr);
41 
42  std::size_t multiplicity{1u};
43  int clique{0};
44  rep_condition.reset(new RepeatedCondition(std::move(el_condition),
45  multiplicity,
46  clique));
47 
48  conditions.push_back(std::move(rep_condition));
49  }
50 
51  return conditions;
52 }
EtaConditionAbs
Definition: EtaConditionAbs.h:25
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
RepeatedCondition
Definition: RepeatedCondition.h:29
ConditionPtrs
std::vector< ConditionPtr > ConditionPtrs
Definition: RepeatedConditionsDefs.h:20
EgEfficiencyCorr_testFixedInput.etas
list etas
Definition: EgEfficiencyCorr_testFixedInput.py:9