TMBBTag Class Reference

#include <TMBBTag.hpp>

Inheritance diagram for TMBBTag:

TMBBTagJLIP TMBBTagNN TMBBTagSLT TMBBTagSVT List of all members.

Public Types

enum  {
  kFlavorTau = 6,
  kFlavorB = 5,
  kFlavorC = 4,
  kFlavorUDSG = 1,
  kFlavorUnknown = -1,
  kFlavorNotDetermined = -2
}

Public Member Functions

 TMBBTag ()
 Don't write this out, Mr. Root!

 TMBBTag (Bool_t taggable, Bool_t tagged, Bool_t neg_tagged, Int_t mc_flavor, const TMBJet *jet, const TMBMuon *muon, const TRefArray *tracks, const TRefArray *neg_tracks)
virtual ~TMBBTag ()
TObject * Clone (const char *newname="") const
 Make a duplicate of this object!

Bool_t is_taggable () const
 Easy acess.

Bool_t is_tagged () const
Bool_t is_neg_tagged () const
const TMBJetGetJet () const
 Get objects associated with this tag.

const TMBMuonGetMuon () const
int num_tracks () const
int num_neg_tracks () const
const TMBTracktrack (int i) const
const TMBTrackneg_track (int i) const
Int_t mc_flavor () const
 5 = b, 4 = c, 1 = udsg, 6 = tau, -1 = not known, -2 = no attmept to determine

Double_t data_trf (bool include_tagability_rf=true) const
 TRFs: Use the "data_*" to return the probability that this jet was tagged and it is a data jet.

Double_t data_trf_err (bool include_tagability_rf=true) const
Double_t mc_trf (bool include_tagability_rf=true) const
Double_t mc_trf_err (bool include_tagability_rf=true) const
Double_t scale_factor (bool include_tagability_rf=true) const
Double_t data_trf (int flavor, bool include_tagability_rf=true) const
Double_t data_trf_err (int flavor, bool include_tagability_rf=true) const
Double_t mc_trf (int flavor, bool include_tagability_rf=true) const
Double_t mc_trf_err (int flavor, bool include_tagability_rf=true) const
Double_t scale_factor (int flavor, bool include_tagability_rf=true) const
Double_t data_tagability_rf (int flavor, bool include_tagability_rf=true) const
Double_t data_tagability_err_rf (int flavor, bool include_tagability_rf=true) const
Double_t mc_tagability_rf (int flavor, bool include_tagability_rf=true) const
Double_t mc_tagability_err_rf (int flavor, bool include_tagability_rf=true) const
TString GetAlgo () const
bool print () const
 Dump it out.

void SetAlgo (const char *algo)
 Setters to help with updating the algorithm.

void SetBranches (const char *jet, const char *muon, const char *track)
void set_data_trf (int flavor, double val, double err)
 Setters to set the various flavors for RF and tagability.

void set_mc_trf (int flavor, double val, double err)
void set_data_tagability_rf (int flavor, double val, double err)
void set_mc_tagability_rf (int flavor, double val, double err)
void set_mc_flavor (int value)
void set_is_tagged (bool newvalue)
int GetId () const
 Used internally to get around root TRef Bugs. Don't touch!

void SetId (int id)
 ClassDef (TMBBTag, 8)

Private Attributes

Bool_t _taggable
Bool_t _tagged
Bool_t _neg_tagged
Double_t _trf_data
Double_t _trf_data_err
Double_t _trf_mc
Double_t _trf_mc_err
Double_t _trf_data_f [4]
 WARNING: WARNING: this is a packed array!!! [0] - light quark jets [1] - charm quark jets [2] - bottom quark jets [3] - tau jets The mapping is set in the TMBBTag.cpp header! If you modify the absolute number, make sure to adjust the std::fill initalizers sitting in the ctor!

Double_t _trf_data_f_err [4]
Double_t _trf_mc_f [4]
Double_t _trf_mc_f_err [4]
 TRF values and error for running on mc.

Double_t _rf_data_taggability [4]
Double_t _rf_data_taggability_err [4]
Double_t _rf_mc_taggability [4]
Double_t _rf_mc_taggability_err [4]
Int_t _mc_flavor
TRef _jet
TRef _muon
int _num_tracks
int _num_neg_tracks
TRefArray _tracks
TRefArray _neg_tracks
TString _algo
TString _trackbranch
TString _muonbranch
TString _jetbranch
int _id

Static Private Attributes

int _g_flavor_map []

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
kFlavorTau 
kFlavorB 
kFlavorC 
kFlavorUDSG 
kFlavorUnknown 
kFlavorNotDetermined 

Definition at line 122 of file TMBBTag.hpp.


Constructor & Destructor Documentation

TMBBTag::TMBBTag  ) 
 

Don't write this out, Mr. Root!

Definition at line 38 of file TMBBTag.cpp.

Referenced by Clone().

TMBBTag::TMBBTag Bool_t  taggable,
Bool_t  tagged,
Bool_t  neg_tagged,
Int_t  mc_flavor,
const TMBJet jet,
const TMBMuon muon,
const TRefArray *  tracks,
const TRefArray *  neg_tracks
 

Definition at line 54 of file TMBBTag.cpp.

References _jet, _muon, _neg_tracks, _num_neg_tracks, _num_tracks, _rf_data_taggability, _rf_data_taggability_err, _rf_mc_taggability, _rf_mc_taggability_err, _tracks, _trf_data_f, _trf_data_f_err, _trf_mc_f, and _trf_mc_f_err.

TMBBTag::~TMBBTag  )  [virtual]
 

Definition at line 127 of file TMBBTag.cpp.


Member Function Documentation

TMBBTag::ClassDef TMBBTag  ,
 

TObject * TMBBTag::Clone const char *  newname = ""  )  const
 

Make a duplicate of this object!

Definition at line 121 of file TMBBTag.cpp.

References TMBBTag().

Double_t TMBBTag::data_tagability_err_rf int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 151 of file TMBBTag.hpp.

References _g_flavor_map, _rf_data_taggability_err, and CHECK_LEGAL_FLAVOR.

Referenced by data_trf_err().

Double_t TMBBTag::data_tagability_rf int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 150 of file TMBBTag.hpp.

References _g_flavor_map, _rf_data_taggability, and CHECK_LEGAL_FLAVOR.

Referenced by data_trf(), and data_trf_err().

Double_t TMBBTag::data_trf int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 144 of file TMBBTag.hpp.

References _g_flavor_map, _trf_data_f, CHECK_LEGAL_FLAVOR, and data_tagability_rf().

Double_t TMBBTag::data_trf bool  include_tagability_rf = true  )  const [inline]
 

TRFs: Use the "data_*" to return the probability that this jet was tagged and it is a data jet.

The "mc_*" methods will do the same, except the probability of tagging an MC. Scale_factor returns the data prob of a MC jet that has been tagged.

The specific flavor will always be filled. The data_trf() and mc_trf() will return zero if this trf doesn't know its flavor (on data, for example). By default, all will return with the value with tagability included!! So, be careful if that isn't what you want!

Definition at line 138 of file TMBBTag.hpp.

References _mc_flavor, and _trf_data.

Referenced by scale_factor().

Double_t TMBBTag::data_trf_err int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 182 of file TMBBTag.hpp.

References _g_flavor_map, _trf_data_f, _trf_data_f_err, CHECK_LEGAL_FLAVOR, data_tagability_err_rf(), and data_tagability_rf().

Double_t TMBBTag::data_trf_err bool  include_tagability_rf = true  )  const [inline]
 

Definition at line 139 of file TMBBTag.hpp.

References _mc_flavor, _trf_data, and _trf_data_err.

TString TMBBTag::GetAlgo  )  const [inline]
 

Definition at line 156 of file TMBBTag.hpp.

References _algo.

int TMBBTag::GetId  )  const [inline]
 

Used internally to get around root TRef Bugs. Don't touch!

Definition at line 176 of file TMBBTag.hpp.

References _id.

Referenced by TMBJet::btag_print(), TMBJet::GetBTag(), and print().

const TMBJet * TMBBTag::GetJet  )  const
 

Get objects associated with this tag.

Definition at line 149 of file TMBBTag.cpp.

References _jet.

Referenced by TMBJet::btag_print(), and print().

const TMBMuon * TMBBTag::GetMuon  )  const
 

Definition at line 175 of file TMBBTag.cpp.

References _muon.

Bool_t TMBBTag::is_neg_tagged  )  const [inline]
 

Definition at line 108 of file TMBBTag.hpp.

References _neg_tagged.

Bool_t TMBBTag::is_taggable  )  const [inline]
 

Easy acess.

Definition at line 106 of file TMBBTag.hpp.

References _taggable.

Referenced by TMBJet::taggable().

Bool_t TMBBTag::is_tagged  )  const [inline]
 

Definition at line 107 of file TMBBTag.hpp.

References _tagged.

Referenced by TMBJet::btag_jlip_loose(), TMBJet::btag_nn_loose(), and TMBJet::btag_svt_loose().

Int_t TMBBTag::mc_flavor  )  const [inline]
 

5 = b, 4 = c, 1 = udsg, 6 = tau, -1 = not known, -2 = no attmept to determine

Definition at line 120 of file TMBBTag.hpp.

References _mc_flavor.

Referenced by TMBJet::mc_flavor().

Double_t TMBBTag::mc_tagability_err_rf int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 153 of file TMBBTag.hpp.

References _g_flavor_map, _rf_mc_taggability_err, and CHECK_LEGAL_FLAVOR.

Referenced by mc_trf_err().

Double_t TMBBTag::mc_tagability_rf int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 152 of file TMBBTag.hpp.

References _g_flavor_map, _rf_mc_taggability, and CHECK_LEGAL_FLAVOR.

Referenced by mc_trf(), and mc_trf_err().

Double_t TMBBTag::mc_trf int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 146 of file TMBBTag.hpp.

References _g_flavor_map, _trf_mc_f, CHECK_LEGAL_FLAVOR, and mc_tagability_rf().

Double_t TMBBTag::mc_trf bool  include_tagability_rf = true  )  const [inline]
 

Definition at line 140 of file TMBBTag.hpp.

References _mc_flavor, _trf_data, and _trf_mc.

Referenced by scale_factor().

Double_t TMBBTag::mc_trf_err int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 198 of file TMBBTag.hpp.

References _g_flavor_map, _trf_mc_f, _trf_mc_f_err, CHECK_LEGAL_FLAVOR, mc_tagability_err_rf(), and mc_tagability_rf().

Double_t TMBBTag::mc_trf_err bool  include_tagability_rf = true  )  const [inline]
 

Definition at line 141 of file TMBBTag.hpp.

References _mc_flavor, _trf_data, and _trf_mc_err.

const TMBTrack* TMBBTag::neg_track int  i  )  const [inline]
 

Definition at line 117 of file TMBBTag.hpp.

References _neg_tracks.

int TMBBTag::num_neg_tracks  )  const [inline]
 

Definition at line 115 of file TMBBTag.hpp.

References _num_neg_tracks.

int TMBBTag::num_tracks  )  const [inline]
 

Definition at line 114 of file TMBBTag.hpp.

References _num_tracks.

bool TMBBTag::print  )  const
 

Dump it out.

Definition at line 133 of file TMBBTag.cpp.

References _algo, _taggable, TMBJet::btagdictcheck(), GetId(), GetJet(), and TMBJet::taggable().

Double_t TMBBTag::scale_factor int  flavor,
bool  include_tagability_rf = true
const [inline]
 

Definition at line 148 of file TMBBTag.hpp.

References data_trf(), and mc_trf().

Double_t TMBBTag::scale_factor bool  include_tagability_rf = true  )  const [inline]
 

Definition at line 142 of file TMBBTag.hpp.

References _mc_flavor, _trf_data, and _trf_mc.

void TMBBTag::set_data_tagability_rf int  flavor,
double  val,
double  err
[inline]
 

Definition at line 230 of file TMBBTag.hpp.

References _g_flavor_map, _rf_data_taggability, _rf_data_taggability_err, and CHECK_LEGAL_FLAVOR.

void TMBBTag::set_data_trf int  flavor,
double  val,
double  err
[inline]
 

Setters to set the various flavors for RF and tagability.

Definition at line 214 of file TMBBTag.hpp.

References _g_flavor_map, _trf_data, _trf_data_f, _trf_data_f_err, and CHECK_LEGAL_FLAVOR.

void TMBBTag::set_is_tagged bool  newvalue  )  [inline]
 

Definition at line 250 of file TMBBTag.hpp.

References _tagged.

void TMBBTag::set_mc_flavor int  value  )  [inline]
 

Definition at line 244 of file TMBBTag.hpp.

References _mc_flavor, and CHECK_LEGAL_FLAVOR_SET.

void TMBBTag::set_mc_tagability_rf int  flavor,
double  val,
double  err
[inline]
 

Definition at line 237 of file TMBBTag.hpp.

References _g_flavor_map, _rf_mc_taggability, _rf_mc_taggability_err, and CHECK_LEGAL_FLAVOR.

void TMBBTag::set_mc_trf int  flavor,
double  val,
double  err
[inline]
 

Definition at line 222 of file TMBBTag.hpp.

References _g_flavor_map, _trf_data, _trf_mc_f, _trf_mc_f_err, and CHECK_LEGAL_FLAVOR.

void TMBBTag::SetAlgo const char *  algo  )  [inline]
 

Setters to help with updating the algorithm.

Definition at line 162 of file TMBBTag.hpp.

References _algo.

void TMBBTag::SetBranches const char *  jet,
const char *  muon,
const char *  track
[inline]
 

Definition at line 163 of file TMBBTag.hpp.

References _jetbranch, _muonbranch, and _trackbranch.

void TMBBTag::SetId int  id  )  [inline]
 

Definition at line 177 of file TMBBTag.hpp.

References _id.

Referenced by TMBJet::AddBTag().

const TMBTrack* TMBBTag::track int  i  )  const [inline]
 

Definition at line 116 of file TMBBTag.hpp.

References _tracks.


Member Data Documentation

TString TMBBTag::_algo [private]
 

Definition at line 82 of file TMBBTag.hpp.

Referenced by GetAlgo(), print(), and SetAlgo().

int TMBBTag::_g_flavor_map [static, private]
 

Initial value:

 {0 ,
    -1,
    -1,
    -1,
    1 ,
    2 ,
    -1,
    -1,
    -1,
    -1,
    -1,
    -1,
    -1,
    -1,
    -1,
    3}

Definition at line 20 of file TMBBTag.cpp.

Referenced by data_tagability_err_rf(), data_tagability_rf(), data_trf(), data_trf_err(), mc_tagability_err_rf(), mc_tagability_rf(), mc_trf(), mc_trf_err(), set_data_tagability_rf(), set_data_trf(), set_mc_tagability_rf(), and set_mc_trf().

int TMBBTag::_id [private]
 

Definition at line 84 of file TMBBTag.hpp.

Referenced by GetId(), and SetId().

TRef TMBBTag::_jet [private]
 

Definition at line 74 of file TMBBTag.hpp.

Referenced by GetJet(), and TMBBTag().

TString TMBBTag::_jetbranch [private]
 

Definition at line 83 of file TMBBTag.hpp.

Referenced by SetBranches().

Int_t TMBBTag::_mc_flavor [private]
 

Definition at line 70 of file TMBBTag.hpp.

Referenced by data_trf(), data_trf_err(), mc_flavor(), mc_trf(), mc_trf_err(), scale_factor(), and set_mc_flavor().

TRef TMBBTag::_muon [private]
 

Definition at line 75 of file TMBBTag.hpp.

Referenced by GetMuon(), and TMBBTag().

TString TMBBTag::_muonbranch [private]
 

Definition at line 83 of file TMBBTag.hpp.

Referenced by SetBranches().

Bool_t TMBBTag::_neg_tagged [private]
 

Definition at line 39 of file TMBBTag.hpp.

Referenced by is_neg_tagged().

TRefArray TMBBTag::_neg_tracks [private]
 

Definition at line 79 of file TMBBTag.hpp.

Referenced by neg_track(), and TMBBTag().

int TMBBTag::_num_neg_tracks [private]
 

Definition at line 77 of file TMBBTag.hpp.

Referenced by num_neg_tracks(), and TMBBTag().

int TMBBTag::_num_tracks [private]
 

Definition at line 76 of file TMBBTag.hpp.

Referenced by num_tracks(), and TMBBTag().

Double_t TMBBTag::_rf_data_taggability[4] [private]
 

Definition at line 64 of file TMBBTag.hpp.

Referenced by data_tagability_rf(), set_data_tagability_rf(), and TMBBTag().

Double_t TMBBTag::_rf_data_taggability_err[4] [private]
 

Definition at line 65 of file TMBBTag.hpp.

Referenced by data_tagability_err_rf(), set_data_tagability_rf(), and TMBBTag().

Double_t TMBBTag::_rf_mc_taggability[4] [private]
 

Definition at line 67 of file TMBBTag.hpp.

Referenced by mc_tagability_rf(), set_mc_tagability_rf(), and TMBBTag().

Double_t TMBBTag::_rf_mc_taggability_err[4] [private]
 

Definition at line 68 of file TMBBTag.hpp.

Referenced by mc_tagability_err_rf(), set_mc_tagability_rf(), and TMBBTag().

Bool_t TMBBTag::_taggable [private]
 

Definition at line 37 of file TMBBTag.hpp.

Referenced by is_taggable(), and print().

Bool_t TMBBTag::_tagged [private]
 

Definition at line 38 of file TMBBTag.hpp.

Referenced by is_tagged(), and set_is_tagged().

TString TMBBTag::_trackbranch [private]
 

Definition at line 83 of file TMBBTag.hpp.

Referenced by SetBranches().

TRefArray TMBBTag::_tracks [private]
 

Definition at line 78 of file TMBBTag.hpp.

Referenced by TMBBTag(), and track().

Double_t TMBBTag::_trf_data [private]
 

Definition at line 48 of file TMBBTag.hpp.

Referenced by data_trf(), data_trf_err(), mc_trf(), mc_trf_err(), scale_factor(), set_data_trf(), and set_mc_trf().

Double_t TMBBTag::_trf_data_err [private]
 

Definition at line 48 of file TMBBTag.hpp.

Referenced by data_trf_err().

Double_t TMBBTag::_trf_data_f[4] [private]
 

WARNING: WARNING: this is a packed array!!! [0] - light quark jets [1] - charm quark jets [2] - bottom quark jets [3] - tau jets The mapping is set in the TMBBTag.cpp header! If you modify the absolute number, make sure to adjust the std::fill initalizers sitting in the ctor!

Definition at line 58 of file TMBBTag.hpp.

Referenced by data_trf(), data_trf_err(), set_data_trf(), and TMBBTag().

Double_t TMBBTag::_trf_data_f_err[4] [private]
 

Definition at line 59 of file TMBBTag.hpp.

Referenced by data_trf_err(), set_data_trf(), and TMBBTag().

Double_t TMBBTag::_trf_mc [private]
 

Definition at line 48 of file TMBBTag.hpp.

Referenced by mc_trf(), and scale_factor().

Double_t TMBBTag::_trf_mc_err [private]
 

Definition at line 48 of file TMBBTag.hpp.

Referenced by mc_trf_err().

Double_t TMBBTag::_trf_mc_f[4] [private]
 

Definition at line 61 of file TMBBTag.hpp.

Referenced by mc_trf(), mc_trf_err(), set_mc_trf(), and TMBBTag().

Double_t TMBBTag::_trf_mc_f_err[4] [private]
 

TRF values and error for running on mc.

Definition at line 62 of file TMBBTag.hpp.

Referenced by mc_trf_err(), set_mc_trf(), and TMBBTag().


The documentation for this class was generated from the following files:
Generated on Thu Apr 3 04:14:25 2008 for CAF by doxygen 1.3.4