ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
44bool
46 const std::unique_ptr<ITrigJetHypoInfoCollector>& c) const {
47 auto result = isSatisfied(ips[0], c);
48 return result;
49}
50
51
52std::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}
std::vector< pHypoJet > HypoJetVector
Definition HypoJetDefs.h:27
std::shared_ptr< const HypoJet::IJet > pHypoJet
Definition HypoJetDefs.h:25
static Double_t ss
EtCondition(double threshold)
double m_min
Definition EtCondition.h:38
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
std::string toString() const override
Extra patterns decribing particle interation process.