#include <TMBBTag.hpp>
Inheritance diagram for TMBBTag:

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 TMBJet * | GetJet () const |
| Get objects associated with this tag. | |
| const TMBMuon * | GetMuon () const |
| int | num_tracks () const |
| int | num_neg_tracks () const |
| const TMBTrack * | track (int i) const |
| const TMBTrack * | neg_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 [] |
|
|
Definition at line 122 of file TMBBTag.hpp. |
|
|
Don't write this out, Mr. Root!
Definition at line 38 of file TMBBTag.cpp. Referenced by Clone(). |
|
||||||||||||||||||||||||||||||||||||
|
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. |
|
|
Definition at line 127 of file TMBBTag.cpp. |
|
||||||||||||
|
|
|
|
Make a duplicate of this object!
Definition at line 121 of file TMBBTag.cpp. References TMBBTag(). |
|
||||||||||||
|
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(). |
|
||||||||||||
|
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(). |
|
||||||||||||
|
Definition at line 144 of file TMBBTag.hpp. References _g_flavor_map, _trf_data_f, CHECK_LEGAL_FLAVOR, and data_tagability_rf(). |
|
|
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(). |
|
||||||||||||
|
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(). |
|
|
Definition at line 139 of file TMBBTag.hpp. References _mc_flavor, _trf_data, and _trf_data_err. |
|
|
Definition at line 156 of file TMBBTag.hpp. References _algo. |
|
|
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(). |
|
|
Get objects associated with this tag.
Definition at line 149 of file TMBBTag.cpp. References _jet. Referenced by TMBJet::btag_print(), and print(). |
|
|
Definition at line 175 of file TMBBTag.cpp. References _muon. |
|
|
Definition at line 108 of file TMBBTag.hpp. References _neg_tagged. |
|
|
Easy acess.
Definition at line 106 of file TMBBTag.hpp. References _taggable. Referenced by TMBJet::taggable(). |
|
|
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(). |
|
|
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(). |
|
||||||||||||
|
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(). |
|
||||||||||||
|
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(). |
|
||||||||||||
|
Definition at line 146 of file TMBBTag.hpp. References _g_flavor_map, _trf_mc_f, CHECK_LEGAL_FLAVOR, and mc_tagability_rf(). |
|
|
Definition at line 140 of file TMBBTag.hpp. References _mc_flavor, _trf_data, and _trf_mc. Referenced by scale_factor(). |
|
||||||||||||
|
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(). |
|
|
Definition at line 141 of file TMBBTag.hpp. References _mc_flavor, _trf_data, and _trf_mc_err. |
|
|
Definition at line 117 of file TMBBTag.hpp. References _neg_tracks. |
|
|
Definition at line 115 of file TMBBTag.hpp. References _num_neg_tracks. |
|
|
Definition at line 114 of file TMBBTag.hpp. References _num_tracks. |
|
|
Dump it out.
Definition at line 133 of file TMBBTag.cpp. References _algo, _taggable, TMBJet::btagdictcheck(), GetId(), GetJet(), and TMBJet::taggable(). |
|
||||||||||||
|
Definition at line 148 of file TMBBTag.hpp. References data_trf(), and mc_trf(). |
|
|
Definition at line 142 of file TMBBTag.hpp. References _mc_flavor, _trf_data, and _trf_mc. |
|
||||||||||||||||
|
Definition at line 230 of file TMBBTag.hpp. References _g_flavor_map, _rf_data_taggability, _rf_data_taggability_err, and CHECK_LEGAL_FLAVOR. |
|
||||||||||||||||
|
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. |
|
|
Definition at line 250 of file TMBBTag.hpp. References _tagged. |
|
|
Definition at line 244 of file TMBBTag.hpp. References _mc_flavor, and CHECK_LEGAL_FLAVOR_SET. |
|
||||||||||||||||
|
Definition at line 237 of file TMBBTag.hpp. References _g_flavor_map, _rf_mc_taggability, _rf_mc_taggability_err, and CHECK_LEGAL_FLAVOR. |
|
||||||||||||||||
|
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. |
|
|
Setters to help with updating the algorithm.
Definition at line 162 of file TMBBTag.hpp. References _algo. |
|
||||||||||||||||
|
Definition at line 163 of file TMBBTag.hpp. References _jetbranch, _muonbranch, and _trackbranch. |
|
|
Definition at line 177 of file TMBBTag.hpp. References _id. Referenced by TMBJet::AddBTag(). |
|
|
Definition at line 116 of file TMBBTag.hpp. References _tracks. |
|
|
Definition at line 82 of file TMBBTag.hpp. |
|
|
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(). |
|
|
Definition at line 84 of file TMBBTag.hpp. |
|
|
Definition at line 74 of file TMBBTag.hpp. |
|
|
Definition at line 83 of file TMBBTag.hpp. Referenced by SetBranches(). |
|
|
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(). |
|
|
Definition at line 75 of file TMBBTag.hpp. |
|
|
Definition at line 83 of file TMBBTag.hpp. Referenced by SetBranches(). |
|
|
Definition at line 39 of file TMBBTag.hpp. Referenced by is_neg_tagged(). |
|
|
Definition at line 79 of file TMBBTag.hpp. Referenced by neg_track(), and TMBBTag(). |
|
|
Definition at line 77 of file TMBBTag.hpp. Referenced by num_neg_tracks(), and TMBBTag(). |
|
|
Definition at line 76 of file TMBBTag.hpp. Referenced by num_tracks(), and TMBBTag(). |
|
|
Definition at line 64 of file TMBBTag.hpp. Referenced by data_tagability_rf(), set_data_tagability_rf(), and TMBBTag(). |
|
|
Definition at line 65 of file TMBBTag.hpp. Referenced by data_tagability_err_rf(), set_data_tagability_rf(), and TMBBTag(). |
|
|
Definition at line 67 of file TMBBTag.hpp. Referenced by mc_tagability_rf(), set_mc_tagability_rf(), and TMBBTag(). |
|
|
Definition at line 68 of file TMBBTag.hpp. Referenced by mc_tagability_err_rf(), set_mc_tagability_rf(), and TMBBTag(). |
|
|
Definition at line 37 of file TMBBTag.hpp. Referenced by is_taggable(), and print(). |
|
|
Definition at line 38 of file TMBBTag.hpp. Referenced by is_tagged(), and set_is_tagged(). |
|
|
Definition at line 83 of file TMBBTag.hpp. Referenced by SetBranches(). |
|
|
Definition at line 78 of file TMBBTag.hpp. |
|
|
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(). |
|
|
Definition at line 48 of file TMBBTag.hpp. Referenced by data_trf_err(). |
|
|
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(). |
|
|
Definition at line 59 of file TMBBTag.hpp. Referenced by data_trf_err(), set_data_trf(), and TMBBTag(). |
|
|
Definition at line 48 of file TMBBTag.hpp. Referenced by mc_trf(), and scale_factor(). |
|
|
Definition at line 48 of file TMBBTag.hpp. Referenced by mc_trf_err(). |
|
|
Definition at line 61 of file TMBBTag.hpp. Referenced by mc_trf(), mc_trf_err(), set_mc_trf(), and TMBBTag(). |
|
|
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(). |
1.3.4