ATLAS Offline Software
Loading...
Searching...
No Matches
Analysis::MultiSVInfoPlus Class Reference

#include <MultiSVInfoPlus.h>

Inheritance diagram for Analysis::MultiSVInfoPlus:
Collaboration diagram for Analysis::MultiSVInfoPlus:

Public Member Functions

 MultiSVInfoPlus ()
 default constructor
 MultiSVInfoPlus (const TagInfoType &x)
 constructor with info type
 MultiSVInfoPlus (const MultiSVInfoPlus &MultiSVInfoPlus)
 copy destructor
MultiSVInfoPlusoperator= (const MultiSVInfoPlus &rhs)
 assigenment operator
MultiSVInfoPlusoperator= (MultiSVInfoPlus &&rhs)
virtual ~MultiSVInfoPlus ()
 default destructor
virtual MultiSVInfoPlusclone () const
 a clone method for the proper workings of the copy constructor
void setNGTrackInJet (long int)
 Set methods.
void setNGTrackInSvx (long int)
void setN2T (long int)
void setNormDist (float)
void addVtxInfo (MSVVtxInfo *)
void addVtxInfo (std::unique_ptr< MSVVtxInfo >)
long int getNGTrackInJet () const
 Get methods.
long int getNGTrackInSvx () const
long int getN2T () const
float getNormDist () const
int numVtxInfo () const
const MSVVtxInfogetVtxInfo (unsigned int i) const
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

long int m_NGTinJet
long int m_NGTinSvx
long int m_N2Tpair
float m_normdist
std::vector< MSVVtxInfo * > m_vtxInfo

Detailed Description

Definition at line 15 of file MultiSVInfoPlus.h.

Constructor & Destructor Documentation

◆ MultiSVInfoPlus() [1/3]

Analysis::MultiSVInfoPlus::MultiSVInfoPlus ( )

default constructor

Definition at line 10 of file MultiSVInfoPlus.cxx.

10 : BaseTagInfo(),
11 m_NGTinJet(-1),
12 m_NGTinSvx(-1),
13 m_N2Tpair(-1),
14 m_normdist(-1.),
15 m_vtxInfo(std::vector<MSVVtxInfo*>()){}
BaseTagInfo()
default constructor
std::vector< MSVVtxInfo * > m_vtxInfo

◆ MultiSVInfoPlus() [2/3]

Analysis::MultiSVInfoPlus::MultiSVInfoPlus ( const TagInfoType & x)

constructor with info type

Definition at line 17 of file MultiSVInfoPlus.cxx.

17 : BaseTagInfo(tagJetInfoType),
18 m_NGTinJet(-1),
19 m_NGTinSvx(-1),
20 m_N2Tpair(-1),
21 m_normdist(-1.),
22 m_vtxInfo(std::vector<MSVVtxInfo*>())
23 {
24 m_tagLikelihood.clear();
25 }
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition BaseTagInfo.h:67

◆ MultiSVInfoPlus() [3/3]

Analysis::MultiSVInfoPlus::MultiSVInfoPlus ( const MultiSVInfoPlus & MultiSVInfoPlus)

copy destructor

Definition at line 28 of file MultiSVInfoPlus.cxx.

28 : BaseTagInfo(rhs),
29 m_NGTinJet(rhs.m_NGTinJet),
30 m_NGTinSvx(rhs.m_NGTinSvx),
31 m_N2Tpair(rhs.m_N2Tpair),
32 m_normdist(rhs.m_normdist)
33 {
34 m_vtxInfo.clear();
35 for(unsigned int i=0; i<rhs.m_vtxInfo.size(); ++i){
36 m_vtxInfo.push_back(new MSVVtxInfo( *(rhs.m_vtxInfo[i]) ) );
37 }
38 }

◆ ~MultiSVInfoPlus()

Analysis::MultiSVInfoPlus::~MultiSVInfoPlus ( )
virtual

default destructor

Definition at line 77 of file MultiSVInfoPlus.cxx.

77 {
78 for(unsigned int i=0; i<m_vtxInfo.size(); ++i)delete m_vtxInfo[i];
79 }

Member Function Documentation

◆ addVtxInfo() [1/2]

void Analysis::MultiSVInfoPlus::addVtxInfo ( MSVVtxInfo * i)
inline

Definition at line 65 of file MultiSVInfoPlus.h.

65{ m_vtxInfo.push_back(i); }

◆ addVtxInfo() [2/2]

void Analysis::MultiSVInfoPlus::addVtxInfo ( std::unique_ptr< MSVVtxInfo > i)
inline

Definition at line 66 of file MultiSVInfoPlus.h.

66{ m_vtxInfo.push_back(i.release()); }

◆ clone()

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

a clone method for the proper workings of the copy constructor

Reimplemented from Analysis::BaseTagInfo.

Definition at line 75 of file MultiSVInfoPlus.h.

76{
77 return new MultiSVInfoPlus(*this);
78}
MultiSVInfoPlus()
default constructor

◆ getN2T()

long int Analysis::MultiSVInfoPlus::getN2T ( ) const
inline

Definition at line 70 of file MultiSVInfoPlus.h.

70{return m_N2Tpair;}

◆ getNGTrackInJet()

long int Analysis::MultiSVInfoPlus::getNGTrackInJet ( ) const
inline

Get methods.

Definition at line 68 of file MultiSVInfoPlus.h.

68{return m_NGTinJet;}

◆ getNGTrackInSvx()

long int Analysis::MultiSVInfoPlus::getNGTrackInSvx ( ) const
inline

Definition at line 69 of file MultiSVInfoPlus.h.

69{return m_NGTinSvx;}

◆ getNormDist()

float Analysis::MultiSVInfoPlus::getNormDist ( ) const
inline

Definition at line 71 of file MultiSVInfoPlus.h.

71{return m_normdist;}

◆ getVtxInfo()

const MSVVtxInfo * Analysis::MultiSVInfoPlus::getVtxInfo ( unsigned int i) const
inline

Definition at line 73 of file MultiSVInfoPlus.h.

73{return m_vtxInfo.at(i);}

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

◆ numVtxInfo()

int Analysis::MultiSVInfoPlus::numVtxInfo ( ) const
inline

Definition at line 72 of file MultiSVInfoPlus.h.

72{return m_vtxInfo.size();}

◆ operator=() [1/2]

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

assigenment operator

Definition at line 40 of file MultiSVInfoPlus.cxx.

41 {
42 if (this!=&rhs)
43 {
44 m_tagLikelihood=rhs.m_tagLikelihood;
45 m_NGTinJet = rhs.m_NGTinJet;
46 m_NGTinSvx = rhs.m_NGTinSvx;
47 m_N2Tpair = rhs.m_N2Tpair;
48 m_normdist = rhs.m_normdist;
49 for(unsigned int i=0; i<m_vtxInfo.size(); ++i)delete m_vtxInfo[i];
50 m_vtxInfo.clear();
51 for(unsigned int i=0; i<rhs.m_vtxInfo.size(); ++i){
52 m_vtxInfo.push_back(new MSVVtxInfo( *(rhs.m_vtxInfo[i]) ) );
53 }
54 m_vtxInfo = rhs.m_vtxInfo;
55 m_tagJetInfoType=rhs.m_tagJetInfoType;
56 }
57 return *this;
58 }

◆ operator=() [2/2]

MultiSVInfoPlus & Analysis::MultiSVInfoPlus::operator= ( MultiSVInfoPlus && rhs)

Definition at line 60 of file MultiSVInfoPlus.cxx.

61 {
62 if (this!=&rhs)
63 {
64 m_tagLikelihood=rhs.m_tagLikelihood;
65 m_NGTinJet = rhs.m_NGTinJet;
66 m_NGTinSvx = rhs.m_NGTinSvx;
67 m_N2Tpair = rhs.m_N2Tpair;
68 m_normdist = rhs.m_normdist;
69 for(unsigned int i=0; i<m_vtxInfo.size(); ++i)
70 delete m_vtxInfo[i];
71 m_vtxInfo = std::move(rhs.m_vtxInfo);
72 m_tagJetInfoType=rhs.m_tagJetInfoType;
73 }
74 return *this;
75 }

◆ setN2T()

void Analysis::MultiSVInfoPlus::setN2T ( long int li)
inline

Definition at line 63 of file MultiSVInfoPlus.h.

63{m_N2Tpair = li;}

◆ setNGTrackInJet()

void Analysis::MultiSVInfoPlus::setNGTrackInJet ( long int li)
inline

Set methods.

Definition at line 61 of file MultiSVInfoPlus.h.

61{m_NGTinJet = li;}

◆ setNGTrackInSvx()

void Analysis::MultiSVInfoPlus::setNGTrackInSvx ( long int li)
inline

Definition at line 62 of file MultiSVInfoPlus.h.

62{m_NGTinSvx = li;}

◆ setNormDist()

void Analysis::MultiSVInfoPlus::setNormDist ( float nd)
inline

Definition at line 64 of file MultiSVInfoPlus.h.

64{m_normdist = nd;}

◆ 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

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

long int Analysis::MultiSVInfoPlus::m_N2Tpair
private

Definition at line 54 of file MultiSVInfoPlus.h.

◆ m_NGTinJet

long int Analysis::MultiSVInfoPlus::m_NGTinJet
private

Definition at line 52 of file MultiSVInfoPlus.h.

◆ m_NGTinSvx

long int Analysis::MultiSVInfoPlus::m_NGTinSvx
private

Definition at line 53 of file MultiSVInfoPlus.h.

◆ m_normdist

float Analysis::MultiSVInfoPlus::m_normdist
private

Definition at line 55 of file MultiSVInfoPlus.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_vtxInfo

std::vector<MSVVtxInfo*> Analysis::MultiSVInfoPlus::m_vtxInfo
private

Definition at line 56 of file MultiSVInfoPlus.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: