ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
top::ApproxPTVarCone Class Reference

Danilo's approximation of mini-isolation which has been calculated in AnalysisTop and applied as a decoration to the objects. More...

#include <IsolationTools.h>

Inheritance diagram for top::ApproxPTVarCone:
Collaboration diagram for top::ApproxPTVarCone:

Public Member Functions

 ApproxPTVarCone (double fraction, double fractionLoose)
 An approximation of mini-isolation. More...
 
virtual bool passSelection (const xAOD::IParticle &p) const override
 Does this particle pass the isolation cuts for the main analysis definitions? More...
 
virtual bool passSelectionLoose (const xAOD::IParticle &p) const override
 Does this particle pass the isolation cuts for the loose analysis definitions (useful for background estimates)? More...
 
virtual void print (std::ostream &os) const override
 Come on, you really need me to tell you what this does? More...
 

Protected Attributes

double m_fraction
 For the main analysis object selection. More...
 
double m_fractionLoose
 For the objects used in the looser object selection (e.g. matrix method fakes) More...
 

Detailed Description

Danilo's approximation of mini-isolation which has been calculated in AnalysisTop and applied as a decoration to the objects.

This gave you something to work with before the DC14 derivations included isolation (which they should by the time you read this). Probably other options will be better, and almost certainly faster if we don't need to load all the tracks!

Definition at line 153 of file IsolationTools.h.

Constructor & Destructor Documentation

◆ ApproxPTVarCone()

top::ApproxPTVarCone::ApproxPTVarCone ( double  fraction,
double  fractionLoose 
)

An approximation of mini-isolation.

This applies some sort of fractional cut to mini-iso / particle pT.

Parameters
fractionFor the tight (analysis) leptons
fractionLooseFor leptons that will be used in the background estimate.

Definition at line 91 of file IsolationTools.cxx.

91  :
92  m_fraction(fraction),
93  m_fractionLoose(fractionLoose) {
94  }

Member Function Documentation

◆ passSelection()

bool top::ApproxPTVarCone::passSelection ( const xAOD::IParticle p) const
overridevirtual

Does this particle pass the isolation cuts for the main analysis definitions?

Parameters
pParticle that we're worried about.
Returns
True if it passes the isolation cuts.

Implements top::IsolationBase.

Definition at line 96 of file IsolationTools.cxx.

96  {
97  return(p.auxdataConst<float>("miniIso") / p.pt() < m_fraction);
98  }

◆ passSelectionLoose()

bool top::ApproxPTVarCone::passSelectionLoose ( const xAOD::IParticle p) const
overridevirtual

Does this particle pass the isolation cuts for the loose analysis definitions (useful for background estimates)?

Parameters
pParticle that we're worried about.
Returns
True if it passes the isolation cuts.

Implements top::IsolationBase.

Definition at line 100 of file IsolationTools.cxx.

100  {
101  return(p.auxdataConst<float>("miniIso") / p.pt() < m_fractionLoose);
102  }

◆ print()

void top::ApproxPTVarCone::print ( std::ostream &  os) const
overridevirtual

Come on, you really need me to tell you what this does?

Implements top::IsolationBase.

Definition at line 104 of file IsolationTools.cxx.

104  {
105  os << " * Approximate Mini Isolation\n";
106  os << " * iso/pT > " << m_fraction << "\n";
107  }

Member Data Documentation

◆ m_fraction

double top::ApproxPTVarCone::m_fraction
protected

For the main analysis object selection.

Definition at line 188 of file IsolationTools.h.

◆ m_fractionLoose

double top::ApproxPTVarCone::m_fractionLoose
protected

For the objects used in the looser object selection (e.g. matrix method fakes)

Definition at line 191 of file IsolationTools.h.


The documentation for this class was generated from the following files:
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
top::ApproxPTVarCone::m_fraction
double m_fraction
For the main analysis object selection.
Definition: IsolationTools.h:188
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
top::ApproxPTVarCone::m_fractionLoose
double m_fractionLoose
For the objects used in the looser object selection (e.g. matrix method fakes)
Definition: IsolationTools.h:191