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

#include <IPInfoPlus.h>

Inheritance diagram for Analysis::IPInfoPlus:
Collaboration diagram for Analysis::IPInfoPlus:

Public Member Functions

 IPInfoPlus ()
 Default constructor. More...
 
 IPInfoPlus (const TagInfoType &x)
 Constructors from tag type. More...
 
 IPInfoPlus (const IPInfoPlus &IPInfoPlus)
 
IPInfoPlusoperator= (const IPInfoPlus &rhs)
 
virtual ~IPInfoPlus ()
 
virtual IPInfoPlusclone () const
 a clone method for the proper workings of the copy constructor More...
 
int numTrackInfo () const
 Number of track info objects stored. More...
 
void addTrackInfo (const IPTrackInfo &i)
 Insert a new track info object. More...
 
const IPTrackInfogetTrackInfo (uint i) const
 Get a track info object. More...
 
void updateTrackWeight (const Rec::TrackParticle *trk, const std::string &view, double w)
 Update the track weights for a trackparticle. 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

std::vector< IPTrackInfom_trackinfo
 

Detailed Description

This class contains additional information for tags based on impact parameter, like pointers to the TrackParticles used in the tag, impact parameter at the primary vertex, ...

Author
laurent vacavant

Definition at line 25 of file IPInfoPlus.h.

Constructor & Destructor Documentation

◆ IPInfoPlus() [1/3]

Analysis::IPInfoPlus::IPInfoPlus ( )

Default constructor.

Definition at line 14 of file IPInfoPlus.cxx.

14  :
15  BaseTagInfo(),
16  m_trackinfo() {
17  m_tagLikelihood.clear();
18  }

◆ IPInfoPlus() [2/3]

Analysis::IPInfoPlus::IPInfoPlus ( const TagInfoType x)

Constructors from tag type.

Definition at line 20 of file IPInfoPlus.cxx.

20  :
21  BaseTagInfo(tagJetInfoType),
22  m_trackinfo() {
23  m_tagLikelihood.clear();
24  }

◆ IPInfoPlus() [3/3]

Analysis::IPInfoPlus::IPInfoPlus ( const IPInfoPlus IPInfoPlus)

Definition at line 26 of file IPInfoPlus.cxx.

26  : BaseTagInfo(rhs),
27  m_trackinfo(rhs.m_trackinfo) {
28  }

◆ ~IPInfoPlus()

Analysis::IPInfoPlus::~IPInfoPlus ( )
virtual

Definition at line 38 of file IPInfoPlus.cxx.

38  {
39  }

Member Function Documentation

◆ addTrackInfo()

void Analysis::IPInfoPlus::addTrackInfo ( const IPTrackInfo i)
inline

Insert a new track info object.

Definition at line 39 of file IPInfoPlus.h.

39 { m_trackinfo.push_back(i); }

◆ clone()

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

a clone method for the proper workings of the copy constructor

Reimplemented from Analysis::BaseTagInfo.

Definition at line 56 of file IPInfoPlus.h.

56  {
57  return new IPInfoPlus(*this);
58 }

◆ getTrackInfo()

const IPTrackInfo& Analysis::IPInfoPlus::getTrackInfo ( uint  i) const
inline

Get a track info object.

Definition at line 41 of file IPInfoPlus.h.

41  {
42  return m_trackinfo.at(i);
43  }

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

◆ numTrackInfo()

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

Number of track info objects stored.

Definition at line 37 of file IPInfoPlus.h.

37 { return m_trackinfo.size();}

◆ operator=()

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

Definition at line 30 of file IPInfoPlus.cxx.

30  {
31  if (this!=&rhs) {
32  m_trackinfo=rhs.m_trackinfo;
33  m_tagJetInfoType=rhs.m_tagJetInfoType;
34  }
35  return *this;
36  }

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

◆ updateTrackWeight()

void Analysis::IPInfoPlus::updateTrackWeight ( const Rec::TrackParticle trk,
const std::string &  view,
double  w 
)

Update the track weights for a trackparticle.

Definition at line 41 of file IPInfoPlus.cxx.

41  {
42  if(!trk) return;
43  for(int i=0;i<this->numTrackInfo();i++) {
44  if( trk==m_trackinfo.at(i).track() ) {
45  if(view=="2D") m_trackinfo.at(i).setTrackWeight2D(w);
46  if(view=="3D") m_trackinfo.at(i).setTrackWeight3D(w);
47  if(view=="JP") m_trackinfo.at(i).setTrackProbJP(w);
48  if(view=="JPneg") m_trackinfo.at(i).setTrackProbJPneg(w);
49  break;
50  }
51  }
52  }

◆ 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_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<IPTrackInfo> Analysis::IPInfoPlus::m_trackinfo
private

Definition at line 48 of file IPInfoPlus.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
calibdata.valid
list valid
Definition: calibdata.py:45
lumiFormat.i
int i
Definition: lumiFormat.py:85
Analysis::IPInfoPlus::IPInfoPlus
IPInfoPlus()
Default constructor.
Definition: IPInfoPlus.cxx:14
Analysis::IPInfoPlus::m_trackinfo
std::vector< IPTrackInfo > m_trackinfo
Definition: IPInfoPlus.h:48
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.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
Analysis::IPInfoPlus::numTrackInfo
int numTrackInfo() const
Number of track info objects stored.
Definition: IPInfoPlus.h:37
drawFromPickle.view
view
Definition: drawFromPickle.py:294