ATLAS Offline Software
|
Generic replacement for JetFitterTagInfo. More...
#include <JetFitterGenericTagInfo.h>
Public Types | |
typedef std::map< std::string, int > | IntMap |
typedef std::map< std::string, double > | DoubleMap |
Public Member Functions | |
JetFitterGenericTagInfo () | |
default constructor More... | |
JetFitterGenericTagInfo (const TagInfoType &x) | |
constructor with infotype More... | |
virtual | ~JetFitterGenericTagInfo () |
default destructor More... | |
virtual JetFitterGenericTagInfo * | clone () const |
a clone method for the proper workings of the copy constructor More... | |
void | clear () |
int | nVTX () const |
number of vertices with more than one track. More... | |
int | nSingleTracks () const |
number of single track vertices More... | |
int | nTracksAtVtx () const |
number of tracks at vertices (with more than one track - sum) More... | |
double | energyFraction () const |
The energy fraction: Evtx/Ejet of charges tracks. More... | |
double | mass () const |
The invariant mass of the tracks fitted to the vertices with at least 2 tracks. More... | |
double | significance3d () const |
significance3d of all vertices with more than one track or -if not there- More... | |
double | deltaphi () const |
get deltaphi between sum of all momenta at vertices and the fitted B-meson flight direction More... | |
double | deltaeta () const |
get deltaeta between sum of all momenta at vertices and the fitted B-meson flight direction More... | |
int | clearTemporary () |
clean out temporary variables (if you're saving info) returns the number of variables removed More... | |
double | getDouble (const std::string &) const |
returns numeric_limits::min() for unset values More... | |
int | getInt (const std::string &) const |
double | getDoubleOrThrow (const std::string &) const |
these versions will throw a range_error if the value isn't set More... | |
int | getIntOrThrow (const std::string &) const |
DoubleMap::const_iterator | getDoublesBegin () const |
DoubleMap::const_iterator | getDoublesEnd () const |
IntMap::const_iterator | getIntsBegin () const |
IntMap::const_iterator | getIntsEnd () const |
bool | setDouble (const std::string &, double) |
bool | setTemporaryDouble (const std::string &, double) |
bool | setInt (const std::string &, int) |
bool | setTemporaryInt (const std::string &, int) |
void | setnVTX (int nVTX) |
Set-methods for the private data members of the class. More... | |
void | setnSingleTracks (int nSingleTracks) |
void | setnTracksAtVtx (int nTracksAtVtx) |
void | setMass (double mass) |
void | setEnergyFraction (double energyFraction) |
void | setSignificance3d (double significance3d) |
void | setDeltaeta (double deltaeta) |
void | setDeltaphi (double deltaphi) |
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... | |
Static Public Attributes | |
static const char *const | N_VTX = "nVTX" |
static const char *const | N_SINGLE_TRACKS = "nSingleTracks" |
static const char *const | N_TRACKS_AT_VTX = "nTracksAtVtx" |
static const char *const | MASS = "mass" |
static const char *const | ENERGY_FRACTION = "energyFraction" |
static const char *const | SIGNIFICANCE_3D = "significance3d" |
static const char *const | DELTA_ETA = "deltaeta" |
static const char *const | DELTA_PHI = "deltaphi" |
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 Member Functions | |
JetFitterGenericTagInfo (const JetFitterGenericTagInfo &rhs) | |
copy constructor More... | |
JetFitterGenericTagInfo & | operator= (const JetFitterGenericTagInfo &rhs) |
assigenment operator More... | |
Private Attributes | |
DoubleMap | m_experimental_doubles |
IntMap | m_experimental_ints |
std::vector< std::string > | m_temporary_variables |
Generic replacement for JetFitterTagInfo.
Internally stores the same variables as JetFitterTagInfo, plus any other int or double type variables, within an std::map. Created to streamline the coding of a classifier with many inputs.
Definition at line 40 of file JetFitterGenericTagInfo.h.
typedef std::map<std::string,double> Analysis::JetFitterGenericTagInfo::DoubleMap |
Definition at line 46 of file JetFitterGenericTagInfo.h.
typedef std::map<std::string,int> Analysis::JetFitterGenericTagInfo::IntMap |
Definition at line 45 of file JetFitterGenericTagInfo.h.
Analysis::JetFitterGenericTagInfo::JetFitterGenericTagInfo | ( | ) |
Analysis::JetFitterGenericTagInfo::JetFitterGenericTagInfo | ( | const TagInfoType & | x | ) |
|
virtual |
|
private |
void Analysis::JetFitterGenericTagInfo::clear | ( | ) |
Definition at line 77 of file JetFitterGenericTagInfo.cxx.
int Analysis::JetFitterGenericTagInfo::clearTemporary | ( | ) |
clean out temporary variables (if you're saving info) returns the number of variables removed
Definition at line 154 of file JetFitterGenericTagInfo.cxx.
|
inlinevirtual |
a clone method for the proper workings of the copy constructor
Implements Analysis::IJetFitterTagInfo.
Definition at line 232 of file JetFitterGenericTagInfo.cxx.
|
virtual |
get deltaeta between sum of all momenta at vertices and the fitted B-meson flight direction
Implements Analysis::IJetFitterTagInfo.
Definition at line 194 of file JetFitterGenericTagInfo.cxx.
|
virtual |
get deltaphi between sum of all momenta at vertices and the fitted B-meson flight direction
Implements Analysis::IJetFitterTagInfo.
Definition at line 199 of file JetFitterGenericTagInfo.cxx.
|
virtual |
The energy fraction: Evtx/Ejet of charges tracks.
Implements Analysis::IJetFitterTagInfo.
Definition at line 185 of file JetFitterGenericTagInfo.cxx.
double Analysis::JetFitterGenericTagInfo::getDouble | ( | const std::string & | key | ) | const |
returns numeric_limits::min() for unset values
Definition at line 84 of file JetFitterGenericTagInfo.cxx.
double Analysis::JetFitterGenericTagInfo::getDoubleOrThrow | ( | const std::string & | key | ) | const |
these versions will throw a range_error if the value isn't set
Definition at line 92 of file JetFitterGenericTagInfo.cxx.
JetFitterGenericTagInfo::DoubleMap::const_iterator Analysis::JetFitterGenericTagInfo::getDoublesBegin | ( | ) | const |
Definition at line 101 of file JetFitterGenericTagInfo.cxx.
JetFitterGenericTagInfo::DoubleMap::const_iterator Analysis::JetFitterGenericTagInfo::getDoublesEnd | ( | ) | const |
Definition at line 105 of file JetFitterGenericTagInfo.cxx.
int Analysis::JetFitterGenericTagInfo::getInt | ( | const std::string & | key | ) | const |
Definition at line 119 of file JetFitterGenericTagInfo.cxx.
int Analysis::JetFitterGenericTagInfo::getIntOrThrow | ( | const std::string & | key | ) | const |
Definition at line 127 of file JetFitterGenericTagInfo.cxx.
JetFitterGenericTagInfo::IntMap::const_iterator Analysis::JetFitterGenericTagInfo::getIntsBegin | ( | ) | const |
Definition at line 137 of file JetFitterGenericTagInfo.cxx.
JetFitterGenericTagInfo::IntMap::const_iterator Analysis::JetFitterGenericTagInfo::getIntsEnd | ( | ) | const |
Definition at line 141 of file JetFitterGenericTagInfo.cxx.
|
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.
|
inlinevirtualinherited |
returns true if the tag was successfull
Implements Analysis::ITagInfo.
Definition at line 81 of file BaseTagInfo.h.
|
inlinevirtualinherited |
sets the isValid flag to true, cannot be reversed!
Implements Analysis::ITagInfo.
Definition at line 85 of file BaseTagInfo.h.
|
virtual |
The invariant mass of the tracks fitted to the vertices with at least 2 tracks.
Implements Analysis::IJetFitterTagInfo.
Definition at line 181 of file JetFitterGenericTagInfo.cxx.
|
virtual |
number of single track vertices
Implements Analysis::IJetFitterTagInfo.
Definition at line 171 of file JetFitterGenericTagInfo.cxx.
|
virtual |
number of tracks at vertices (with more than one track - sum)
Implements Analysis::IJetFitterTagInfo.
Definition at line 176 of file JetFitterGenericTagInfo.cxx.
|
virtual |
number of vertices with more than one track.
Implements Analysis::IJetFitterTagInfo.
Definition at line 166 of file JetFitterGenericTagInfo.cxx.
|
private |
|
virtual |
Implements Analysis::IJetFitterTagInfo.
Definition at line 237 of file JetFitterGenericTagInfo.cxx.
|
virtual |
Implements Analysis::IJetFitterTagInfo.
Definition at line 241 of file JetFitterGenericTagInfo.cxx.
bool Analysis::JetFitterGenericTagInfo::setDouble | ( | const std::string & | key, |
double | value | ||
) |
Definition at line 108 of file JetFitterGenericTagInfo.cxx.
|
virtual |
bool Analysis::JetFitterGenericTagInfo::setInt | ( | const std::string & | key, |
int | value | ||
) |
Definition at line 144 of file JetFitterGenericTagInfo.cxx.
|
virtual |
Implements Analysis::IJetFitterTagInfo.
Definition at line 218 of file JetFitterGenericTagInfo.cxx.
|
virtual |
|
virtual |
Implements Analysis::IJetFitterTagInfo.
Definition at line 213 of file JetFitterGenericTagInfo.cxx.
|
virtual |
Set-methods for the private data members of the class.
Implements Analysis::IJetFitterTagInfo.
Definition at line 204 of file JetFitterGenericTagInfo.cxx.
|
virtual |
Implements Analysis::IJetFitterTagInfo.
Definition at line 227 of file JetFitterGenericTagInfo.cxx.
|
inlineprotectedinherited |
Definition at line 129 of file BaseTagInfo.h.
|
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.
|
inlinevirtualinherited |
to set the tag likelihood for one tagger
Implements Analysis::ITagInfo.
Definition at line 97 of file BaseTagInfo.h.
bool Analysis::JetFitterGenericTagInfo::setTemporaryDouble | ( | const std::string & | key, |
double | value | ||
) |
Definition at line 113 of file JetFitterGenericTagInfo.cxx.
bool Analysis::JetFitterGenericTagInfo::setTemporaryInt | ( | const std::string & | key, |
int | value | ||
) |
Definition at line 149 of file JetFitterGenericTagInfo.cxx.
|
inlineprotectedinherited |
Definition at line 125 of file BaseTagInfo.h.
|
inlinevirtualinherited |
set the weight for one tagger
Implements Analysis::ITagInfo.
Definition at line 113 of file BaseTagInfo.h.
|
virtual |
significance3d of all vertices with more than one track or -if not there-
of all single track vertices
Implements Analysis::IJetFitterTagInfo.
Definition at line 189 of file JetFitterGenericTagInfo.cxx.
|
inlinevirtualinherited |
returns the tag likelihood of one tagger
Implements Analysis::ITagInfo.
Definition at line 101 of file BaseTagInfo.h.
|
inlinevirtualinherited |
get the weight of one tagger
Implements Analysis::ITagInfo.
Definition at line 117 of file BaseTagInfo.h.
Definition at line 56 of file JetFitterGenericTagInfo.h.
Definition at line 57 of file JetFitterGenericTagInfo.h.
Definition at line 54 of file JetFitterGenericTagInfo.h.
|
private |
Definition at line 139 of file JetFitterGenericTagInfo.h.
|
private |
Definition at line 140 of file JetFitterGenericTagInfo.h.
|
protectedinherited |
true if the tagger could tag the jet, default is false
Definition at line 74 of file BaseTagInfo.h.
|
protectedinherited |
string to hold the info type (specified by the tag tool)
Definition at line 77 of file BaseTagInfo.h.
|
protectedinherited |
vector to hold the taglikelihood (signal plus N background)
Definition at line 75 of file BaseTagInfo.h.
|
private |
Definition at line 141 of file JetFitterGenericTagInfo.h.
|
protectedinherited |
weight for this tag
Definition at line 76 of file BaseTagInfo.h.
Definition at line 53 of file JetFitterGenericTagInfo.h.
Definition at line 51 of file JetFitterGenericTagInfo.h.
Definition at line 52 of file JetFitterGenericTagInfo.h.
Definition at line 50 of file JetFitterGenericTagInfo.h.
Definition at line 55 of file JetFitterGenericTagInfo.h.