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

#include <SvxSummary.h>

Inheritance diagram for Analysis::SvxSummary:
Collaboration diagram for Analysis::SvxSummary:

Public Member Functions

 SvxSummary ()
 default constructor More...
 
 SvxSummary (const TagInfoType &x)
 constructor with info type More...
 
 SvxSummary (const SvxSummary &svSsummary)
 copy destructor More...
 
SvxSummaryoperator= (const SvxSummary &rhs)
 assigenment operator More...
 
virtual ~SvxSummary ()
 default destructor More...
 
virtual SvxSummaryclone () const
 a clone method for the proper workings of the copy constructor More...
 
void Svx (const Trk::RecVertex &svx)
 Set/Get method. More...
 
void Results (const std::vector< double > &res)
 
void Results (std::vector< double > &&res)
 
void TrkInSvx (const std::vector< const Rec::TrackParticle * > &vtl)
 
void TrkInSvx (std::vector< const Rec::TrackParticle * > &&vtl)
 
void TrkFromV0 (const std::vector< const Rec::TrackParticle * > &v0t)
 
void TrkFromV0 (std::vector< const Rec::TrackParticle * > &&v0t)
 
const Trk::RecVertexSvx () const
 
const std::vector< double > & Results () const
 
const std::vector< const Rec::TrackParticle * > & TrkInSvx () const
 
const std::vector< const Rec::TrackParticle * > & TrkFromV0 () 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

Trk::RecVertex m_Svx
 
std::vector< double > m_Results
 
std::vector< const Rec::TrackParticle * > m_TrkInSvx
 
std::vector< const Rec::TrackParticle * > m_TrkFromV0
 

Detailed Description

Definition at line 18 of file SvxSummary.h.

Constructor & Destructor Documentation

◆ SvxSummary() [1/3]

Analysis::SvxSummary::SvxSummary ( )

default constructor

Default constructor.

Definition at line 10 of file SvxSummary.cxx.

10  : BaseTagInfo(),
12  m_Results(std::vector<double>()),
13  m_TrkFromV0(std::vector<const Rec::TrackParticle*>()) {
14  m_Results.clear();
15  m_TrkFromV0.clear();
16 }

◆ SvxSummary() [2/3]

Analysis::SvxSummary::SvxSummary ( const TagInfoType x)

constructor with info type

Definition at line 19 of file SvxSummary.cxx.

20  : BaseTagInfo(tagJetInfoType),
22  m_Results(std::vector<double>()),
23  m_TrkFromV0(std::vector<const Rec::TrackParticle*>()) {
24  m_Results.clear();
25  m_TrkFromV0.clear();
26 }

◆ SvxSummary() [3/3]

Analysis::SvxSummary::SvxSummary ( const SvxSummary svSsummary)

copy destructor

Copy constructor.

Definition at line 29 of file SvxSummary.cxx.

29  : BaseTagInfo(rhs),
30  m_Svx(rhs.m_Svx),
31  m_Results(rhs.m_Results),
32  m_TrkFromV0(rhs.m_TrkFromV0) {}

◆ ~SvxSummary()

virtual Analysis::SvxSummary::~SvxSummary ( )
inlinevirtual

default destructor

Definition at line 33 of file SvxSummary.h.

33 {};

Member Function Documentation

◆ clone()

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

a clone method for the proper workings of the copy constructor

Reimplemented from Analysis::BaseTagInfo.

Definition at line 60 of file SvxSummary.h.

61 {
62  return new SvxSummary(*this);
63 }

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

◆ operator=()

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

assigenment operator

Definition at line 35 of file SvxSummary.cxx.

36 {
37  if (this!=&rhs)
38  {
39  m_Svx = rhs.m_Svx;
40  m_Results = rhs.m_Results;
41  m_TrkFromV0 = rhs.m_TrkFromV0;
42  m_tagJetInfoType=rhs.m_tagJetInfoType;
43  }
44  return *this;
45 }

◆ Results() [1/3]

const std::vector<double>& Analysis::SvxSummary::Results ( ) const
inline

Definition at line 48 of file SvxSummary.h.

48 {return m_Results;};

◆ Results() [2/3]

void Analysis::SvxSummary::Results ( const std::vector< double > &  res)
inline

Definition at line 38 of file SvxSummary.h.

38 {m_Results = res;};

◆ Results() [3/3]

void Analysis::SvxSummary::Results ( std::vector< double > &&  res)
inline

Definition at line 39 of file SvxSummary.h.

39 {m_Results = std::move(res);};

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

◆ Svx() [1/2]

const Trk::RecVertex& Analysis::SvxSummary::Svx ( ) const
inline

Definition at line 47 of file SvxSummary.h.

47 {return m_Svx;};

◆ Svx() [2/2]

void Analysis::SvxSummary::Svx ( const Trk::RecVertex svx)
inline

Set/Get method.

Definition at line 37 of file SvxSummary.h.

37 {m_Svx = svx;};

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

◆ TrkFromV0() [1/3]

const std::vector<const Rec::TrackParticle*>& Analysis::SvxSummary::TrkFromV0 ( ) const
inline

Definition at line 50 of file SvxSummary.h.

50 {return m_TrkFromV0;};

◆ TrkFromV0() [2/3]

void Analysis::SvxSummary::TrkFromV0 ( const std::vector< const Rec::TrackParticle * > &  v0t)
inline

Definition at line 44 of file SvxSummary.h.

44 {m_TrkFromV0 = v0t;};

◆ TrkFromV0() [3/3]

void Analysis::SvxSummary::TrkFromV0 ( std::vector< const Rec::TrackParticle * > &&  v0t)
inline

Definition at line 45 of file SvxSummary.h.

45 {m_TrkFromV0 = std::move(v0t);};

◆ TrkInSvx() [1/3]

const std::vector<const Rec::TrackParticle*>& Analysis::SvxSummary::TrkInSvx ( ) const
inline

Definition at line 49 of file SvxSummary.h.

49 {return m_TrkInSvx;};

◆ TrkInSvx() [2/3]

void Analysis::SvxSummary::TrkInSvx ( const std::vector< const Rec::TrackParticle * > &  vtl)
inline

Definition at line 41 of file SvxSummary.h.

41 {m_TrkInSvx = vtl;};

◆ TrkInSvx() [3/3]

void Analysis::SvxSummary::TrkInSvx ( std::vector< const Rec::TrackParticle * > &&  vtl)
inline

Definition at line 42 of file SvxSummary.h.

42 {m_TrkInSvx = std::move(vtl);};

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

std::vector<double> Analysis::SvxSummary::m_Results
private

Definition at line 54 of file SvxSummary.h.

◆ m_Svx

Trk::RecVertex Analysis::SvxSummary::m_Svx
private

Definition at line 53 of file SvxSummary.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_TrkFromV0

std::vector<const Rec::TrackParticle*> Analysis::SvxSummary::m_TrkFromV0
private

Definition at line 56 of file SvxSummary.h.

◆ m_TrkInSvx

std::vector<const Rec::TrackParticle*> Analysis::SvxSummary::m_TrkInSvx
private

Definition at line 55 of file SvxSummary.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
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
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
res
std::pair< std::vector< unsigned int >, bool > res
Definition: JetGroupProductTest.cxx:14
Analysis::SvxSummary::m_Results
std::vector< double > m_Results
Definition: SvxSummary.h:54
Analysis::BaseTagInfo::BaseTagInfo
BaseTagInfo()
default constructor
Definition: BaseTagInfo.cxx:29
Analysis::SvxSummary::m_TrkFromV0
std::vector< const Rec::TrackParticle * > m_TrkFromV0
Definition: SvxSummary.h:56
Analysis::SvxSummary::m_Svx
Trk::RecVertex m_Svx
Definition: SvxSummary.h:50
Analysis::BaseTagInfo::m_tagJetInfoType
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition: BaseTagInfo.h:77
Analysis::SvxSummary::m_TrkInSvx
std::vector< const Rec::TrackParticle * > m_TrkInSvx
Definition: SvxSummary.h:55
Analysis::SvxSummary::SvxSummary
SvxSummary()
default constructor
Definition: SvxSummary.cxx:10