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

#include <SoftElectronInfo.h>

Inheritance diagram for Analysis::SoftElectronInfo:
Collaboration diagram for Analysis::SoftElectronInfo:

Public Member Functions

 SoftElectronInfo ()
 default constructor
 SoftElectronInfo (const TagInfoType &x)
 constructor with info type
 SoftElectronInfo (const SoftElectronInfo &SoftElectronInfo)
 copy destructor
SoftElectronInfooperator= (const SoftElectronInfo &rhs)
 assigenment operator
virtual ~SoftElectronInfo ()
 default destructor
virtual SoftElectronInfoclone () const
 Return and set methods for the likelihood.
void setTrackProb (const FloatVec &vec)
 Return and set methods for the signal and background likelihood.
void setTrackProb (FloatVec &&vec)
void setNTrackProb (double nTrackProb)
const FloatVecvectorTrackProb (void) const
double nTrackProb (void) const
int numTrackInfo () const
 Number of muon track info objects stored.
void addTrackInfo (const SETrackInfo &i)
 Insert a new track info object.
const SETrackInfogetTrackInfo (uint i) const
 Get a track info object.
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_vectorOfTrackProb
double m_nTrackProb
std::vector< SETrackInfom_trackinfo

Detailed Description

Definition at line 32 of file SoftElectronInfo.h.

Constructor & Destructor Documentation

◆ SoftElectronInfo() [1/3]

Analysis::SoftElectronInfo::SoftElectronInfo ( )

default constructor

Default constructor.

Definition at line 27 of file SoftElectronInfo.cxx.

28 : BaseTagInfo(),
29 m_nTrackProb(0),
31{
32
33}
BaseTagInfo()
default constructor
std::vector< SETrackInfo > m_trackinfo

◆ SoftElectronInfo() [2/3]

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

constructor with info type

Definition at line 36 of file SoftElectronInfo.cxx.

36 : BaseTagInfo(tagJetInfoType),
37 m_vectorOfTrackProb(std::vector<double>()),
39
40{
41 m_vectorOfTrackProb.clear();
42 m_trackinfo.clear();
43}

◆ SoftElectronInfo() [3/3]

Analysis::SoftElectronInfo::SoftElectronInfo ( const SoftElectronInfo & SoftElectronInfo)

copy destructor

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

Definition at line 48 of file SoftElectronInfo.cxx.

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

◆ ~SoftElectronInfo()

Analysis::SoftElectronInfo::~SoftElectronInfo ( )
virtual

default destructor

Default destructor.

Definition at line 70 of file SoftElectronInfo.cxx.

71{}

Member Function Documentation

◆ addTrackInfo()

void Analysis::SoftElectronInfo::addTrackInfo ( const SETrackInfo & i)
inline

Insert a new track info object.

Definition at line 65 of file SoftElectronInfo.h.

65{ m_trackinfo.push_back(i); }

◆ clone()

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

Return and set methods for the likelihood.

Reimplemented from Analysis::BaseTagInfo.

Definition at line 100 of file SoftElectronInfo.h.

101{
102 return new SoftElectronInfo(*this);
103}
SoftElectronInfo()
default constructor

◆ getTrackInfo()

const SETrackInfo & Analysis::SoftElectronInfo::getTrackInfo ( uint i) const
inline

Get a track info object.

Definition at line 67 of file SoftElectronInfo.h.

67 {
68 return m_trackinfo.at(i);
69 }

◆ 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::SoftElectronInfo::nTrackProb ( void ) const
inline

Definition at line 96 of file SoftElectronInfo.h.

97{
98 return m_nTrackProb;
99}

◆ numTrackInfo()

int Analysis::SoftElectronInfo::numTrackInfo ( ) const
inline

Number of muon track info objects stored.

Definition at line 63 of file SoftElectronInfo.h.

63{ return m_trackinfo.size();}

◆ operator=()

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

assigenment operator

Definition at line 55 of file SoftElectronInfo.cxx.

56{
57 if (this!=&rhs)
58 {
59 m_trackinfo=rhs.m_trackinfo;
60 m_tagLikelihood=rhs.m_tagLikelihood;
61 m_vectorOfTrackProb=rhs.m_vectorOfTrackProb;
62 m_nTrackProb=rhs.m_nTrackProb;
63 m_tagJetInfoType=rhs.m_tagJetInfoType;
64
65 }
66 return *this;
67}
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition BaseTagInfo.h:67

◆ setNTrackProb()

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

Definition at line 88 of file SoftElectronInfo.h.

89{
91}
double nTrackProb(void) const

◆ 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::SoftElectronInfo::setTrackProb ( const FloatVec & vec)
inline

Return and set methods for the signal and background likelihood.

Both numbers are needed in order to make normalisation possible when calculating the combined likelihood in the algorithm.

Definition at line 80 of file SoftElectronInfo.h.

81{
83}
std::vector< size_t > vec

◆ setTrackProb() [2/2]

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

Definition at line 84 of file SoftElectronInfo.h.

85{
86 m_vectorOfTrackProb=std::move(vec);
87}

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

◆ vectorTrackProb()

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

Definition at line 92 of file SoftElectronInfo.h.

93{
95}

◆ 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::SoftElectronInfo::m_nTrackProb
private

Definition at line 73 of file SoftElectronInfo.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_trackinfo

std::vector<SETrackInfo> Analysis::SoftElectronInfo::m_trackinfo
private

Definition at line 74 of file SoftElectronInfo.h.

◆ m_vectorOfTrackProb

FloatVec Analysis::SoftElectronInfo::m_vectorOfTrackProb
private

Definition at line 72 of file SoftElectronInfo.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: