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

Class BasetagInfo: Implements methods defined in ITagInfo. More...

#include <BaseTagInfo.h>

Inherits JetTagInfoBase.

Inherited by Analysis::AtlfInfo, Analysis::GbbNNTagInfo, Analysis::HadFlavorTagInfo, Analysis::IJetFitterTagInfo [virtual], Analysis::IPInfoBase, Analysis::IPInfoPlus, Analysis::JetProbInfoBase, Analysis::LifetimeInfo, Analysis::MultiSVInfoPlus, Analysis::QGPartonTruthInfo, Analysis::SecVtxInfo, Analysis::SoftElectronInfo, Analysis::SoftLeptonTruthInfo, Analysis::SoftMuonInfo, Analysis::SVInfoBase, Analysis::SVInfoPlus, Analysis::SvxSummary, Analysis::TrackCountingInfo, and Analysis::TruthInfo.

Collaboration diagram for Analysis::BaseTagInfo:

Public Member Functions

 BaseTagInfo ()
 default constructor More...
 
 BaseTagInfo (const TagInfoType &x)
 constructor with info type More...
 
 BaseTagInfo (const BaseTagInfo &BaseTagInfo)
 copy destructor More...
 
BaseTagInfooperator= (const BaseTagInfo &rhs)
 assigenment operator More...
 
virtual ~BaseTagInfo ()
 default destructor More...
 
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...
 
virtual BaseTagInfoclone () const
 a clone method for the proper workings of the copy constructor 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...
 

Friends

class Analysis::BaseTagInfoCnv_p1
 

Detailed Description

Class BasetagInfo: Implements methods defined in ITagInfo.

Author
Andre.nosp@m.as.W.nosp@m.ildau.nosp@m.er@c.nosp@m.ern.c.nosp@m.h

Definition at line 39 of file BaseTagInfo.h.

Constructor & Destructor Documentation

◆ BaseTagInfo() [1/3]

Analysis::BaseTagInfo::BaseTagInfo ( )

default constructor

Default constructor.

Definition at line 29 of file BaseTagInfo.cxx.

31  : JetTagInfoBase(),
32  m_isValid(false),
33  m_tagLikelihood(std::vector<double>()),
34  m_weight(0.),
35  m_tagJetInfoType(tagJetInfoType)
36 {

◆ BaseTagInfo() [2/3]

Analysis::BaseTagInfo::BaseTagInfo ( const TagInfoType x)

constructor with info type

Definition at line 39 of file BaseTagInfo.cxx.

43  : JetTagInfoBase(rhs),
44  m_isValid(rhs.m_isValid),
45  m_tagLikelihood(rhs.m_tagLikelihood),
46  m_weight(rhs.m_weight),

◆ BaseTagInfo() [3/3]

Analysis::BaseTagInfo::BaseTagInfo ( const BaseTagInfo BaseTagInfo)

copy destructor

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

Definition at line 51 of file BaseTagInfo.cxx.

52 {
53  if (this!=&rhs)
54  {
55  m_isValid=rhs.m_isValid;
56  m_tagLikelihood=rhs.m_tagLikelihood;

◆ ~BaseTagInfo()

Analysis::BaseTagInfo::~BaseTagInfo ( )
virtual

default destructor

Default destructor.

Definition at line 72 of file BaseTagInfo.cxx.

Member Function Documentation

◆ clone()

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

◆ infoType()

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

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
inlinevirtual

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 ( )
inlinevirtual

sets the isValid flag to true, cannot be reversed!

Implements Analysis::ITagInfo.

Definition at line 85 of file BaseTagInfo.h.

86 {
88 }

◆ operator=()

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

assigenment operator

Definition at line 59 of file BaseTagInfo.cxx.

65 {}
66 
67 }

◆ setTagJetInfoType()

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

Definition at line 129 of file BaseTagInfo.h.

◆ setTagLikelihood() [1/2]

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

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)
inlinevirtual

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)
inlineprotected

Definition at line 125 of file BaseTagInfo.h.

◆ setWeight()

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

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
inlinevirtual

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
inlinevirtual

get the weight of one tagger

Implements Analysis::ITagInfo.

Definition at line 117 of file BaseTagInfo.h.

118 {
119  m_isValid = valid;
120 }

Friends And Related Function Documentation

◆ Analysis::BaseTagInfoCnv_p1

friend class Analysis::BaseTagInfoCnv_p1
friend

Definition at line 70 of file BaseTagInfo.h.

Member Data Documentation

◆ m_isValid

bool Analysis::BaseTagInfo::m_isValid
protected

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

Definition at line 74 of file BaseTagInfo.h.

◆ m_tagJetInfoType

TagInfoType Analysis::BaseTagInfo::m_tagJetInfoType
protected

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
protected

vector to hold the taglikelihood (signal plus N background)

Definition at line 75 of file BaseTagInfo.h.

◆ m_weight

double Analysis::BaseTagInfo::m_weight
protected

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
JetTagInfoBase
Definition: JetTagInfoBase.h:56
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
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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::BaseTagInfo::m_weight
double m_weight
weight for this tag
Definition: BaseTagInfo.h:76