ATLAS Offline Software
Loading...
Searching...
No Matches
Analysis::SoftLeptonTruthInfo Class Reference

Class SoftLeptonTruthInfo: Class to store truth information about lepton in jet. More...

#include <SoftLeptonTruthInfo.h>

Inheritance diagram for Analysis::SoftLeptonTruthInfo:
Collaboration diagram for Analysis::SoftLeptonTruthInfo:

Public Member Functions

 SoftLeptonTruthInfo ()=default
 SoftLeptonTruthInfo (const TagInfoType &)
 constructor with info type
 SoftLeptonTruthInfo (const SoftLeptonTruthInfo &SoftLeptonTruthInfo)=default
SoftLeptonTruthInfooperator= (const SoftLeptonTruthInfo &rhs)=default
 SoftLeptonTruthInfo (SoftLeptonTruthInfo &&SoftLeptonTruthInfo) noexcept=default
SoftLeptonTruthInfooperator= (SoftLeptonTruthInfo &&rhs) noexcept=default
virtual ~SoftLeptonTruthInfo ()=default
virtual SoftLeptonTruthInfoclone () const
 clone method
int numSLTrueInfo () const
 Number of truth lepton info objects stored.
void addSLTrueInfo (const SLTrueInfo &i)
 Insert a new track info object.
const SLTrueInfogetSLTrueInfo (uint i) const
 Get a track info object.
virtual void setTagLikelihood (const std::vector< double > &)
 Return and set methods for the likelihood.
virtual void setTagLikelihood (std::vector< double > &&)
 to set the tag likelihood for one tagger
virtual const std::vector< double > & tagLikelihood (void) const
 returns the tag likelihood of one tagger
virtual void setWeight (double weight)
 set the weight for one tagger
virtual double weight () const
 get the weight of one tagger
virtual void makeValid ()
 sets the isValid flag to true, cannot be reversed!
virtual bool isValid () const
 returns true if the tag was successfull
virtual TagInfoType infoType (void) const
 returns the infoType of the info objects.

Protected Member Functions

void setValid (bool valid)
void setTagJetInfoType (const TagInfoType &type)

Protected Attributes

bool m_isValid {}
 true if the tagger could tag the jet, default is false
std::vector< double > m_tagLikelihood
 vector to hold the taglikelihood (signal plus N background)
double m_weight {}
 weight for this tag
TagInfoType m_tagJetInfoType {"NoInfoType"}
 string to hold the info type (specified by the tag tool)

Private Attributes

std::vector< SLTrueInfom_sltrueinfo {}

Detailed Description

Class SoftLeptonTruthInfo: Class to store truth information about lepton in jet.

Definition at line 17 of file SoftLeptonTruthInfo.h.

Constructor & Destructor Documentation

◆ SoftLeptonTruthInfo() [1/4]

Analysis::SoftLeptonTruthInfo::SoftLeptonTruthInfo ( )
default

◆ SoftLeptonTruthInfo() [2/4]

Analysis::SoftLeptonTruthInfo::SoftLeptonTruthInfo ( const TagInfoType & tagJetInfoType)

constructor with info type

Definition at line 12 of file SoftLeptonTruthInfo.cxx.

12 : BaseTagInfo(tagJetInfoType)
13 {
14 }

◆ SoftLeptonTruthInfo() [3/4]

Analysis::SoftLeptonTruthInfo::SoftLeptonTruthInfo ( const SoftLeptonTruthInfo & SoftLeptonTruthInfo)
default

◆ SoftLeptonTruthInfo() [4/4]

Analysis::SoftLeptonTruthInfo::SoftLeptonTruthInfo ( SoftLeptonTruthInfo && SoftLeptonTruthInfo)
defaultnoexcept

◆ ~SoftLeptonTruthInfo()

virtual Analysis::SoftLeptonTruthInfo::~SoftLeptonTruthInfo ( )
virtualdefault

Member Function Documentation

◆ addSLTrueInfo()

void Analysis::SoftLeptonTruthInfo::addSLTrueInfo ( const SLTrueInfo & i)
inline

Insert a new track info object.

Definition at line 36 of file SoftLeptonTruthInfo.h.

36{ m_sltrueinfo.push_back(i); }
std::vector< SLTrueInfo > m_sltrueinfo

◆ clone()

SoftLeptonTruthInfo * Analysis::SoftLeptonTruthInfo::clone ( ) const
inlinevirtual

clone method

Reimplemented from Analysis::BaseTagInfo.

Definition at line 48 of file SoftLeptonTruthInfo.h.

48 {
49 return new SoftLeptonTruthInfo(*this);
50}

◆ getSLTrueInfo()

const SLTrueInfo & Analysis::SoftLeptonTruthInfo::getSLTrueInfo ( uint i) const
inline

Get a track info object.

Definition at line 38 of file SoftLeptonTruthInfo.h.

38 {
39 return m_sltrueinfo.at(i);
40 }

◆ infoType()

TagInfoType Analysis::BaseTagInfo::infoType ( void ) const
inlinevirtualinherited

returns the infoType of the info objects.

This has to be set by the tagger.

Implements Analysis::ITagInfo.

Definition at line 75 of file BaseTagInfo.h.

76{
77 return m_tagJetInfoType;
78}
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition BaseTagInfo.h:63

◆ isValid()

bool Analysis::BaseTagInfo::isValid ( ) const
inlinevirtualinherited

returns true if the tag was successfull

Implements Analysis::ITagInfo.

Definition at line 67 of file BaseTagInfo.h.

68{
69 return m_isValid;
70}
bool m_isValid
true if the tagger could tag the jet, default is false
Definition BaseTagInfo.h:60

◆ makeValid()

void Analysis::BaseTagInfo::makeValid ( )
inlinevirtualinherited

sets the isValid flag to true, cannot be reversed!

Implements Analysis::ITagInfo.

Definition at line 71 of file BaseTagInfo.h.

72{
73 m_isValid = true;
74}

◆ numSLTrueInfo()

int Analysis::SoftLeptonTruthInfo::numSLTrueInfo ( ) const
inline

Number of truth lepton info objects stored.

Definition at line 34 of file SoftLeptonTruthInfo.h.

34{ return m_sltrueinfo.size();}

◆ operator=() [1/2]

SoftLeptonTruthInfo & Analysis::SoftLeptonTruthInfo::operator= ( const SoftLeptonTruthInfo & rhs)
default

◆ operator=() [2/2]

SoftLeptonTruthInfo & Analysis::SoftLeptonTruthInfo::operator= ( SoftLeptonTruthInfo && rhs)
defaultnoexcept

◆ setTagJetInfoType()

void Analysis::BaseTagInfo::setTagJetInfoType ( const TagInfoType & type)
inlineprotectedinherited

Definition at line 110 of file BaseTagInfo.h.

◆ setTagLikelihood() [1/2]

void Analysis::BaseTagInfo::setTagLikelihood ( const std::vector< double > & tagLikelihood)
inlinevirtualinherited

Return and set methods for the likelihood.

to set the tag likelihood for one tagger

Implements Analysis::ITagInfo.

Definition at line 79 of file BaseTagInfo.h.

80{
82}
virtual const std::vector< double > & tagLikelihood(void) const
returns the tag likelihood of one tagger
Definition BaseTagInfo.h:87
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition BaseTagInfo.h:61

◆ setTagLikelihood() [2/2]

void Analysis::BaseTagInfo::setTagLikelihood ( std::vector< double > && tagLikelihood)
inlinevirtualinherited

to set the tag likelihood for one tagger

Implements Analysis::ITagInfo.

Definition at line 83 of file BaseTagInfo.h.

84{
86}

◆ setValid()

void Analysis::BaseTagInfo::setValid ( bool valid)
inlineprotectedinherited

Definition at line 106 of file BaseTagInfo.h.

107{
109}
list valid
Definition calibdata.py:44

◆ setWeight()

void Analysis::BaseTagInfo::setWeight ( double weight)
inlinevirtualinherited

set the weight for one tagger

Implements Analysis::ITagInfo.

Definition at line 94 of file BaseTagInfo.h.

95{
97}
double m_weight
weight for this tag
Definition BaseTagInfo.h:62
virtual double weight() const
get the weight of one tagger
Definition BaseTagInfo.h:98

◆ tagLikelihood()

const std::vector< double > & Analysis::BaseTagInfo::tagLikelihood ( void ) const
inlinevirtualinherited

returns the tag likelihood of one tagger

Implements Analysis::ITagInfo.

Definition at line 87 of file BaseTagInfo.h.

88{
89 // in principal the caller has to check if the vector has a length
90 // -> no checking for the size as in the case of lhSig(void)
91 return m_tagLikelihood;
92}

◆ weight()

double Analysis::BaseTagInfo::weight ( void ) const
inlinevirtualinherited

get the weight of one tagger

Implements Analysis::ITagInfo.

Definition at line 98 of file BaseTagInfo.h.

99{
100 return (this->isValid() ? m_weight : -19.75);
101}
virtual bool isValid() const
returns true if the tag was successfull
Definition BaseTagInfo.h:67

Member Data Documentation

◆ m_isValid

bool Analysis::BaseTagInfo::m_isValid {}
protectedinherited

true if the tagger could tag the jet, default is false

Definition at line 60 of file BaseTagInfo.h.

60{};

◆ m_sltrueinfo

std::vector<SLTrueInfo> Analysis::SoftLeptonTruthInfo::m_sltrueinfo {}
private

Definition at line 44 of file SoftLeptonTruthInfo.h.

44{};

◆ m_tagJetInfoType

TagInfoType Analysis::BaseTagInfo::m_tagJetInfoType {"NoInfoType"}
protectedinherited

string to hold the info type (specified by the tag tool)

Definition at line 63 of file BaseTagInfo.h.

63{"NoInfoType"};

◆ m_tagLikelihood

std::vector<double> Analysis::BaseTagInfo::m_tagLikelihood
protectedinherited

vector to hold the taglikelihood (signal plus N background)

Definition at line 61 of file BaseTagInfo.h.

◆ m_weight

double Analysis::BaseTagInfo::m_weight {}
protectedinherited

weight for this tag

Definition at line 62 of file BaseTagInfo.h.

62{};

The documentation for this class was generated from the following files: