ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigHLTJetHypo
src
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
"
6
#include "
./ITrigJetHypoInfoCollector.h
"
7
#include "
TrigHLTJetHypo/TrigHLTJetHypoUtils/IJet.h
"
8
9
#include <sstream>
10
#include <cmath>
11
#include <TLorentzVector.h>
12
13
EtCondition::EtCondition
(
double
threshold
) :
m_min
(
threshold
) {
14
}
15
16
17
bool
EtCondition::isSatisfied
(
const
pHypoJet
& ip,
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
45
EtCondition::isSatisfied
(
const
HypoJetVector
& ips,
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
}
EtCondition.h
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition
HypoJetDefs.h:27
pHypoJet
std::shared_ptr< const HypoJet::IJet > pHypoJet
Definition
HypoJetDefs.h:25
IJet.h
ITrigJetHypoInfoCollector.h
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
EtCondition::EtCondition
EtCondition(double threshold)
Definition
EtCondition.cxx:13
EtCondition::m_min
double m_min
Definition
EtCondition.h:38
EtCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition
EtCondition.cxx:45
EtCondition::toString
std::string toString() const override
Definition
EtCondition.cxx:52
et
Extra patterns decribing particle interation process.
threshold
Definition
chainparser.cxx:74
Generated on
for ATLAS Offline Software by
1.17.0