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

#include <IPInfoBase.h>

Inheritance diagram for Analysis::IPInfoBase:
Collaboration diagram for Analysis::IPInfoBase:

Public Member Functions

 IPInfoBase ()
 default constructor More...
 
 IPInfoBase (const TagInfoType &x)
 constructor with info type More...
 
 IPInfoBase (const IPInfoBase &IPInfoBase)
 copy destructor More...
 
IPInfoBaseoperator= (const IPInfoBase &rhs)
 assigenment operator More...
 
virtual ~IPInfoBase ()
 default destructor More...
 
virtual IPInfoBaseclone () const
 a clone method for the proper workings of the copy constructor More...
 
void nbTracks (int n)
 
int nbTracks () 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

int m_ntrk
 

Detailed Description

Basic class to hold IP taggers results

Definition at line 21 of file IPInfoBase.h.

Constructor & Destructor Documentation

◆ IPInfoBase() [1/3]

Analysis::IPInfoBase::IPInfoBase ( )

default constructor

Default constructor.

Definition at line 15 of file IPInfoBase.cxx.

15  : BaseTagInfo(), m_ntrk(0) {
16  m_tagLikelihood.clear();
17  }

◆ IPInfoBase() [2/3]

Analysis::IPInfoBase::IPInfoBase ( const TagInfoType x)

constructor with info type

Definition at line 20 of file IPInfoBase.cxx.

20  : BaseTagInfo(tagJetInfoType), m_ntrk(0) {
21  m_tagLikelihood.clear();
22  }

◆ IPInfoBase() [3/3]

Analysis::IPInfoBase::IPInfoBase ( const IPInfoBase IPInfoBase)

copy destructor

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

Definition at line 27 of file IPInfoBase.cxx.

27  : BaseTagInfo(rhs), m_ntrk(rhs.m_ntrk) {
28  }

◆ ~IPInfoBase()

Analysis::IPInfoBase::~IPInfoBase ( )
virtual

default destructor

Default destructor.

Definition at line 43 of file IPInfoBase.cxx.

43  {
44  }

Member Function Documentation

◆ clone()

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

a clone method for the proper workings of the copy constructor

Reimplemented from Analysis::BaseTagInfo.

Definition at line 54 of file IPInfoBase.h.

54  {
55  return new IPInfoBase(*this);
56 }

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

◆ nbTracks() [1/2]

int Analysis::IPInfoBase::nbTracks ( ) const
inline

Definition at line 40 of file IPInfoBase.h.

40 { return m_ntrk; }

◆ nbTracks() [2/2]

void Analysis::IPInfoBase::nbTracks ( int  n)
inline

Definition at line 39 of file IPInfoBase.h.

39 { m_ntrk = n; }

◆ operator=()

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

assigenment operator

Definition at line 31 of file IPInfoBase.cxx.

32  {
33  if (this!=&rhs)
34  {
35  m_tagLikelihood=rhs.m_tagLikelihood;
36  m_tagJetInfoType=rhs.m_tagJetInfoType;
37  m_ntrk=rhs.m_ntrk;
38  }
39  return *this;
40  }

◆ 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_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_ntrk

int Analysis::IPInfoBase::m_ntrk
private

Definition at line 43 of file IPInfoBase.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
calibdata.valid
list valid
Definition: calibdata.py:45
Analysis::IPInfoBase::IPInfoBase
IPInfoBase()
default constructor
Definition: IPInfoBase.cxx:15
beamspotman.n
n
Definition: beamspotman.py:731
Analysis::IPInfoBase::m_ntrk
int m_ntrk
Definition: IPInfoBase.h:43
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