ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
DijetMassCondition Class Reference

#include <DijetMassCondition.h>

Inheritance diagram for DijetMassCondition:
Collaboration diagram for DijetMassCondition:

Public Member Functions

 DijetMassCondition (double massMin, double massMax)
 
bool isSatisfied (const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const override
 
std::string toString () const override
 
virtual unsigned int capacity () const override
 

Private Member Functions

bool passJetCuts (pHypoJet, pHypoJet) const
 
bool passDijetMassCuts (pHypoJet, pHypoJet) const
 

Private Attributes

double m_min
 
double m_max
 

Static Private Attributes

static const unsigned int s_capacity {2}
 

Detailed Description

Definition at line 26 of file DijetMassCondition.h.

Constructor & Destructor Documentation

◆ DijetMassCondition()

DijetMassCondition::DijetMassCondition ( double  massMin,
double  massMax 
)

Definition at line 13 of file DijetMassCondition.cxx.

14  :
15  m_min(massMin),
16  m_max(massMax){
17  }

Member Function Documentation

◆ capacity()

virtual unsigned int DijetMassCondition::capacity ( ) const
inlineoverridevirtual

Implements ICondition.

Definition at line 36 of file DijetMassCondition.h.

36 {return s_capacity;}

◆ isSatisfied()

bool DijetMassCondition::isSatisfied ( const HypoJetVector ips,
const std::unique_ptr< ITrigJetHypoInfoCollector > &  collector 
) const
overridevirtual

Implements ICondition.

Definition at line 21 of file DijetMassCondition.cxx.

22  {
23 
24  if(ips.size() != 2){
25  std::stringstream ss;
26  ss << "DijetMassCondition::isSatisfied must see exactly 2 particles, but received "
27  << ips.size()
28  << '\n';
29 
30  throw std::runtime_error(ss.str());
31  }
32 
33  auto j0 = ips[0];
34  auto j1 = ips[1];
35 
36  auto rj0 = j0 -> p4();
37  auto rj1 = j1 -> p4();
38 
39  auto mass = (rj0 + rj1).M();
40 
41  bool pass = mass >= m_min and mass < m_max;
42 
43  if(collector){
44  std::stringstream ss0;
45  const void* address = static_cast<const void*>(this);
46  ss0 << "DijetMassCondition: (" << address << ") "
47  << mass << " "
48  << 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 }

◆ passDijetMassCuts()

bool DijetMassCondition::passDijetMassCuts ( pHypoJet  ,
pHypoJet   
) const
private

◆ passJetCuts()

bool DijetMassCondition::passJetCuts ( pHypoJet  ,
pHypoJet   
) const
private

◆ toString()

std::string DijetMassCondition::toString ( ) const
overridevirtual

Implements ICondition.

Definition at line 63 of file DijetMassCondition.cxx.

63  {
64 
65 
66  std::stringstream ss;
67  const void* address = static_cast<const void*>(this);
68  ss << "DijetMassCondition: (" << address << ") Capacity: " << s_capacity
69 
70  << " mass min: " << m_min
71  << " mass max: " << m_max <<'\n';
72 
73  return ss.str();
74 }

Member Data Documentation

◆ m_max

double DijetMassCondition::m_max
private

Definition at line 45 of file DijetMassCondition.h.

◆ m_min

double DijetMassCondition::m_min
private

Definition at line 44 of file DijetMassCondition.h.

◆ s_capacity

const unsigned int DijetMassCondition::s_capacity {2}
staticprivate

Definition at line 47 of file DijetMassCondition.h.


The documentation for this class was generated from the following files:
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
doubleTestComp.j1
j1
Definition: doubleTestComp.py:21
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
DijetMassCondition::s_capacity
static const unsigned int s_capacity
Definition: DijetMassCondition.h:47
RTTAlgmain.address
address
Definition: RTTAlgmain.py:55
Trig::FeatureAccessImpl::collect
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...
Definition: FeatureCollectAthena.h:299
DijetMassCondition::m_max
double m_max
Definition: DijetMassCondition.h:45
DijetMassCondition::m_min
double m_min
Definition: DijetMassCondition.h:44