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 constructor
 SoftLeptonTruthInfo (const TagInfoType &)
 constructor with info type
 SoftLeptonTruthInfo (const SoftLeptonTruthInfo &SoftLeptonTruthInfo)
 copy destructor
SoftLeptonTruthInfooperator= (const SoftLeptonTruthInfo &rhs)
 assigenment operator
virtual ~SoftLeptonTruthInfo ()
 default destructor
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
 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/3]

Analysis::SoftLeptonTruthInfo::SoftLeptonTruthInfo ( )

default constructor

Default constructor.

Definition at line 11 of file SoftLeptonTruthInfo.cxx.

BaseTagInfo()
default constructor
std::vector< SLTrueInfo > m_sltrueinfo

◆ SoftLeptonTruthInfo() [2/3]

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

constructor with info type

Definition at line 14 of file SoftLeptonTruthInfo.cxx.

14 : BaseTagInfo(tagJetInfoType),
16{
17 m_sltrueinfo.clear();
18}

◆ SoftLeptonTruthInfo() [3/3]

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

copy destructor

Copy constructor not really needed now, but the object might get more complicated ...

Definition at line 23 of file SoftLeptonTruthInfo.cxx.

23 : BaseTagInfo(rhs),
24 m_sltrueinfo(rhs.m_sltrueinfo)
25{}

◆ ~SoftLeptonTruthInfo()

Analysis::SoftLeptonTruthInfo::~SoftLeptonTruthInfo ( )
virtual

default destructor

Default destructor.

Definition at line 38 of file SoftLeptonTruthInfo.cxx.

38{}

Member Function Documentation

◆ addSLTrueInfo()

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

Insert a new track info object.

Definition at line 42 of file SoftLeptonTruthInfo.h.

42{ m_sltrueinfo.push_back(i); }

◆ clone()

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

clone method

Reimplemented from Analysis::BaseTagInfo.

Definition at line 54 of file SoftLeptonTruthInfo.h.

54 {
55 return new SoftLeptonTruthInfo(*this);
56}
SoftLeptonTruthInfo()
default constructor

◆ getSLTrueInfo()

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

Get a track info object.

Definition at line 44 of file SoftLeptonTruthInfo.h.

44 {
45 return m_sltrueinfo.at(i);
46 }

◆ 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 81 of file BaseTagInfo.h.

82{
83 return m_tagJetInfoType;
84}
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition BaseTagInfo.h:69

◆ isValid()

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

returns true if the tag was successfull

Implements Analysis::ITagInfo.

Definition at line 73 of file BaseTagInfo.h.

74{
75 return m_isValid;
76}
bool m_isValid
true if the tagger could tag the jet, default is false
Definition BaseTagInfo.h:66

◆ makeValid()

void Analysis::BaseTagInfo::makeValid ( )
inlinevirtualinherited

sets the isValid flag to true, cannot be reversed!

Implements Analysis::ITagInfo.

Definition at line 77 of file BaseTagInfo.h.

78{
79 m_isValid = true;
80}

◆ numSLTrueInfo()

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

Number of truth lepton info objects stored.

Definition at line 40 of file SoftLeptonTruthInfo.h.

40{ return m_sltrueinfo.size();}

◆ operator=()

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

assigenment operator

Definition at line 28 of file SoftLeptonTruthInfo.cxx.

29{
30 if (this!=&rhs)
31 {
32 m_sltrueinfo = rhs.m_sltrueinfo;
33 }
34 return *this;
35}

◆ setTagJetInfoType()

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

Definition at line 121 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 85 of file BaseTagInfo.h.

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

◆ 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 89 of file BaseTagInfo.h.

90{
92}

◆ setValid()

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

Definition at line 117 of file BaseTagInfo.h.

118{
120}
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 105 of file BaseTagInfo.h.

106{
108}
double m_weight
weight for this tag
Definition BaseTagInfo.h:68
virtual double weight() const
get the weight of one tagger

◆ tagLikelihood()

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

returns the tag likelihood of one tagger

Implements Analysis::ITagInfo.

Definition at line 93 of file BaseTagInfo.h.

94{
95 // in principal the caller has to check if the vector has a length
96 // -> no checking for the size as in the case of lhSig(void)
97 return m_tagLikelihood;
98}

◆ weight()

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

get the weight of one tagger

Implements Analysis::ITagInfo.

Definition at line 109 of file BaseTagInfo.h.

110{
111 return (this->isValid() ? m_weight : -19.75);
112}
virtual bool isValid() const
returns true if the tag was successfull
Definition BaseTagInfo.h:73

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 66 of file BaseTagInfo.h.

◆ m_sltrueinfo

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

Definition at line 50 of file SoftLeptonTruthInfo.h.

◆ m_tagJetInfoType

TagInfoType Analysis::BaseTagInfo::m_tagJetInfoType
protectedinherited

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

Definition at line 69 of file BaseTagInfo.h.

◆ m_tagLikelihood

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

vector to hold the taglikelihood (signal plus N background)

Definition at line 67 of file BaseTagInfo.h.

◆ m_weight

double Analysis::BaseTagInfo::m_weight
protectedinherited

weight for this tag

Definition at line 68 of file BaseTagInfo.h.


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