ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigHLTJetHypo
src
AcceptAllCondition.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
#
5
#include "
./AcceptAllCondition.h
"
6
#include "
./ITrigJetHypoInfoCollector.h
"
7
#include "
TrigHLTJetHypo/TrigHLTJetHypoUtils/IJet.h
"
8
9
#include <sstream>
10
#include <cmath>
11
#include <TLorentzVector.h>
12
13
bool
14
AcceptAllCondition::isSatisfied
(
const
HypoJetVector
& ips,
15
const
std::unique_ptr<ITrigJetHypoInfoCollector>& collector)
const
{
16
17
if
(collector){
18
std::stringstream ss0;
19
const
void
* address =
static_cast<
const
void
*
>
(
this
);
20
ss0 <<
"AcceptAllCondition: ("
<< address <<
") "
21
<<
" true jet group: \n"
;
22
23
std::stringstream ss1;
24
25
for
(
const
auto
& ip : ips){
26
address =
static_cast<
const
void
*
>
(ip.get());
27
ss1 <<
" "
<< address <<
" "
<< ip->eta() <<
" e "
<< ip->e() <<
'\n'
;
28
}
29
ss1 <<
'\n'
;
30
collector -> collect(ss0.str(), ss1.str());
31
}
32
33
return
true
;
34
}
35
36
37
38
std::string
AcceptAllCondition::toString
()
const
{
39
std::stringstream
ss
;
40
41
ss
<<
"AcceptAllCondition ("
<<
this
<<
")\n"
;
42
return
ss
.str();
43
}
AcceptAllCondition.h
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition
HypoJetDefs.h:27
IJet.h
ITrigJetHypoInfoCollector.h
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
AcceptAllCondition::isSatisfied
bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
Definition
AcceptAllCondition.cxx:14
AcceptAllCondition::toString
std::string toString() const override
Definition
AcceptAllCondition.cxx:38
Generated on
for ATLAS Offline Software by
1.14.0