#include <QjetMassCondition.h>
Definition at line 26 of file QjetMassCondition.h.
◆ QjetMassCondition()
| QjetMassCondition::QjetMassCondition |
( |
double | massMin, |
|
|
double | massMax ) |
◆ capacity()
| virtual unsigned int QjetMassCondition::capacity |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isSatisfied()
Implements ICondition.
Definition at line 20 of file QjetMassCondition.cxx.
21 {
22
23 if(ips.size() != 4){
25 ss <<
"QjetMassCondition::isSatisfied must see exactly 4 particles, but received "
26 << ips.size()
27 << '\n';
28
29 throw std::runtime_error(
ss.str());
30 }
31
32 auto j0 = ips[0];
35 auto j3 = ips[3];
36
37 auto rj0 = j0 -> p4();
38 auto rj1 =
j1 -> p4();
39 auto rj2 =
j2 -> p4();
40 auto rj3 = j3 -> p4();
41
42 auto mass = (rj0 + rj1 + rj2 + rj3).M();
43
45
46 if(collector){
47 std::stringstream ss0;
48 const void* address = static_cast<const void*>(this);
49 ss0 << "QjetMassCondition: (" << address << ") "
50 <<
mass <<
" " << std::boolalpha << pass <<
" jet group: \n";
51
52 std::stringstream ss1;
53
54 for(const auto& ip : ips){
55 address =
static_cast<const void*
>(
ip.get());
56 ss1 <<
" " << address <<
" eta " <<
ip->eta()
57 <<
" e " <<
ip->e() <<
" et: " <<
ip->et() <<
'\n';
58 }
59 ss1 << '\n';
60 collector ->
collect(ss0.str(), ss1.str());
61 }
62 return pass;
63
64}
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...
◆ passJetCuts()
◆ passQjetMassCuts()
◆ toString()
| std::string QjetMassCondition::toString |
( |
| ) |
const |
|
overridevirtual |
Implements ICondition.
Definition at line 66 of file QjetMassCondition.cxx.
66 {
67
68
70 const void* address = static_cast<const void*>(this);
71 ss <<
"QjetMassCondition: (" << address <<
") Capacity: " <<
s_capacity
72
73 <<
" mass min: " <<
m_min
74 <<
" mass max: " <<
m_max <<
'\n';
75
77}
◆ m_max
| double QjetMassCondition::m_max |
|
private |
◆ m_min
| double QjetMassCondition::m_min |
|
private |
◆ s_capacity
| const unsigned int QjetMassCondition::s_capacity {4} |
|
staticprivate |
The documentation for this class was generated from the following files: