#include <DijetDPhiCondition.h>
Definition at line 27 of file DijetDPhiCondition.h.
◆ DijetDPhiCondition()
| DijetDPhiCondition::DijetDPhiCondition |
( |
double | detaMin, |
|
|
double | detaMax ) |
◆ capacity()
| virtual unsigned int DijetDPhiCondition::capacity |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isSatisfied()
Implements ICondition.
Definition at line 20 of file DijetDPhiCondition.cxx.
21 {
22
23 if(ips.size() != 2){
25 ss <<
"Dijet::isSatisfied must see exactly 2 particles, but received "
26 << ips.size()
27 << '\n';
28
29 throw std::runtime_error(
ss.str());
30 }
31
32 auto j0 = ips[0];
34
35 auto rj0 = j0 -> p4();
36 auto rj1 =
j1 -> p4();
37
38 auto dphi = std::abs(rj0.DeltaPhi(rj1));
39
40
42
43
44 if(collector){
45 std::stringstream ss0;
46 const void*
address =
static_cast<const void*
>(
this);
47 ss0 <<
"DijetDPhiCondition: (" <<
address <<
") dphi "
48 << dphi << " pass: " <<std::boolalpha << pass << " jet group: \n";
49
50 std::stringstream ss1;
51
52 for(const auto& ip : ips){
53 address =
static_cast<const void*
>(
ip.get());
54 ss1 <<
" " <<
address <<
" " <<
ip->eta() <<
" e " <<
ip->e() <<
'\n';
55 }
56 ss1 << '\n';
57 collector ->
collect(ss0.str(), ss1.str());
58 }
59 return pass;
60
61}
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...
◆ passDijetDPhiCuts()
◆ passJetCuts()
◆ toString()
| std::string DijetDPhiCondition::toString |
( |
| ) |
const |
|
overridevirtual |
◆ m_max
| double DijetDPhiCondition::m_max |
|
private |
◆ m_min
| double DijetDPhiCondition::m_min |
|
private |
◆ s_capacity
| const unsigned int DijetDPhiCondition::s_capacity {2} |
|
staticprivate |
The documentation for this class was generated from the following files: