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

#include <MultiSVInfoPlus.h>

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

Public Member Functions

 MultiSVInfoPlus ()
 default constructor More...
 
 MultiSVInfoPlus (const TagInfoType &x)
 constructor with info type More...
 
 MultiSVInfoPlus (const MultiSVInfoPlus &MultiSVInfoPlus)
 copy destructor More...
 
MultiSVInfoPlusoperator= (const MultiSVInfoPlus &rhs)
 assigenment operator More...
 
MultiSVInfoPlusoperator= (MultiSVInfoPlus &&rhs)
 
virtual ~MultiSVInfoPlus ()
 default destructor More...
 
virtual MultiSVInfoPlusclone () const
 a clone method for the proper workings of the copy constructor More...
 
void setNGTrackInJet (long int)
 Set methods. More...
 
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. More...
 
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. 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

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*>()){}

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

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

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

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


The documentation for this class was generated from the following files:
Analysis::MultiSVInfoPlus::m_N2Tpair
long int m_N2Tpair
Definition: MultiSVInfoPlus.h:54
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition: BaseTagInfo.h:75
Analysis::MultiSVInfoPlus::m_NGTinSvx
long int m_NGTinSvx
Definition: MultiSVInfoPlus.h:53
Analysis::BaseTagInfo::m_isValid
bool m_isValid
true if the tagger could tag the jet, default is false
Definition: BaseTagInfo.h:74
Analysis::MultiSVInfoPlus::MultiSVInfoPlus
MultiSVInfoPlus()
default constructor
Definition: MultiSVInfoPlus.cxx:10
Analysis::MultiSVInfoPlus::m_vtxInfo
std::vector< MSVVtxInfo * > m_vtxInfo
Definition: MultiSVInfoPlus.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
lumiFormat.i
int i
Definition: lumiFormat.py:85
Analysis::MultiSVInfoPlus::m_NGTinJet
long int m_NGTinJet
Definition: MultiSVInfoPlus.h:52
Analysis::MultiSVInfoPlus::m_normdist
float m_normdist
Definition: MultiSVInfoPlus.h:55
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