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

Class LifetimeInfo: Class to store information produced by the LifetimeTag. More...

#include <LifetimeInfo.h>

Inheritance diagram for Analysis::LifetimeInfo:
Collaboration diagram for Analysis::LifetimeInfo:

Public Member Functions

 LifetimeInfo ()
 default constructor
 LifetimeInfo (const TagInfoType &x)
 constructor with info type
 LifetimeInfo (const LifetimeInfo &LifetimeInfo)
 copy destructor
LifetimeInfooperator= (const LifetimeInfo &rhs)
 assigenment operator
virtual ~LifetimeInfo ()
 default destructor
virtual LifetimeInfoclone () const
 clone method
const FloatVecsignedIP () const
 The signed 2D impact parameters.
const FloatVecsignificance () const
 return significance (= signedIP/sigD0)
void setIP (const FloatVec &ipVec)
 set signed impact parameter
void setIP (FloatVec &&ipVec)
 set signed impact parameter
void setSignificance (const FloatVec &ipVec)
 set significance
void setSignificance (FloatVec &&ipVec)
 set significance
void setTrackProb (const FloatVec &vec)
 set Track probability (not ACTIVE)
void setTrackProb (FloatVec &&vec)
 set Track probability (not ACTIVE)
void setNTrackProb (double nTrackProb)
 set nTrack probability (nor ACTIVE)
const FloatVecvectorTrackProb (void) const
 return vector of Track probabilities (not ACTIVE)
double nTrackProb (void) const
 return nTrack probabilities (not ACTIVE)
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

FloatVec m_trackSIP
 signed impact parameters
FloatVec m_trackSignificance
 significance (= signedIP/sigD0)
FloatVec m_vectorOfTrackProb
 vector of track probabilities (calculated but not in use)
double m_nTrackProb
 nTrack probability (calculated but not in use)

Detailed Description

Class LifetimeInfo: Class to store information produced by the LifetimeTag.

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

Definition at line 32 of file LifetimeInfo.h.

Constructor & Destructor Documentation

◆ LifetimeInfo() [1/3]

Analysis::LifetimeInfo::LifetimeInfo ( )

default constructor

Default constructor.

Definition at line 21 of file LifetimeInfo.cxx.

21 : BaseTagInfo(),
22 m_trackSIP(std::vector<double>()),
23 m_trackSignificance(std::vector<double>()),
24 m_vectorOfTrackProb(std::vector<double>()),
25 m_nTrackProb(-1.)
26{
27 m_vectorOfTrackProb.clear();
28 m_trackSIP.clear();
29 m_trackSignificance.clear();
30}
BaseTagInfo()
default constructor
FloatVec m_trackSIP
signed impact parameters
FloatVec m_vectorOfTrackProb
vector of track probabilities (calculated but not in use)
double m_nTrackProb
nTrack probability (calculated but not in use)
FloatVec m_trackSignificance
significance (= signedIP/sigD0)

◆ LifetimeInfo() [2/3]

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

constructor with info type

Definition at line 33 of file LifetimeInfo.cxx.

33 : BaseTagInfo(tagJetInfoType),
34 m_trackSIP(std::vector<double>()),
35 m_trackSignificance(std::vector<double>()),
36 m_vectorOfTrackProb(std::vector<double>()),
37 m_nTrackProb(-1.)
38{
39 m_tagLikelihood.clear();
40 m_vectorOfTrackProb.clear();
41 m_trackSIP.clear();
42 m_trackSignificance.clear();
43}
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition BaseTagInfo.h:67

◆ LifetimeInfo() [3/3]

Analysis::LifetimeInfo::LifetimeInfo ( const LifetimeInfo & LifetimeInfo)

copy destructor

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

Definition at line 48 of file LifetimeInfo.cxx.

48 : BaseTagInfo(rhs),
49 m_trackSIP(rhs.m_trackSIP),
50 m_trackSignificance(rhs.m_trackSignificance),
51 m_vectorOfTrackProb(rhs.m_vectorOfTrackProb),
52 m_nTrackProb(rhs.m_nTrackProb)
53{}

◆ ~LifetimeInfo()

Analysis::LifetimeInfo::~LifetimeInfo ( )
virtual

default destructor

Default destructor.

Definition at line 71 of file LifetimeInfo.cxx.

72{}

Member Function Documentation

◆ clone()

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

clone method

Reimplemented from Analysis::BaseTagInfo.

Definition at line 126 of file LifetimeInfo.h.

127{
128 return new LifetimeInfo(*this);
129}
LifetimeInfo()
default constructor

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

◆ nTrackProb()

double Analysis::LifetimeInfo::nTrackProb ( void ) const
inline

return nTrack probabilities (not ACTIVE)

Definition at line 122 of file LifetimeInfo.h.

123{
124 return m_nTrackProb;
125}

◆ operator=()

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

assigenment operator

Definition at line 56 of file LifetimeInfo.cxx.

57{
58 if (this!=&rhs)
59 {
60 m_tagLikelihood=rhs.m_tagLikelihood;
61 m_vectorOfTrackProb=rhs.m_vectorOfTrackProb;
62 m_nTrackProb=rhs.m_nTrackProb;
63 m_trackSIP=rhs.m_trackSIP;
64 m_trackSignificance=rhs.m_trackSignificance;
65 m_tagJetInfoType=rhs.m_tagJetInfoType;
66 }
67 return *this;
68}

◆ setIP() [1/2]

void Analysis::LifetimeInfo::setIP ( const FloatVec & ipVec)
inline

set signed impact parameter

Definition at line 86 of file LifetimeInfo.h.

87{
88 m_trackSIP=ipVec;
89 return;
90}

◆ setIP() [2/2]

void Analysis::LifetimeInfo::setIP ( FloatVec && ipVec)
inline

set signed impact parameter

Definition at line 91 of file LifetimeInfo.h.

92{
93 m_trackSIP=std::move(ipVec);
94 return;
95}

◆ setNTrackProb()

void Analysis::LifetimeInfo::setNTrackProb ( double nTrackProb)
inline

set nTrack probability (nor ACTIVE)

Definition at line 114 of file LifetimeInfo.h.

115{
117}
double nTrackProb(void) const
return nTrack probabilities (not ACTIVE)

◆ setSignificance() [1/2]

void Analysis::LifetimeInfo::setSignificance ( const FloatVec & ipVec)
inline

set significance

Definition at line 96 of file LifetimeInfo.h.

97{
99 return;
100}

◆ setSignificance() [2/2]

void Analysis::LifetimeInfo::setSignificance ( FloatVec && ipVec)
inline

set significance

Definition at line 101 of file LifetimeInfo.h.

102{
103 m_trackSignificance=std::move(ipVec);
104 return;
105}

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

◆ setTrackProb() [1/2]

void Analysis::LifetimeInfo::setTrackProb ( const FloatVec & vec)
inline

set Track probability (not ACTIVE)

Definition at line 106 of file LifetimeInfo.h.

107{
109}
std::vector< size_t > vec

◆ setTrackProb() [2/2]

void Analysis::LifetimeInfo::setTrackProb ( FloatVec && vec)
inline

set Track probability (not ACTIVE)

Definition at line 110 of file LifetimeInfo.h.

111{
112 m_vectorOfTrackProb=std::move(vec);
113}

◆ 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

◆ signedIP()

const FloatVec & Analysis::LifetimeInfo::signedIP ( ) const
inline

The signed 2D impact parameters.

TODO: Add 3D impact parameters. return signed Impact Parameters

Definition at line 78 of file LifetimeInfo.h.

79{
80 return m_trackSIP;
81}

◆ significance()

const FloatVec & Analysis::LifetimeInfo::significance ( ) const
inline

return significance (= signedIP/sigD0)

Definition at line 82 of file LifetimeInfo.h.

83{
85}

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

◆ vectorTrackProb()

const FloatVec & Analysis::LifetimeInfo::vectorTrackProb ( void ) const
inline

return vector of Track probabilities (not ACTIVE)

Definition at line 118 of file LifetimeInfo.h.

119{
120 return m_vectorOfTrackProb;
121}

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

double Analysis::LifetimeInfo::m_nTrackProb
private

nTrack probability (calculated but not in use)

Definition at line 74 of file LifetimeInfo.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_trackSignificance

FloatVec Analysis::LifetimeInfo::m_trackSignificance
private

significance (= signedIP/sigD0)

Definition at line 71 of file LifetimeInfo.h.

◆ m_trackSIP

FloatVec Analysis::LifetimeInfo::m_trackSIP
private

signed impact parameters

Definition at line 70 of file LifetimeInfo.h.

◆ m_vectorOfTrackProb

FloatVec Analysis::LifetimeInfo::m_vectorOfTrackProb
private

vector of track probabilities (calculated but not in use)

Definition at line 73 of file LifetimeInfo.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: