ATLAS Offline Software
MultiplicityCondition.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 #include <sstream>
10 #include <cmath>
11 #include <algorithm>
12 #include <numeric>
13 
15  std::size_t multMax):
16  m_multMin{multMin}, m_multMax{multMax} {
17 }
18 
19 
20 bool
22  const std::unique_ptr<ITrigJetHypoInfoCollector>& collector) const {
23 
24  auto mult = ips.size();
25  bool pass = mult >= m_multMin and mult < m_multMax;
26 
27  if(collector){
28  std::stringstream ss0;
29  const void* address = static_cast<const void*>(this);
30  ss0 << "MultCondition: (" << address << ") mult "
31  << mult << " "
32  << std::boolalpha << pass << " jet group: \n";
33 
34  collector -> collect(ss0.str(), "");
35  }
36 
37  return pass;
38 
39 }
40 
41 
42 std::string MultiplicityCondition::toString() const {
43  std::stringstream ss;
44  ss << "MultiplicityCondition: multMin: "
45  << m_multMin
46  << " multMax "
47  << m_multMax << '\n';
48 
49  return ss.str();
50 }
51 
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
HypoJetDefs.h
MultiplicityCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: MultiplicityCondition.cxx:21
MultiplicityCondition.h
MultiplicityCondition::MultiplicityCondition
MultiplicityCondition(std::size_t multMin, std::size_t multMax)
Definition: MultiplicityCondition.cxx:14
MultiplicityCondition::toString
std::string toString() const override
Definition: MultiplicityCondition.cxx:42
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition: HypoJetDefs.h:27
MultiplicityCondition::m_multMin
std::size_t m_multMin
Definition: MultiplicityCondition.h:46
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
ITrigJetHypoInfoCollector.h
MultiplicityCondition::m_multMax
std::size_t m_multMax
Definition: MultiplicityCondition.h:47
Trig::FeatureAccessImpl::collect
void collect(const HLT::TriggerElement *te, std::vector< Trig::Feature< T > > &data, const std::string &label, unsigned int condition, const std::string &teName, const HLT::TrigNavStructure *navstructure)
actual feature acceess implementation It has (thanks to the ClassTraits) functionality to flatten con...
Definition: FeatureCollectAthena.h:299