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

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

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

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 40 of file LifetimeInfo.h.

Constructor & Destructor Documentation

◆ LifetimeInfo() [1/3]

Analysis::LifetimeInfo::LifetimeInfo ( )

default constructor

Default constructor.

Definition at line 29 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 {

◆ LifetimeInfo() [2/3]

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

constructor with info type

Definition at line 41 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),

◆ 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 56 of file LifetimeInfo.cxx.

57 {
58  if (this!=&rhs)
59  {
60  m_tagLikelihood=rhs.m_tagLikelihood;
61  m_vectorOfTrackProb=rhs.m_vectorOfTrackProb;

◆ ~LifetimeInfo()

Analysis::LifetimeInfo::~LifetimeInfo ( )
virtual

default destructor

Default destructor.

Definition at line 79 of file LifetimeInfo.cxx.

Member Function Documentation

◆ clone()

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

clone method

Reimplemented from Analysis::BaseTagInfo.

Definition at line 134 of file LifetimeInfo.h.

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

◆ nTrackProb()

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

return nTrack probabilities (not ACTIVE)

Definition at line 130 of file LifetimeInfo.h.

◆ operator=()

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

assigenment operator

Definition at line 64 of file LifetimeInfo.cxx.

72 {}
73 
74 }
75 

◆ setIP() [1/2]

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

set signed impact parameter

Definition at line 94 of file LifetimeInfo.h.

97 {
98  m_trackSignificance=ipVec;

◆ setIP() [2/2]

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

set signed impact parameter

Definition at line 99 of file LifetimeInfo.h.

102 {
103  m_trackSignificance=std::move(ipVec);

◆ setNTrackProb()

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

set nTrack probability (nor ACTIVE)

Definition at line 122 of file LifetimeInfo.h.

123 {
124  return m_nTrackProb;
125 }

◆ setSignificance() [1/2]

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

set significance

Definition at line 104 of file LifetimeInfo.h.

107 {

◆ setSignificance() [2/2]

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

set significance

Definition at line 109 of file LifetimeInfo.h.

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

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

◆ setTrackProb() [1/2]

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

set Track probability (not ACTIVE)

Definition at line 114 of file LifetimeInfo.h.

115 {
117 }

◆ setTrackProb() [2/2]

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

set Track probability (not ACTIVE)

Definition at line 118 of file LifetimeInfo.h.

119 {
120  return m_vectorOfTrackProb;
121 }

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

◆ 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 86 of file LifetimeInfo.h.

87 {
88  m_trackSIP=ipVec;
89  return;

◆ significance()

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

return significance (= signedIP/sigD0)

Definition at line 90 of file LifetimeInfo.h.

92 {
93  m_trackSIP=std::move(ipVec);

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

◆ vectorTrackProb()

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

return vector of Track probabilities (not ACTIVE)

Definition at line 126 of file LifetimeInfo.h.

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

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

double Analysis::LifetimeInfo::m_nTrackProb
private

nTrack probability (calculated but not in use)

Definition at line 82 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 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_trackSignificance

FloatVec Analysis::LifetimeInfo::m_trackSignificance
private

significance (= signedIP/sigD0)

Definition at line 79 of file LifetimeInfo.h.

◆ m_trackSIP

FloatVec Analysis::LifetimeInfo::m_trackSIP
private

signed impact parameters

Definition at line 78 of file LifetimeInfo.h.

◆ m_vectorOfTrackProb

FloatVec Analysis::LifetimeInfo::m_vectorOfTrackProb
private

vector of track probabilities (calculated but not in use)

Definition at line 81 of file LifetimeInfo.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
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
Analysis::BaseTagInfo::m_isValid
bool m_isValid
true if the tagger could tag the jet, default is false
Definition: BaseTagInfo.h:74
Analysis::LifetimeInfo::m_trackSignificance
FloatVec m_trackSignificance
significance (= signedIP/sigD0)
Definition: LifetimeInfo.h:79
Analysis::BaseTagInfo::tagLikelihood
virtual const std::vector< double > & tagLikelihood(void) const
returns the tag likelihood of one tagger
Definition: BaseTagInfo.h:101
Analysis::LifetimeInfo::nTrackProb
double nTrackProb(void) const
return nTrack probabilities (not ACTIVE)
Definition: LifetimeInfo.h:130
CxxUtils::vec
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
Definition: vec.h:207
calibdata.valid
list valid
Definition: calibdata.py:45
Analysis::LifetimeInfo::m_trackSIP
FloatVec m_trackSIP
signed impact parameters
Definition: LifetimeInfo.h:78
Analysis::LifetimeInfo::m_vectorOfTrackProb
FloatVec m_vectorOfTrackProb
vector of track probabilities (calculated but not in use)
Definition: LifetimeInfo.h:81
Analysis::LifetimeInfo::LifetimeInfo
LifetimeInfo()
default constructor
Definition: LifetimeInfo.cxx:29
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::LifetimeInfo::m_nTrackProb
double m_nTrackProb
nTrack probability (calculated but not in use)
Definition: LifetimeInfo.h:82