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

#include <TruthTagResults.h>

Collaboration diagram for Analysis::TruthTagResults:

Public Member Functions

void clear ()
 
float getEvtDirectTagSF (std::string syst_name="Nominal")
 
std::vector< bool > getDirectTaggedJets ()
 
float getEventWeight (int nbtag, bool Ex, std::string syst_name="Nominal")
 
std::vector< bool > getEventPermutation (int nbtag, bool Ex)
 
std::vector< int > getEventQuantiles (int nbtag, bool Ex)
 
std::vector< float > getRandomTaggerScores (int nbtag, bool Ex)
 

Public Attributes

std::map< std::string, std::vector< float > > map_trf_weight_ex
 
std::map< std::string, std::vector< float > > map_trf_weight_in
 
std::map< std::string, std::vector< float > > map_SF_ex
 
std::map< std::string, std::vector< float > > map_SF_in
 
std::vector< std::vector< bool > > trf_chosen_perm_ex
 
std::vector< std::vector< bool > > trf_chosen_perm_in
 
std::vector< std::vector< int > > trf_bin_ex
 
std::vector< std::vector< int > > trf_bin_in
 
std::vector< std::vector< float > > trf_bin_score_ex
 
std::vector< std::vector< float > > trf_bin_score_in
 
std::vector< std::vector< float > > trf_ctag_bin_score_ex
 
std::vector< std::vector< float > > trf_ctag_bin_score_in
 
std::vector< bool > is_tagged
 
std::map< std::string, float > map_SF
 
std::vector< std::string > syst_names
 

Detailed Description

Definition at line 14 of file TruthTagResults.h.

Member Function Documentation

◆ clear()

void Analysis::TruthTagResults::clear ( )
inline

Definition at line 53 of file TruthTagResults.h.

53  {
54 
55  map_trf_weight_ex.clear();
56  map_trf_weight_in.clear();
57  trf_chosen_perm_ex.clear();
58  trf_chosen_perm_in.clear();
59  trf_bin_ex.clear();
60  trf_bin_in.clear();
61 
62  }

◆ getDirectTaggedJets()

std::vector<bool> Analysis::TruthTagResults::getDirectTaggedJets ( )
inline

Definition at line 69 of file TruthTagResults.h.

70  {
71  return(is_tagged);
72 
73  }

◆ getEventPermutation()

std::vector<bool> Analysis::TruthTagResults::getEventPermutation ( int  nbtag,
bool  Ex 
)
inline

Definition at line 87 of file TruthTagResults.h.

88  {
89  if(Ex)
90  {
91  return(trf_chosen_perm_ex.at(nbtag));
92  }
93 
94  else
95  {
96  return(trf_chosen_perm_in.at(nbtag));
97  }
98  }

◆ getEventQuantiles()

std::vector<int> Analysis::TruthTagResults::getEventQuantiles ( int  nbtag,
bool  Ex 
)
inline

Definition at line 100 of file TruthTagResults.h.

101  {
102  if(Ex)
103  {
104  return(trf_bin_ex.at(nbtag));
105  }
106 
107  else
108  {
109  return(trf_bin_in.at(nbtag));
110  }
111  }

◆ getEventWeight()

float Analysis::TruthTagResults::getEventWeight ( int  nbtag,
bool  Ex,
std::string  syst_name = "Nominal" 
)
inline

Definition at line 75 of file TruthTagResults.h.

76  {
77  if(Ex)
78  {
79  return map_trf_weight_ex[syst_name].at(nbtag);
80  }
81  else
82  {
83  return map_trf_weight_in[syst_name].at(nbtag);
84  }
85  }

◆ getEvtDirectTagSF()

float Analysis::TruthTagResults::getEvtDirectTagSF ( std::string  syst_name = "Nominal")
inline

Definition at line 64 of file TruthTagResults.h.

65  {
66  return(map_SF[syst_name]);
67  }

◆ getRandomTaggerScores()

std::vector<float> Analysis::TruthTagResults::getRandomTaggerScores ( int  nbtag,
bool  Ex 
)
inline

Definition at line 114 of file TruthTagResults.h.

115  {
116  if(Ex)
117  {
118  return(trf_bin_score_ex.at(nbtag));
119  }
120  else
121  {
122  return(trf_bin_score_in.at(nbtag));
123  }
124  }

Member Data Documentation

◆ is_tagged

std::vector<bool> Analysis::TruthTagResults::is_tagged

Definition at line 48 of file TruthTagResults.h.

◆ map_SF

std::map<std::string,float > Analysis::TruthTagResults::map_SF

Definition at line 49 of file TruthTagResults.h.

◆ map_SF_ex

std::map<std::string,std::vector<float> > Analysis::TruthTagResults::map_SF_ex

Definition at line 27 of file TruthTagResults.h.

◆ map_SF_in

std::map<std::string,std::vector<float> > Analysis::TruthTagResults::map_SF_in

Definition at line 28 of file TruthTagResults.h.

◆ map_trf_weight_ex

std::map<std::string,std::vector<float> > Analysis::TruthTagResults::map_trf_weight_ex

Definition at line 21 of file TruthTagResults.h.

◆ map_trf_weight_in

std::map<std::string,std::vector<float> > Analysis::TruthTagResults::map_trf_weight_in

Definition at line 22 of file TruthTagResults.h.

◆ syst_names

std::vector<std::string> Analysis::TruthTagResults::syst_names

Definition at line 51 of file TruthTagResults.h.

◆ trf_bin_ex

std::vector<std::vector<int> > Analysis::TruthTagResults::trf_bin_ex

Definition at line 36 of file TruthTagResults.h.

◆ trf_bin_in

std::vector<std::vector<int> > Analysis::TruthTagResults::trf_bin_in

Definition at line 37 of file TruthTagResults.h.

◆ trf_bin_score_ex

std::vector<std::vector<float> > Analysis::TruthTagResults::trf_bin_score_ex

Definition at line 40 of file TruthTagResults.h.

◆ trf_bin_score_in

std::vector<std::vector<float> > Analysis::TruthTagResults::trf_bin_score_in

Definition at line 41 of file TruthTagResults.h.

◆ trf_chosen_perm_ex

std::vector<std::vector<bool> > Analysis::TruthTagResults::trf_chosen_perm_ex

Definition at line 32 of file TruthTagResults.h.

◆ trf_chosen_perm_in

std::vector<std::vector<bool> > Analysis::TruthTagResults::trf_chosen_perm_in

Definition at line 33 of file TruthTagResults.h.

◆ trf_ctag_bin_score_ex

std::vector<std::vector<float> > Analysis::TruthTagResults::trf_ctag_bin_score_ex

Definition at line 44 of file TruthTagResults.h.

◆ trf_ctag_bin_score_in

std::vector<std::vector<float> > Analysis::TruthTagResults::trf_ctag_bin_score_in

Definition at line 45 of file TruthTagResults.h.


The documentation for this class was generated from the following file:
Analysis::TruthTagResults::trf_chosen_perm_ex
std::vector< std::vector< bool > > trf_chosen_perm_ex
Definition: TruthTagResults.h:32
Analysis::TruthTagResults::map_trf_weight_in
std::map< std::string, std::vector< float > > map_trf_weight_in
Definition: TruthTagResults.h:22
Analysis::TruthTagResults::trf_bin_ex
std::vector< std::vector< int > > trf_bin_ex
Definition: TruthTagResults.h:36
Analysis::TruthTagResults::trf_bin_score_in
std::vector< std::vector< float > > trf_bin_score_in
Definition: TruthTagResults.h:41
Analysis::TruthTagResults::map_trf_weight_ex
std::map< std::string, std::vector< float > > map_trf_weight_ex
Definition: TruthTagResults.h:21
Analysis::TruthTagResults::trf_bin_score_ex
std::vector< std::vector< float > > trf_bin_score_ex
Definition: TruthTagResults.h:40
Analysis::TruthTagResults::trf_chosen_perm_in
std::vector< std::vector< bool > > trf_chosen_perm_in
Definition: TruthTagResults.h:33
Analysis::TruthTagResults::trf_bin_in
std::vector< std::vector< int > > trf_bin_in
Definition: TruthTagResults.h:37
Analysis::TruthTagResults::map_SF
std::map< std::string, float > map_SF
Definition: TruthTagResults.h:49
Analysis::TruthTagResults::is_tagged
std::vector< bool > is_tagged
Definition: TruthTagResults.h:48