ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
Analysis::HadFlavorTagInfo Class Reference

#include <HadFlavorTagInfo.h>

Inheritance diagram for Analysis::HadFlavorTagInfo:
Collaboration diagram for Analysis::HadFlavorTagInfo:

Public Member Functions

 HadFlavorTagInfo ()
 default constructor More...
 
 HadFlavorTagInfo (const TagInfoType &x)
 constructor with infotype More...
 
 HadFlavorTagInfo (const HadFlavorTagInfo &rhs)
 copy destructor More...
 
HadFlavorTagInfooperator= (const HadFlavorTagInfo &rhs)
 assigenment operator More...
 
virtual ~HadFlavorTagInfo ()
 default destructor More...
 
virtual HadFlavorTagInfoclone () const
 a clone method for the proper workings of the copy constructor More...
 
int nMatchingTracks () const
 A variable to store number of tracks matching jet. More...
 
double trkJetWidth () const
 A second variable to store TrackJet Width. More...
 
double trkJetDRKtaxes () const
 A second variable to store Max{DeltaR(trk,trk)}. More...
 
void setnMatchingTracks (int nMatchingTracks)
 Set-methods for the private data members of the class. More...
 
void settrkJetWidth (double trkJetWidth)
 
void settrkJetDRKtaxes (double trkJetDRKtaxes)
 
virtual void setTagLikelihood (const std::vector< double > &)
 Return and set methods for the likelihood. More...
 
virtual void setTagLikelihood (std::vector< double > &&)
 to set the tag likelihood for one tagger More...
 
virtual const std::vector< double > & tagLikelihood (void) const
 returns the tag likelihood of one tagger More...
 
virtual void setWeight (double weight)
 set the weight for one tagger More...
 
virtual double weight () const
 get the weight of one tagger More...
 
virtual void makeValid ()
 sets the isValid flag to true, cannot be reversed! More...
 
virtual bool isValid () const
 returns true if the tag was successfull More...
 
virtual TagInfoType infoType (void) const
 returns the infoType of the info objects. More...
 

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 More...
 
std::vector< double > m_tagLikelihood
 vector to hold the taglikelihood (signal plus N background) More...
 
double m_weight
 weight for this tag More...
 
TagInfoType m_tagJetInfoType
 string to hold the info type (specified by the tag tool) More...
 

Private Attributes

int m_nMatchingTracks
 
double m_trkJetWidth
 
double m_trkJetDRKtaxes
 

Detailed Description

Definition at line 33 of file HadFlavorTagInfo.h.

Constructor & Destructor Documentation

◆ HadFlavorTagInfo() [1/3]

Analysis::HadFlavorTagInfo::HadFlavorTagInfo ( )

default constructor

Default constructor.

Definition at line 29 of file HadFlavorTagInfo.cxx.

33  :
34  BaseTagInfo(tagJetInfoType),

◆ HadFlavorTagInfo() [2/3]

Analysis::HadFlavorTagInfo::HadFlavorTagInfo ( const TagInfoType x)

constructor with infotype

Definition at line 41 of file HadFlavorTagInfo.cxx.

43  :
44  BaseTagInfo(rhs),
45  m_nMatchingTracks(rhs.m_nMatchingTracks),
46  m_trkJetWidth(rhs.m_trkJetWidth),
47  m_trkJetDRKtaxes(rhs.m_trkJetDRKtaxes)
48 {

◆ HadFlavorTagInfo() [3/3]

Analysis::HadFlavorTagInfo::HadFlavorTagInfo ( const HadFlavorTagInfo rhs)

copy destructor

Copy constructor.

Definition at line 51 of file HadFlavorTagInfo.cxx.

54 {
55  if (this!=&rhs)
56  {
57  m_nMatchingTracks=rhs.m_nMatchingTracks;
58  m_trkJetWidth=rhs.m_trkJetWidth;

◆ ~HadFlavorTagInfo()

Analysis::HadFlavorTagInfo::~HadFlavorTagInfo ( )
virtual

default destructor

Default destructor.

Definition at line 73 of file HadFlavorTagInfo.cxx.

Member Function Documentation

◆ clone()

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

a clone method for the proper workings of the copy constructor

Reimplemented from Analysis::BaseTagInfo.

Definition at line 110 of file HadFlavorTagInfo.h.

111 {
112  return new HadFlavorTagInfo(*this);
113 }

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

90 {
91  m_tagLikelihood=std::move(tagLikelihood);
92 }

◆ isValid()

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

returns true if the tag was successfull

Implements Analysis::ITagInfo.

Definition at line 81 of file BaseTagInfo.h.

82 {
83  return m_tagJetInfoType;
84 }

◆ makeValid()

void Analysis::BaseTagInfo::makeValid ( )
inlinevirtualinherited

sets the isValid flag to true, cannot be reversed!

Implements Analysis::ITagInfo.

Definition at line 85 of file BaseTagInfo.h.

86 {
88 }

◆ nMatchingTracks()

int Analysis::HadFlavorTagInfo::nMatchingTracks ( ) const
inline

A variable to store number of tracks matching jet.

Definition at line 95 of file HadFlavorTagInfo.h.

96 {
97  return m_nMatchingTracks;
98 }

◆ operator=()

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

assigenment operator

Definition at line 61 of file HadFlavorTagInfo.cxx.

66 {}
67 
68 }

◆ setnMatchingTracks()

void Analysis::HadFlavorTagInfo::setnMatchingTracks ( int  nMatchingTracks)
inline

Set-methods for the private data members of the class.

Definition at line 80 of file HadFlavorTagInfo.h.

◆ setTagJetInfoType()

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

Definition at line 129 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 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)

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

◆ settrkJetDRKtaxes()

void Analysis::HadFlavorTagInfo::settrkJetDRKtaxes ( double  trkJetDRKtaxes)
inline

Definition at line 90 of file HadFlavorTagInfo.h.

91 {
93 }

◆ settrkJetWidth()

void Analysis::HadFlavorTagInfo::settrkJetWidth ( double  trkJetWidth)
inline

Definition at line 85 of file HadFlavorTagInfo.h.

86 {
88 }

◆ setValid()

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

Definition at line 125 of file BaseTagInfo.h.

◆ setWeight()

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

set the weight for one tagger

Implements Analysis::ITagInfo.

Definition at line 113 of file BaseTagInfo.h.

114 {
115  return new BaseTagInfo(*this);
116 }

◆ tagLikelihood()

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

returns the tag likelihood of one tagger

Implements Analysis::ITagInfo.

Definition at line 101 of file BaseTagInfo.h.

106 {

◆ trkJetDRKtaxes()

double Analysis::HadFlavorTagInfo::trkJetDRKtaxes ( ) const
inline

A second variable to store Max{DeltaR(trk,trk)}.

Definition at line 105 of file HadFlavorTagInfo.h.

106 {
107  return m_trkJetDRKtaxes;
108 }

◆ trkJetWidth()

double Analysis::HadFlavorTagInfo::trkJetWidth ( ) const
inline

A second variable to store TrackJet Width.

Definition at line 100 of file HadFlavorTagInfo.h.

101 {
102  return m_trkJetWidth;
103 }

◆ weight()

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

get the weight of one tagger

Implements Analysis::ITagInfo.

Definition at line 117 of file BaseTagInfo.h.

118 {
119  m_isValid = valid;
120 }

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

◆ m_nMatchingTracks

int Analysis::HadFlavorTagInfo::m_nMatchingTracks
private

Definition at line 73 of file HadFlavorTagInfo.h.

◆ m_tagJetInfoType

TagInfoType Analysis::BaseTagInfo::m_tagJetInfoType
protectedinherited

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

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

◆ m_trkJetDRKtaxes

double Analysis::HadFlavorTagInfo::m_trkJetDRKtaxes
private

Definition at line 75 of file HadFlavorTagInfo.h.

◆ m_trkJetWidth

double Analysis::HadFlavorTagInfo::m_trkJetWidth
private

Definition at line 74 of file HadFlavorTagInfo.h.

◆ m_weight

double Analysis::BaseTagInfo::m_weight
protectedinherited

weight for this tag

Definition at line 76 of file BaseTagInfo.h.


The documentation for this class was generated from the following files:
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition: BaseTagInfo.h:75
Analysis::HadFlavorTagInfo::nMatchingTracks
int nMatchingTracks() const
A variable to store number of tracks matching jet.
Definition: HadFlavorTagInfo.h:95
Analysis::BaseTagInfo::m_isValid
bool m_isValid
true if the tagger could tag the jet, default is false
Definition: BaseTagInfo.h:74
Analysis::HadFlavorTagInfo::trkJetWidth
double trkJetWidth() const
A second variable to store TrackJet Width.
Definition: HadFlavorTagInfo.h:100
Analysis::BaseTagInfo::tagLikelihood
virtual const std::vector< double > & tagLikelihood(void) const
returns the tag likelihood of one tagger
Definition: BaseTagInfo.h:101
calibdata.valid
list valid
Definition: calibdata.py:45
Analysis::HadFlavorTagInfo::m_trkJetDRKtaxes
double m_trkJetDRKtaxes
Definition: HadFlavorTagInfo.h:75
Analysis::HadFlavorTagInfo::m_nMatchingTracks
int m_nMatchingTracks
Definition: HadFlavorTagInfo.h:73
Analysis::HadFlavorTagInfo::HadFlavorTagInfo
HadFlavorTagInfo()
default constructor
Definition: HadFlavorTagInfo.cxx:29
Analysis::HadFlavorTagInfo::trkJetDRKtaxes
double trkJetDRKtaxes() const
A second variable to store Max{DeltaR(trk,trk)}.
Definition: HadFlavorTagInfo.h:105
Analysis::BaseTagInfo::BaseTagInfo
BaseTagInfo()
default constructor
Definition: BaseTagInfo.cxx:29
Analysis::HadFlavorTagInfo::m_trkJetWidth
double m_trkJetWidth
Definition: HadFlavorTagInfo.h:74
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition: BaseTagInfo.h:77