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

#include <TrackCountingInfo.h>

Inheritance diagram for Analysis::TrackCountingInfo:
Collaboration diagram for Analysis::TrackCountingInfo:

Public Member Functions

 TrackCountingInfo ()
 default constructor More...
 
 TrackCountingInfo (const TagInfoType &x)
 constructor with info type More...
 
 TrackCountingInfo (const TrackCountingInfo &TrackCountingInfo)
 copy constructor not really needed now, but the object might get more complicated ... More...
 
TrackCountingInfooperator= (const TrackCountingInfo &rhs)
 assigenment operator More...
 
virtual ~TrackCountingInfo ()
 default destructor More...
 
virtual TrackCountingInfoclone () const
 a clone method for the proper workings of the copy constructor More...
 
void setnTracks (int n)
 
void setd0sig_2nd (float d0sig_2nd)
 
void setd0sig_abs_2nd (float d0sig_abs_2nd)
 
void setd0sig_3rd (float d0sig_3rd)
 
void setd0sig_abs_3rd (float d0sig_abs_3rd)
 
int nTracks () const
 
float d0sig_2nd () const
 
float d0sig_abs_2nd () const
 
float d0sig_3rd () const
 
float d0sig_abs_3rd () 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

int m_ntrk
 number of tracks used for tagging More...
 
float m_d0sig_2nd
 2nd highest IP2D significance More...
 
float m_d0sig_abs_2nd
 2nd highest absolute IP2D significance More...
 
float m_d0sig_3rd
 3rd highest IP2D significance More...
 
float m_d0sig_abs_3rd
 3rd highest absolute IP2D significance More...
 

Detailed Description

Class to hold TrackCounting tagger results

Author
Thomas Goepfert thoma.nosp@m.s.go.nosp@m.epfer.nosp@m.t@ce.nosp@m.rn.ch

Definition at line 25 of file TrackCountingInfo.h.

Constructor & Destructor Documentation

◆ TrackCountingInfo() [1/3]

Analysis::TrackCountingInfo::TrackCountingInfo ( )

default constructor

Definition at line 10 of file TrackCountingInfo.cxx.

10  : BaseTagInfo(),
11  m_ntrk(0),
12  m_d0sig_2nd( -20.),
13  m_d0sig_abs_2nd( 0.),
14  m_d0sig_3rd( -20.),
15  m_d0sig_abs_3rd( 0.)
16  {
17  m_tagLikelihood.clear();
18  }

◆ TrackCountingInfo() [2/3]

Analysis::TrackCountingInfo::TrackCountingInfo ( const TagInfoType x)

constructor with info type

Definition at line 20 of file TrackCountingInfo.cxx.

21  : BaseTagInfo(tagJetInfoType),
22  m_ntrk(0),
23  m_d0sig_2nd( -20.),
24  m_d0sig_abs_2nd( 0.),
25  m_d0sig_3rd( -20.),
26  m_d0sig_abs_3rd( 0.)
27  {
28  m_tagLikelihood.clear();
29  }

◆ TrackCountingInfo() [3/3]

Analysis::TrackCountingInfo::TrackCountingInfo ( const TrackCountingInfo TrackCountingInfo)

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

Definition at line 31 of file TrackCountingInfo.cxx.

31  : BaseTagInfo(rhs),
32  m_ntrk( rhs.m_ntrk),
33  m_d0sig_2nd( rhs.m_d0sig_2nd),
34  m_d0sig_abs_2nd(rhs.m_d0sig_abs_2nd),
35  m_d0sig_3rd( rhs.m_d0sig_3rd),
36  m_d0sig_abs_3rd(rhs.m_d0sig_abs_3rd)
37  {}

◆ ~TrackCountingInfo()

Analysis::TrackCountingInfo::~TrackCountingInfo ( )
virtual

default destructor

Definition at line 52 of file TrackCountingInfo.cxx.

52  {
53  }

Member Function Documentation

◆ clone()

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

a clone method for the proper workings of the copy constructor

Reimplemented from Analysis::BaseTagInfo.

Definition at line 73 of file TrackCountingInfo.h.

73  {
74  return new TrackCountingInfo(*this);
75  }

◆ d0sig_2nd()

float Analysis::TrackCountingInfo::d0sig_2nd ( ) const
inline

Definition at line 53 of file TrackCountingInfo.h.

53 { return m_d0sig_2nd; }

◆ d0sig_3rd()

float Analysis::TrackCountingInfo::d0sig_3rd ( ) const
inline

Definition at line 55 of file TrackCountingInfo.h.

55 { return m_d0sig_3rd; }

◆ d0sig_abs_2nd()

float Analysis::TrackCountingInfo::d0sig_abs_2nd ( ) const
inline

Definition at line 54 of file TrackCountingInfo.h.

54 { return m_d0sig_abs_2nd; }

◆ d0sig_abs_3rd()

float Analysis::TrackCountingInfo::d0sig_abs_3rd ( ) const
inline

Definition at line 56 of file TrackCountingInfo.h.

56 { return m_d0sig_abs_3rd; }

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

◆ nTracks()

int Analysis::TrackCountingInfo::nTracks ( ) const
inline

Definition at line 52 of file TrackCountingInfo.h.

52 { return m_ntrk; }

◆ operator=()

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

assigenment operator

Definition at line 39 of file TrackCountingInfo.cxx.

40  {
41  if (this!=&rhs)
42  {
43  m_ntrk = rhs.m_ntrk;
44  m_d0sig_2nd = rhs.m_d0sig_2nd;
45  m_d0sig_abs_2nd = rhs.m_d0sig_abs_2nd;
46  m_d0sig_3rd = rhs.m_d0sig_3rd;
47  m_d0sig_abs_3rd = rhs.m_d0sig_abs_3rd;
48  }
49  return *this;
50  }

◆ setd0sig_2nd()

void Analysis::TrackCountingInfo::setd0sig_2nd ( float  d0sig_2nd)
inline

Definition at line 47 of file TrackCountingInfo.h.

◆ setd0sig_3rd()

void Analysis::TrackCountingInfo::setd0sig_3rd ( float  d0sig_3rd)
inline

Definition at line 49 of file TrackCountingInfo.h.

◆ setd0sig_abs_2nd()

void Analysis::TrackCountingInfo::setd0sig_abs_2nd ( float  d0sig_abs_2nd)
inline

Definition at line 48 of file TrackCountingInfo.h.

◆ setd0sig_abs_3rd()

void Analysis::TrackCountingInfo::setd0sig_abs_3rd ( float  d0sig_abs_3rd)
inline

Definition at line 50 of file TrackCountingInfo.h.

◆ setnTracks()

void Analysis::TrackCountingInfo::setnTracks ( int  n)
inline

Definition at line 46 of file TrackCountingInfo.h.

46 { m_ntrk = n; }

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

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

float Analysis::TrackCountingInfo::m_d0sig_2nd
private

2nd highest IP2D significance

Definition at line 60 of file TrackCountingInfo.h.

◆ m_d0sig_3rd

float Analysis::TrackCountingInfo::m_d0sig_3rd
private

3rd highest IP2D significance

Definition at line 62 of file TrackCountingInfo.h.

◆ m_d0sig_abs_2nd

float Analysis::TrackCountingInfo::m_d0sig_abs_2nd
private

2nd highest absolute IP2D significance

Definition at line 61 of file TrackCountingInfo.h.

◆ m_d0sig_abs_3rd

float Analysis::TrackCountingInfo::m_d0sig_abs_3rd
private

3rd highest absolute IP2D significance

Definition at line 63 of file TrackCountingInfo.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_ntrk

int Analysis::TrackCountingInfo::m_ntrk
private

number of tracks used for tagging

Definition at line 59 of file TrackCountingInfo.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::TrackCountingInfo::m_d0sig_3rd
float m_d0sig_3rd
3rd highest IP2D significance
Definition: TrackCountingInfo.h:62
Analysis::TrackCountingInfo::d0sig_3rd
float d0sig_3rd() const
Definition: TrackCountingInfo.h:55
Analysis::TrackCountingInfo::m_d0sig_abs_2nd
float m_d0sig_abs_2nd
2nd highest absolute IP2D significance
Definition: TrackCountingInfo.h:61
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
calibdata.valid
list valid
Definition: calibdata.py:45
Analysis::TrackCountingInfo::d0sig_abs_2nd
float d0sig_abs_2nd() const
Definition: TrackCountingInfo.h:54
beamspotman.n
n
Definition: beamspotman.py:731
Analysis::TrackCountingInfo::m_d0sig_abs_3rd
float m_d0sig_abs_3rd
3rd highest absolute IP2D significance
Definition: TrackCountingInfo.h:63
Analysis::TrackCountingInfo::d0sig_2nd
float d0sig_2nd() const
Definition: TrackCountingInfo.h:53
Analysis::TrackCountingInfo::d0sig_abs_3rd
float d0sig_abs_3rd() const
Definition: TrackCountingInfo.h:56
Analysis::TrackCountingInfo::m_d0sig_2nd
float m_d0sig_2nd
2nd highest IP2D significance
Definition: TrackCountingInfo.h:60
Analysis::BaseTagInfo::BaseTagInfo
BaseTagInfo()
default constructor
Definition: BaseTagInfo.cxx:29
Analysis::TrackCountingInfo::m_ntrk
int m_ntrk
number of tracks used for tagging
Definition: TrackCountingInfo.h:59
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition: BaseTagInfo.h:77
Analysis::TrackCountingInfo::TrackCountingInfo
TrackCountingInfo()
default constructor
Definition: TrackCountingInfo.cxx:10