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

#include <AtlfInfo.h>

Inheritance diagram for Analysis::AtlfInfo:
Collaboration diagram for Analysis::AtlfInfo:

Public Member Functions

 AtlfInfo ()
 default constructor More...
 
 AtlfInfo (const TagInfoType &x)
 constructor with info type More...
 
 AtlfInfo (const AtlfInfo &AtlfInfo)
 copy destructor More...
 
AtlfInfooperator= (const AtlfInfo &rhs)
 assigenment operator More...
 
virtual ~AtlfInfo ()
 default destructor More...
 
virtual AtlfInfoclone () const
 a clone method for the proper workings of the copy constructor More...
 
void isBTagged (bool b)
 
bool isBTagged () const
 
void isTauTagged (bool b)
 
bool isTauTagged () const
 
void isTau1PTagged (bool b)
 
bool isTau1PTagged () const
 
void isTau3PTagged (bool b)
 
bool isTau3PTagged () const
 
void LightHypoCalFactor (float c)
 
float LightHypoCalFactor () const
 
void TauHypoCalFactor (float c)
 
float TauHypoCalFactor () const
 
void Tau1P3PHypoCalFactor (float c)
 
float Tau1P3PHypoCalFactor () const
 
void BHypoCalFactor (float c)
 
float BHypoCalFactor () const
 
void deltaRMinTo (const std::string &, float)
 min deltaR to b,c quarks/tau lepton: More...
 
float deltaRMinTo (const std::string &) 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

bool m_isBTagged
 
bool m_isTauTagged
 
bool m_isTau1PTagged
 
bool m_isTau3PTagged
 
float m_calFactLight
 
float m_calFactTau
 
float m_calFactTau1P3P
 
float m_calFactB
 
float m_distanceToBQuark
 
float m_distanceToCQuark
 
float m_distanceToTLepton
 

Detailed Description

Basic class to hold Atlfast Info

Definition at line 16 of file AtlfInfo.h.

Constructor & Destructor Documentation

◆ AtlfInfo() [1/3]

Analysis::AtlfInfo::AtlfInfo ( )

default constructor

Default constructor.

Definition at line 10 of file AtlfInfo.cxx.

10  : BaseTagInfo(),
11  m_isBTagged(false),
12  m_isTauTagged(false),
13  m_isTau1PTagged(false),
14  m_isTau3PTagged(false),
15  m_calFactLight(1.),
16  m_calFactTau(1.),
17  m_calFactTau1P3P(1.),
18  m_calFactB(1.),
19  m_distanceToBQuark(9999.),
20  m_distanceToCQuark(9999.),
21  m_distanceToTLepton(9999.) {
22  m_tagLikelihood.clear();
23  }

◆ AtlfInfo() [2/3]

Analysis::AtlfInfo::AtlfInfo ( const TagInfoType x)

constructor with info type

Definition at line 26 of file AtlfInfo.cxx.

27  : BaseTagInfo(tagJetInfoType),
28  m_isBTagged(false),
29  m_isTauTagged(false),
30  m_isTau1PTagged(false),
31  m_isTau3PTagged(false),
32  m_calFactLight(1.),
33  m_calFactTau(1.),
34  m_calFactTau1P3P(1.),
35  m_calFactB(1.),
36  m_distanceToBQuark(9999.),
37  m_distanceToCQuark(9999.),
38  m_distanceToTLepton(9999.) {
39  m_tagLikelihood.clear();
40  }

◆ AtlfInfo() [3/3]

Analysis::AtlfInfo::AtlfInfo ( const AtlfInfo AtlfInfo)

copy destructor

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

Definition at line 45 of file AtlfInfo.cxx.

45  : BaseTagInfo(rhs),
46  m_isBTagged(rhs.m_isBTagged),
47  m_isTauTagged(rhs.m_isTauTagged),
48  m_isTau1PTagged(rhs.m_isTau1PTagged),
49  m_isTau3PTagged(rhs.m_isTau3PTagged),
50  m_calFactLight(rhs.m_calFactLight),
51  m_calFactTau(rhs.m_calFactTau),
52  m_calFactTau1P3P(rhs.m_calFactTau1P3P),
53  m_calFactB(rhs.m_calFactB),
54  m_distanceToBQuark(rhs.m_distanceToBQuark),
55  m_distanceToCQuark(rhs.m_distanceToCQuark),
56  m_distanceToTLepton(rhs.m_distanceToTLepton) {}

◆ ~AtlfInfo()

Analysis::AtlfInfo::~AtlfInfo ( )
virtual

default destructor

Default destructor.

Definition at line 81 of file AtlfInfo.cxx.

81  {
82  }

Member Function Documentation

◆ BHypoCalFactor() [1/2]

float Analysis::AtlfInfo::BHypoCalFactor ( ) const
inline

Definition at line 49 of file AtlfInfo.h.

49 { return m_calFactB; }

◆ BHypoCalFactor() [2/2]

void Analysis::AtlfInfo::BHypoCalFactor ( float  c)
inline

Definition at line 48 of file AtlfInfo.h.

48 { m_calFactB = c; }

◆ clone()

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

a clone method for the proper workings of the copy constructor

Reimplemented from Analysis::BaseTagInfo.

Definition at line 69 of file AtlfInfo.h.

69  {
70  return new AtlfInfo(*this);
71 }

◆ deltaRMinTo() [1/2]

float Analysis::AtlfInfo::deltaRMinTo ( const std::string &  key) const

Definition at line 90 of file AtlfInfo.cxx.

90  {
91  float dR = 9999.;
92  if ( "B"==key || "b"==key) dR = m_distanceToBQuark;
93  if ( "C"==key || "c"==key) dR = m_distanceToCQuark;
94  if ( "T"==key || "t"==key) dR = m_distanceToTLepton;
95  return dR;
96  }

◆ deltaRMinTo() [2/2]

void Analysis::AtlfInfo::deltaRMinTo ( const std::string &  key,
float  dR 
)

min deltaR to b,c quarks/tau lepton:

Definition at line 84 of file AtlfInfo.cxx.

84  {
85  if ( "B"==key || "b"==key) m_distanceToBQuark = dR;
86  if ( "C"==key || "c"==key) m_distanceToCQuark = dR;
87  if ( "T"==key || "t"==key) m_distanceToTLepton = dR;
88  }

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

◆ isBTagged() [1/2]

bool Analysis::AtlfInfo::isBTagged ( ) const
inline

Definition at line 35 of file AtlfInfo.h.

35 { return m_isBTagged; }

◆ isBTagged() [2/2]

void Analysis::AtlfInfo::isBTagged ( bool  b)
inline

Definition at line 34 of file AtlfInfo.h.

34 { m_isBTagged = b; }

◆ isTau1PTagged() [1/2]

bool Analysis::AtlfInfo::isTau1PTagged ( ) const
inline

Definition at line 39 of file AtlfInfo.h.

39 { return m_isTau1PTagged; }

◆ isTau1PTagged() [2/2]

void Analysis::AtlfInfo::isTau1PTagged ( bool  b)
inline

Definition at line 38 of file AtlfInfo.h.

38 { m_isTau1PTagged = b; }

◆ isTau3PTagged() [1/2]

bool Analysis::AtlfInfo::isTau3PTagged ( ) const
inline

Definition at line 41 of file AtlfInfo.h.

41 { return m_isTau3PTagged; }

◆ isTau3PTagged() [2/2]

void Analysis::AtlfInfo::isTau3PTagged ( bool  b)
inline

Definition at line 40 of file AtlfInfo.h.

40 { m_isTau3PTagged = b; }

◆ isTauTagged() [1/2]

bool Analysis::AtlfInfo::isTauTagged ( ) const
inline

Definition at line 37 of file AtlfInfo.h.

37 { return m_isTauTagged; }

◆ isTauTagged() [2/2]

void Analysis::AtlfInfo::isTauTagged ( bool  b)
inline

Definition at line 36 of file AtlfInfo.h.

36 { m_isTauTagged = b; }

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

◆ LightHypoCalFactor() [1/2]

float Analysis::AtlfInfo::LightHypoCalFactor ( ) const
inline

Definition at line 43 of file AtlfInfo.h.

43 { return m_calFactLight; }

◆ LightHypoCalFactor() [2/2]

void Analysis::AtlfInfo::LightHypoCalFactor ( float  c)
inline

Definition at line 42 of file AtlfInfo.h.

42 { m_calFactLight = c; }

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

◆ operator=()

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

assigenment operator

Definition at line 59 of file AtlfInfo.cxx.

60  {
61  if (this!=&rhs)
62  {
63  m_tagLikelihood=rhs.m_tagLikelihood;
64  m_tagJetInfoType=rhs.m_tagJetInfoType;
65  m_isBTagged=rhs.m_isBTagged;
66  m_isTauTagged=rhs.m_isTauTagged;
67  m_isTau1PTagged=rhs.m_isTau1PTagged;
68  m_isTau3PTagged=rhs.m_isTau3PTagged;
69  m_calFactLight=rhs.m_calFactLight;
70  m_calFactTau=rhs.m_calFactTau;
71  m_calFactTau1P3P=rhs.m_calFactTau1P3P;
72  m_calFactB=rhs.m_calFactB;
73  m_distanceToBQuark=rhs.m_distanceToBQuark;
74  m_distanceToCQuark=rhs.m_distanceToCQuark;
75  m_distanceToTLepton=rhs.m_distanceToTLepton;
76  }
77  return *this;
78  }

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

◆ Tau1P3PHypoCalFactor() [1/2]

float Analysis::AtlfInfo::Tau1P3PHypoCalFactor ( ) const
inline

Definition at line 47 of file AtlfInfo.h.

47 { return m_calFactTau1P3P; }

◆ Tau1P3PHypoCalFactor() [2/2]

void Analysis::AtlfInfo::Tau1P3PHypoCalFactor ( float  c)
inline

Definition at line 46 of file AtlfInfo.h.

46 { m_calFactTau1P3P = c; }

◆ TauHypoCalFactor() [1/2]

float Analysis::AtlfInfo::TauHypoCalFactor ( ) const
inline

Definition at line 45 of file AtlfInfo.h.

45 { return m_calFactTau; }

◆ TauHypoCalFactor() [2/2]

void Analysis::AtlfInfo::TauHypoCalFactor ( float  c)
inline

Definition at line 44 of file AtlfInfo.h.

44 { m_calFactTau = c; }

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

float Analysis::AtlfInfo::m_calFactB
private

Definition at line 63 of file AtlfInfo.h.

◆ m_calFactLight

float Analysis::AtlfInfo::m_calFactLight
private

Definition at line 60 of file AtlfInfo.h.

◆ m_calFactTau

float Analysis::AtlfInfo::m_calFactTau
private

Definition at line 61 of file AtlfInfo.h.

◆ m_calFactTau1P3P

float Analysis::AtlfInfo::m_calFactTau1P3P
private

Definition at line 62 of file AtlfInfo.h.

◆ m_distanceToBQuark

float Analysis::AtlfInfo::m_distanceToBQuark
private

Definition at line 64 of file AtlfInfo.h.

◆ m_distanceToCQuark

float Analysis::AtlfInfo::m_distanceToCQuark
private

Definition at line 65 of file AtlfInfo.h.

◆ m_distanceToTLepton

float Analysis::AtlfInfo::m_distanceToTLepton
private

Definition at line 66 of file AtlfInfo.h.

◆ m_isBTagged

bool Analysis::AtlfInfo::m_isBTagged
private

Definition at line 56 of file AtlfInfo.h.

◆ m_isTau1PTagged

bool Analysis::AtlfInfo::m_isTau1PTagged
private

Definition at line 58 of file AtlfInfo.h.

◆ m_isTau3PTagged

bool Analysis::AtlfInfo::m_isTau3PTagged
private

Definition at line 59 of file AtlfInfo.h.

◆ m_isTauTagged

bool Analysis::AtlfInfo::m_isTauTagged
private

Definition at line 57 of file AtlfInfo.h.

◆ 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_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_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::AtlfInfo::m_calFactB
float m_calFactB
Definition: AtlfInfo.h:63
Analysis::AtlfInfo::m_distanceToBQuark
float m_distanceToBQuark
Definition: AtlfInfo.h:64
Analysis::BaseTagInfo::m_isValid
bool m_isValid
true if the tagger could tag the jet, default is false
Definition: BaseTagInfo.h:74
Analysis::AtlfInfo::m_calFactLight
float m_calFactLight
Definition: AtlfInfo.h:60
Analysis::AtlfInfo::m_distanceToCQuark
float m_distanceToCQuark
Definition: AtlfInfo.h:65
Analysis::BaseTagInfo::tagLikelihood
virtual const std::vector< double > & tagLikelihood(void) const
returns the tag likelihood of one tagger
Definition: BaseTagInfo.h:101
Analysis::AtlfInfo::AtlfInfo
AtlfInfo()
default constructor
Definition: AtlfInfo.cxx:10
calibdata.valid
list valid
Definition: calibdata.py:45
Analysis::AtlfInfo::m_isTau1PTagged
bool m_isTau1PTagged
Definition: AtlfInfo.h:58
Analysis::AtlfInfo::m_isTauTagged
bool m_isTauTagged
Definition: AtlfInfo.h:57
Analysis::AtlfInfo::m_distanceToTLepton
float m_distanceToTLepton
Definition: AtlfInfo.h:66
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Analysis::AtlfInfo::m_isTau3PTagged
bool m_isTau3PTagged
Definition: AtlfInfo.h:59
Analysis::AtlfInfo::m_isBTagged
bool m_isBTagged
Definition: AtlfInfo.h:56
Analysis::AtlfInfo::m_calFactTau1P3P
float m_calFactTau1P3P
Definition: AtlfInfo.h:62
Analysis::AtlfInfo::m_calFactTau
float m_calFactTau
Definition: AtlfInfo.h:61
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
python.compressB64.c
def c
Definition: compressB64.py:93
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37