ATLAS Offline Software
EtCondition.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 #
5 #include "./EtCondition.h"
8 
9 #include <sstream>
10 #include <cmath>
11 #include <TLorentzVector.h>
12 
14 }
15 
16 
18  const std::unique_ptr<ITrigJetHypoInfoCollector>& collector) const {
19 
20  auto et = ip->et();
21  bool pass = m_min <= et;
22 
23 
24  if(collector){
25  const void* address = static_cast<const void*>(this);
26 
27  std::stringstream ss0;
28  ss0 << "EtCondition: (" << address << ") "
29  << " et thresh " << m_min
30  << " pass: " << std::boolalpha << pass << '\n';
31 
32  auto j_addr = static_cast<const void*>(ip.get());
33  std::stringstream ss1;
34  ss1 << " jet : ("<< j_addr << ")"
35  " et " << et << '\n';
36 
37  collector->collect(ss0.str(), ss1.str());
38 
39  }
40  return pass;
41 }
42 
43 
44 bool
46  const std::unique_ptr<ITrigJetHypoInfoCollector>& c) const {
47  auto result = isSatisfied(ips[0], c);
48  return result;
49 }
50 
51 
52 std::string EtCondition::toString() const {
53  std::stringstream ss;
54  ss << "EtCondition (" << this << ") "
55  << " Et threshold: "
56  << m_min
57  <<'\n';
58 
59  return ss.str();
60 }
et
Extra patterns decribing particle interation process.
get_generator_info.result
result
Definition: get_generator_info.py:21
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
EtCondition.h
xAOD::et
et
Definition: TrigEMCluster_v1.cxx:25
IJet.h
EtCondition::EtCondition
EtCondition(double threshold)
Definition: EtCondition.cxx:13
ITrigJetHypoInfoCollector::collect
virtual void collect(const std::string &, const std::string &)=0
pHypoJet
std::shared_ptr< const HypoJet::IJet > pHypoJet
Definition: HypoJetDefs.h:25
EtCondition::m_min
double m_min
Definition: EtCondition.h:38
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition: HypoJetDefs.h:27
EtCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition: EtCondition.cxx:45
threshold
Definition: chainparser.cxx:74
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
ITrigJetHypoInfoCollector.h
EtCondition::toString
std::string toString() const override
Definition: EtCondition.cxx:52
python.compressB64.c
def c
Definition: compressB64.py:93