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

#include <SoftElectronInfo.h>

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

Public Member Functions

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

Detailed Description

Definition at line 46 of file SoftElectronInfo.h.

Constructor & Destructor Documentation

◆ SoftElectronInfo() [1/3]

Analysis::SoftElectronInfo::SoftElectronInfo ( )

default constructor

Default constructor.

Definition at line 41 of file SoftElectronInfo.cxx.

◆ SoftElectronInfo() [2/3]

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

constructor with info type

Definition at line 50 of file SoftElectronInfo.cxx.

52 {}
53 
56 {
57  if (this!=&rhs)

◆ 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 62 of file SoftElectronInfo.cxx.

◆ ~SoftElectronInfo()

Analysis::SoftElectronInfo::~SoftElectronInfo ( )
virtual

default destructor

Default destructor.

Definition at line 84 of file SoftElectronInfo.cxx.

Member Function Documentation

◆ addTrackInfo()

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

Insert a new track info object.

Definition at line 79 of file SoftElectronInfo.h.

◆ clone()

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

Return and set methods for the likelihood.

Reimplemented from Analysis::BaseTagInfo.

Definition at line 114 of file SoftElectronInfo.h.

◆ getTrackInfo()

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

Get a track info object.

Definition at line 81 of file SoftElectronInfo.h.

81 {
83 }

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

Definition at line 110 of file SoftElectronInfo.h.

◆ numTrackInfo()

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

Number of muon track info objects stored.

Definition at line 77 of file SoftElectronInfo.h.

◆ operator=()

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

assigenment operator

Definition at line 69 of file SoftElectronInfo.cxx.

71 {}
72 
73 }
74 

◆ setNTrackProb()

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

Definition at line 102 of file SoftElectronInfo.h.

◆ 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::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 94 of file SoftElectronInfo.h.

97 {

◆ setTrackProb() [2/2]

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

Definition at line 98 of file SoftElectronInfo.h.

101 {

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

◆ vectorTrackProb()

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

Definition at line 106 of file SoftElectronInfo.h.

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

Definition at line 87 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 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_trackinfo

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

Definition at line 88 of file SoftElectronInfo.h.

◆ m_vectorOfTrackProb

FloatVec Analysis::SoftElectronInfo::m_vectorOfTrackProb
private

Definition at line 86 of file SoftElectronInfo.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
Analysis::BaseTagInfo::m_isValid
bool m_isValid
true if the tagger could tag the jet, default is false
Definition: BaseTagInfo.h:74
Analysis::BaseTagInfo::tagLikelihood
virtual const std::vector< double > & tagLikelihood(void) const
returns the tag likelihood of one tagger
Definition: BaseTagInfo.h:101
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::SoftElectronInfo::SoftElectronInfo
SoftElectronInfo()
default constructor
Definition: SoftElectronInfo.cxx:41
Analysis::SoftElectronInfo::m_vectorOfTrackProb
FloatVec m_vectorOfTrackProb
Definition: SoftElectronInfo.h:86
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::SoftElectronInfo::operator=
SoftElectronInfo & operator=(const SoftElectronInfo &rhs)
assigenment operator
Definition: SoftElectronInfo.cxx:69