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

Class QGPartonTruthInfo: Class to store more truth information about a JetTag (e.g. More...

#include <QGPartonTruthInfo.h>

Inheritance diagram for Analysis::QGPartonTruthInfo:
Collaboration diagram for Analysis::QGPartonTruthInfo:

Public Member Functions

 QGPartonTruthInfo ()
 default constructor More...
 
 QGPartonTruthInfo (const TagInfoType &x)
 constructor with info type More...
 
 QGPartonTruthInfo (const QGPartonTruthInfo &QGPartonTruthInfo)
 copy destructor More...
 
QGPartonTruthInfooperator= (const QGPartonTruthInfo &rhs)
 assigenment operator More...
 
virtual ~QGPartonTruthInfo ()
 default destructor More...
 
virtual QGPartonTruthInfoclone () const
 clone method More...
 
const std::string & jetTruthLabel () const
 return the truth label More...
 
void setJetTruthLabel (const std::string &jetTruthLabel)
 set the truth label The string with which to set the truth label is stored in the JetTruthMatch algtool itself. More...
 
void deltaRToParton (double dR)
 min deltaR to quarks: More...
 
double deltaRToParton () const
 
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

std::string m_jetTruthLabel
 
double m_distanceToParton
 

Detailed Description

Class QGPartonTruthInfo: Class to store more truth information about a JetTag (e.g.

jet truth labeling)

Definition at line 17 of file QGPartonTruthInfo.h.

Constructor & Destructor Documentation

◆ QGPartonTruthInfo() [1/3]

Analysis::QGPartonTruthInfo::QGPartonTruthInfo ( )

default constructor

Default constructor.

Definition at line 13 of file QGPartonTruthInfo.cxx.

14  : BaseTagInfo(),
15  m_jetTruthLabel("N/A"),
16  m_distanceToParton (999.)
17 {}

◆ QGPartonTruthInfo() [2/3]

Analysis::QGPartonTruthInfo::QGPartonTruthInfo ( const TagInfoType x)

constructor with info type

Definition at line 20 of file QGPartonTruthInfo.cxx.

21  : BaseTagInfo(tagJetInfoType),
22  m_jetTruthLabel("N/A"),
23  m_distanceToParton (999.)
24 {}

◆ QGPartonTruthInfo() [3/3]

Analysis::QGPartonTruthInfo::QGPartonTruthInfo ( const QGPartonTruthInfo QGPartonTruthInfo)

copy destructor

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

Definition at line 29 of file QGPartonTruthInfo.cxx.

30  : BaseTagInfo(rhs),
31  m_jetTruthLabel(rhs.m_jetTruthLabel),
32  m_distanceToParton(rhs.m_distanceToParton)
33 {}

◆ ~QGPartonTruthInfo()

Analysis::QGPartonTruthInfo::~QGPartonTruthInfo ( )
virtual

default destructor

Default destructor.

Definition at line 47 of file QGPartonTruthInfo.cxx.

48 {}

Member Function Documentation

◆ clone()

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

clone method

Reimplemented from Analysis::BaseTagInfo.

Definition at line 60 of file QGPartonTruthInfo.h.

61 {
62  return new QGPartonTruthInfo(*this);
63 }

◆ deltaRToParton() [1/2]

double Analysis::QGPartonTruthInfo::deltaRToParton ( ) const

Definition at line 54 of file QGPartonTruthInfo.cxx.

54  {
55  double dR = 9999.;
56  dR = m_distanceToParton;
57  return dR;
58 }

◆ deltaRToParton() [2/2]

void Analysis::QGPartonTruthInfo::deltaRToParton ( double  dR)

min deltaR to quarks:

Definition at line 50 of file QGPartonTruthInfo.cxx.

50  {
51  m_distanceToParton = dR;
52 }

◆ 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 }

◆ jetTruthLabel()

const std::string & Analysis::QGPartonTruthInfo::jetTruthLabel ( ) const
inline

return the truth label

Definition at line 65 of file QGPartonTruthInfo.h.

66 {
67  return m_jetTruthLabel;
68 }

◆ 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 }

◆ operator=()

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

assigenment operator

Definition at line 36 of file QGPartonTruthInfo.cxx.

37 {
38  if (this!=&rhs)
39  {
40  m_jetTruthLabel=rhs.m_jetTruthLabel;
41  m_distanceToParton=rhs.m_distanceToParton;
42  }
43  return *this;
44 }

◆ setJetTruthLabel()

void Analysis::QGPartonTruthInfo::setJetTruthLabel ( const std::string &  jetTruthLabel)
inline

set the truth label The string with which to set the truth label is stored in the JetTruthMatch algtool itself.

It is passed into the info object by the BTagTool after a successful truth match (otherwise it stays at the default value of "N/A"). The truth label string itself has to be passed into the JetTruthMatch algtool via jobOptions. For the JetTruthMatch algtool instance used by the BTagTool this is set to "b" (and the pdg reference list is set to all b particles).

Definition at line 70 of file QGPartonTruthInfo.h.

71 {
73 }

◆ 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.

◆ 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 {

◆ 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_distanceToParton

double Analysis::QGPartonTruthInfo::m_distanceToParton
private

Definition at line 56 of file QGPartonTruthInfo.h.

◆ 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_jetTruthLabel

std::string Analysis::QGPartonTruthInfo::m_jetTruthLabel
private

Definition at line 55 of file QGPartonTruthInfo.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_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::BaseTagInfo::m_isValid
bool m_isValid
true if the tagger could tag the jet, default is false
Definition: BaseTagInfo.h:74
Analysis::BaseTagInfo::tagLikelihood
virtual const std::vector< double > & tagLikelihood(void) const
returns the tag likelihood of one tagger
Definition: BaseTagInfo.h:101
Analysis::QGPartonTruthInfo::m_jetTruthLabel
std::string m_jetTruthLabel
Definition: QGPartonTruthInfo.h:55
calibdata.valid
list valid
Definition: calibdata.py:45
Analysis::QGPartonTruthInfo::jetTruthLabel
const std::string & jetTruthLabel() const
return the truth label
Definition: QGPartonTruthInfo.h:65
Analysis::QGPartonTruthInfo::m_distanceToParton
double m_distanceToParton
Definition: QGPartonTruthInfo.h:56
Analysis::BaseTagInfo::BaseTagInfo
BaseTagInfo()
default constructor
Definition: BaseTagInfo.cxx:29
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition: BaseTagInfo.h:77
Analysis::QGPartonTruthInfo::QGPartonTruthInfo
QGPartonTruthInfo()
default constructor
Definition: QGPartonTruthInfo.cxx:13