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

The SecVtxInfo class: This class contains information of the secondary vertex fit within the jet. More...

#include <SecVtxInfo.h>

Inheritance diagram for Analysis::SecVtxInfo:
Collaboration diagram for Analysis::SecVtxInfo:

Public Types

enum  FitType { TearDown =0, BuildUp =1, NoFit =2 }
 

Public Member Functions

 SecVtxInfo ()
 default constructor More...
 
 SecVtxInfo (const TagInfoType &x)
 constructor with infotype More...
 
 SecVtxInfo (const SecVtxInfo &rhs)
 copy destructor More...
 
SecVtxInfooperator= (const SecVtxInfo &rhs)
 assigenment operator More...
 
virtual ~SecVtxInfo ()
 default destructor More...
 
virtual SecVtxInfoclone () const
 a clone method for the proper workings of the copy constructor More...
 
int numSelTracksForFit () const
 The number of tracks available for the sec.vtx. More...
 
double distance () const
 The distance between the primary and the secondary vertex. More...
 
double rphidistance () const
 
double probability () const
 The fit probability of the fit. More...
 
double mass () const
 The invariant mass of the tracks fitted to the vertex. More...
 
double energyFraction () const
 The energy fraction: Evtx/Ejet of charges tracks. More...
 
int mult () const
 The number of tracks fitted in the vertex. More...
 
FitType fitType () const
 Returns an enum to indicate the type of fit. More...
 
const Trk::RecVertexsecVertexPos () const
 Returns the reconstructed secondary vertex. More...
 
int NumberOfG2TrackVertices () const
 Returns number of 2 track vertices. More...
 
void setFitType (FitType type)
 Set-methods for the private data members of the class. More...
 
void setSecVtx (const Trk::RecVertex &secVtx, double fitProb, const TrackVec &fittedTrks)
 
void setNumSelTracksForFit (int numSelTracksForFit)
 
void setMult (int mult)
 
void setMass (double mass)
 
void setEnergyFraction (double energyFraction)
 
void setDist (double dist)
 
void setRPhiDist (double dist)
 
void setNumberOfG2TrackVertices (int NSVPair)
 
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_numSelTracksForFit
 The number of tracks available for the sec.vtx. More...
 
double m_dist
 
double m_rphidist
 
double m_prob
 
double m_mass
 
double m_energyFraction
 
TrackVec m_fittedTrks
 
int m_mult
 
FitType m_fitType
 
Trk::RecVertex m_secVtxPos
 
int m_NGood2TrackVertices
 

Detailed Description

The SecVtxInfo class: This class contains information of the secondary vertex fit within the jet.

It is not supposed to be an overly intelligent class with much overhead. The class inherits from IBInfo and can therefor be put into the BJet as additional info to the B-Jet.

Currently available methods to retrieve information:

Methods to fill the class with information:

Definition at line 59 of file SecVtxInfo.h.

Member Enumeration Documentation

◆ FitType

Enumerator
TearDown 
BuildUp 
NoFit 

Definition at line 62 of file SecVtxInfo.h.

62 { TearDown=0, BuildUp=1 , NoFit=2 };

Constructor & Destructor Documentation

◆ SecVtxInfo() [1/3]

Analysis::SecVtxInfo::SecVtxInfo ( )

default constructor

Default constructor.

Definition at line 29 of file SecVtxInfo.cxx.

33  {
34  m_fittedTrks.clear();
35  }
36 
38 SecVtxInfo::SecVtxInfo(const TagInfoType& tagJetInfoType) : BaseTagInfo(tagJetInfoType),
40  m_dist(-1.),
41  m_rphidist(-1.),
42  m_prob(-1.),
43  m_mass(-1.),

◆ SecVtxInfo() [2/3]

Analysis::SecVtxInfo::SecVtxInfo ( const TagInfoType x)

constructor with infotype

Definition at line 46 of file SecVtxInfo.cxx.

50  {
51  m_fittedTrks.clear();
52  }
53 
57  m_dist(rhs.m_dist),
59  m_prob(rhs.m_prob),
60  m_mass(rhs.m_mass),

◆ SecVtxInfo() [3/3]

Analysis::SecVtxInfo::SecVtxInfo ( const SecVtxInfo rhs)

copy destructor

Copy constructor.

Definition at line 63 of file SecVtxInfo.cxx.

67  {}
68 
71 {
72  if (this!=&rhs)
73  {
74  m_numSelTracksForFit=rhs.m_numSelTracksForFit;
75  m_tagLikelihood=rhs.m_tagLikelihood;

◆ ~SecVtxInfo()

Analysis::SecVtxInfo::~SecVtxInfo ( )
virtual

default destructor

Default destructor.

Definition at line 99 of file SecVtxInfo.cxx.

Member Function Documentation

◆ clone()

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

a clone method for the proper workings of the copy constructor

Reimplemented from Analysis::BaseTagInfo.

Definition at line 218 of file SecVtxInfo.h.

219 {
220  return new SecVtxInfo(*this);
221 }

◆ distance()

double Analysis::SecVtxInfo::distance ( ) const
inline

The distance between the primary and the secondary vertex.

Not implemented yet. Maybe needs two- and three dim distances.

Definition at line 142 of file SecVtxInfo.h.

143 {
144  return m_dist;
145 }

◆ energyFraction()

double Analysis::SecVtxInfo::energyFraction ( ) const
inline

The energy fraction: Evtx/Ejet of charges tracks.

Definition at line 158 of file SecVtxInfo.h.

159 {
160  return m_energyFraction;
161 }

◆ fitType()

SecVtxInfo::FitType Analysis::SecVtxInfo::fitType ( ) const
inline

Returns an enum to indicate the type of fit.

Definition at line 166 of file SecVtxInfo.h.

167 {
168  return m_fitType;
169 }

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

◆ mass()

double Analysis::SecVtxInfo::mass ( ) const
inline

The invariant mass of the tracks fitted to the vertex.

Definition at line 154 of file SecVtxInfo.h.

155 {
156  return m_mass;
157 }

◆ mult()

int Analysis::SecVtxInfo::mult ( ) const
inline

The number of tracks fitted in the vertex.

Definition at line 162 of file SecVtxInfo.h.

163 {
164  return m_mult;
165 }

◆ NumberOfG2TrackVertices()

int Analysis::SecVtxInfo::NumberOfG2TrackVertices ( ) const
inline

Returns number of 2 track vertices.

Definition at line 214 of file SecVtxInfo.h.

215 {
216  return m_NGood2TrackVertices;
217 }

◆ numSelTracksForFit()

int Analysis::SecVtxInfo::numSelTracksForFit ( ) const
inline

The number of tracks available for the sec.vtx.

fit after track sel. cuts.

Definition at line 138 of file SecVtxInfo.h.

139 {
140  return m_numSelTracksForFit;
141 }

◆ operator=()

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

assigenment operator

Definition at line 78 of file SecVtxInfo.cxx.

92 {}
93 
94 }

◆ probability()

double Analysis::SecVtxInfo::probability ( ) const
inline

The fit probability of the fit.

It is set to -1 it the fit did not work.

Definition at line 150 of file SecVtxInfo.h.

151 {
152  return m_prob;
153 }

◆ rphidistance()

double Analysis::SecVtxInfo::rphidistance ( ) const
inline

Definition at line 146 of file SecVtxInfo.h.

147 {
148  return m_rphidist;
149 }

◆ secVertexPos()

const Trk::RecVertex & Analysis::SecVtxInfo::secVertexPos ( ) const
inline

Returns the reconstructed secondary vertex.

Definition at line 170 of file SecVtxInfo.h.

171 {
172  return m_secVtxPos;
173 }

◆ setDist()

void Analysis::SecVtxInfo::setDist ( double  dist)
inline

Definition at line 202 of file SecVtxInfo.h.

203 {
204  m_dist=dist;
205 }

◆ setEnergyFraction()

void Analysis::SecVtxInfo::setEnergyFraction ( double  energyFraction)
inline

Definition at line 194 of file SecVtxInfo.h.

195 {
197 }

◆ setFitType()

void Analysis::SecVtxInfo::setFitType ( FitType  type)
inline

Set-methods for the private data members of the class.

Definition at line 198 of file SecVtxInfo.h.

199 {
200  m_fitType=type;
201 }

◆ setMass()

void Analysis::SecVtxInfo::setMass ( double  mass)
inline

Definition at line 190 of file SecVtxInfo.h.

191 {
192  m_mass=mass;
193 }

◆ setMult()

void Analysis::SecVtxInfo::setMult ( int  mult)
inline

Definition at line 186 of file SecVtxInfo.h.

187 {
188  m_mult=mult;
189 }

◆ setNumberOfG2TrackVertices()

void Analysis::SecVtxInfo::setNumberOfG2TrackVertices ( int  NSVPair)
inline

Definition at line 210 of file SecVtxInfo.h.

211 {
212  m_NGood2TrackVertices=NGood2TrackVertices;
213 }

◆ setNumSelTracksForFit()

void Analysis::SecVtxInfo::setNumSelTracksForFit ( int  numSelTracksForFit)
inline

Definition at line 182 of file SecVtxInfo.h.

◆ setRPhiDist()

void Analysis::SecVtxInfo::setRPhiDist ( double  dist)
inline

Definition at line 206 of file SecVtxInfo.h.

207 {
208  m_rphidist=dist;
209 }

◆ setSecVtx()

void Analysis::SecVtxInfo::setSecVtx ( const Trk::RecVertex secVtx,
double  fitProb,
const TrackVec fittedTrks 
)
inline

Definition at line 174 of file SecVtxInfo.h.

177 {
178  m_secVtxPos=secVtx;
179  m_prob=fitProb;
180  m_fittedTrks=fittedTrks;
181 }

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

double Analysis::SecVtxInfo::m_dist
private

Definition at line 126 of file SecVtxInfo.h.

◆ m_energyFraction

double Analysis::SecVtxInfo::m_energyFraction
private

Definition at line 130 of file SecVtxInfo.h.

◆ m_fittedTrks

TrackVec Analysis::SecVtxInfo::m_fittedTrks
private

Definition at line 131 of file SecVtxInfo.h.

◆ m_fitType

FitType Analysis::SecVtxInfo::m_fitType
private

Definition at line 133 of file SecVtxInfo.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_mass

double Analysis::SecVtxInfo::m_mass
private

Definition at line 129 of file SecVtxInfo.h.

◆ m_mult

int Analysis::SecVtxInfo::m_mult
private

Definition at line 132 of file SecVtxInfo.h.

◆ m_NGood2TrackVertices

int Analysis::SecVtxInfo::m_NGood2TrackVertices
private

Definition at line 135 of file SecVtxInfo.h.

◆ m_numSelTracksForFit

int Analysis::SecVtxInfo::m_numSelTracksForFit
private

The number of tracks available for the sec.vtx.

fit after track sel. cuts

Definition at line 125 of file SecVtxInfo.h.

◆ m_prob

double Analysis::SecVtxInfo::m_prob
private

Definition at line 128 of file SecVtxInfo.h.

◆ m_rphidist

double Analysis::SecVtxInfo::m_rphidist
private

Definition at line 127 of file SecVtxInfo.h.

◆ m_secVtxPos

Trk::RecVertex Analysis::SecVtxInfo::m_secVtxPos
private

Definition at line 134 of file SecVtxInfo.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::SecVtxInfo::m_prob
double m_prob
Definition: SecVtxInfo.h:128
Analysis::BaseTagInfo::m_tagLikelihood
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition: BaseTagInfo.h:75
Analysis::SecVtxInfo::TearDown
@ TearDown
Definition: SecVtxInfo.h:62
Analysis::SecVtxInfo::mass
double mass() const
The invariant mass of the tracks fitted to the vertex.
Definition: SecVtxInfo.h:154
Analysis::SecVtxInfo::m_secVtxPos
Trk::RecVertex m_secVtxPos
Definition: SecVtxInfo.h:134
Analysis::BaseTagInfo::m_isValid
bool m_isValid
true if the tagger could tag the jet, default is false
Definition: BaseTagInfo.h:74
Analysis::SecVtxInfo::energyFraction
double energyFraction() const
The energy fraction: Evtx/Ejet of charges tracks.
Definition: SecVtxInfo.h:158
Analysis::SecVtxInfo::m_fittedTrks
TrackVec m_fittedTrks
Definition: SecVtxInfo.h:131
Analysis::BaseTagInfo::tagLikelihood
virtual const std::vector< double > & tagLikelihood(void) const
returns the tag likelihood of one tagger
Definition: BaseTagInfo.h:101
Analysis::SecVtxInfo::operator=
SecVtxInfo & operator=(const SecVtxInfo &rhs)
assigenment operator
Definition: SecVtxInfo.cxx:78
Analysis::SecVtxInfo::numSelTracksForFit
int numSelTracksForFit() const
The number of tracks available for the sec.vtx.
Definition: SecVtxInfo.h:138
calibdata.valid
list valid
Definition: calibdata.py:45
Analysis::SecVtxInfo::m_mult
int m_mult
Definition: SecVtxInfo.h:132
Analysis::SecVtxInfo::m_NGood2TrackVertices
int m_NGood2TrackVertices
Definition: SecVtxInfo.h:135
Analysis::TagInfoType
std::string TagInfoType
Definition: JetTagInfoBase.h:19
Analysis::SecVtxInfo::m_rphidist
double m_rphidist
Definition: SecVtxInfo.h:127
Analysis::SecVtxInfo::mult
int mult() const
The number of tracks fitted in the vertex.
Definition: SecVtxInfo.h:162
Analysis::SecVtxInfo::NoFit
@ NoFit
Definition: SecVtxInfo.h:62
Analysis::SecVtxInfo::m_numSelTracksForFit
int m_numSelTracksForFit
The number of tracks available for the sec.vtx.
Definition: SecVtxInfo.h:125
Analysis::SecVtxInfo::m_fitType
FitType m_fitType
Definition: SecVtxInfo.h:133
Analysis::SecVtxInfo::m_dist
double m_dist
Definition: SecVtxInfo.h:126
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Analysis::BaseTagInfo::BaseTagInfo
BaseTagInfo()
default constructor
Definition: BaseTagInfo.cxx:29
Analysis::SecVtxInfo::m_mass
double m_mass
Definition: SecVtxInfo.h:129
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition: BaseTagInfo.h:77
Analysis::SecVtxInfo::BuildUp
@ BuildUp
Definition: SecVtxInfo.h:62
Analysis::SecVtxInfo::SecVtxInfo
SecVtxInfo()
default constructor
Definition: SecVtxInfo.cxx:29
Analysis::SecVtxInfo::m_energyFraction
double m_energyFraction
Definition: SecVtxInfo.h:130