#include <TtresdRmin.h>
|
| TtresdRmin (TString units="GeV", bool verbose=false) |
| Class constructor. More...
|
|
virtual | ~TtresdRmin () |
| Class destructor. More...
|
|
void | Init (double highJetMass=60.0, double minJetPt=25.0, double dRCutOffset=2.5, double dRCutMassFactor=0.015) |
| Initialize the tool, giving specific parameters needed for dRmin cut Paramters are given in GeV scale, will be scaled internally to MeV if set. More...
|
|
bool | SetupEvent (vector< TLorentzVector * > &jets, TLorentzVector &lepton, TLorentzVector &neutrino) |
| Set the objects needed to calculate the invariant ttbar mass. More...
|
|
vector< int > | GetJetIndices () |
| Get jet indicices identified by dRmin method, used for mtt reconstruction. More...
|
|
int | GetHighMassJetIndex () |
| Get index of jet with highest mass. More...
|
|
double | GetHighestJetMass () |
| Get highest jet mass found in jet vector. More...
|
|
void | SetHighMThreshold (double highJetMass) |
| Set threshold for highMass case. More...
|
|
double | GetMttdRmin () |
| Get calculated invariant ttbar mass for dRmin method. More...
|
|
TLorentzVector | GetTlvdRmin () |
| Get the TLorentzVector for the ttbar system. More...
|
|
|
bool | FindJetIndices_HM () |
| Find the jet indices used for mtt reconstruction for events containing a high mass jet. More...
|
|
bool | FindJetIndices_LM () |
| Find the jet indices used for mtt reconstruction for events NOT containing a high mass jet. More...
|
|
Definition at line 16 of file TtresdRmin.h.
◆ TtresdRmin()
TtresdRmin::TtresdRmin |
( |
TString |
units = "GeV" , |
|
|
bool |
verbose = false |
|
) |
| |
Class constructor.
Set unit used in four momentum vector calculations
- Parameters
-
units | : Unit used for reconstruction, MeV or GeV |
Definition at line 35 of file TtresdRmin.cxx.
41 }
else if (
units ==
"GeV") {
44 cout <<
" ERROR in in TtresdRmin :: Unit setting '" <<
units <<
"' doest not match pattern of GeV or MeV" << endl;
◆ ~TtresdRmin()
virtual TtresdRmin::~TtresdRmin |
( |
| ) |
|
|
inlinevirtual |
◆ FindJetIndices_HM()
bool TtresdRmin::FindJetIndices_HM |
( |
| ) |
|
|
private |
Find the jet indices used for mtt reconstruction for events containing a high mass jet.
- Returns
- bool : success of function
Definition at line 153 of file TtresdRmin.cxx.
155 double dR_had = 999.9;
156 int closest_jetIdx_had = -1;
159 for (
int ijet = 0; ijet < (
int)
m_jets.size(); ijet++) {
163 closest_jetIdx_had = ijet;
170 double dR_lep = 999.9;
171 int closest_jetIdx_lep = -1;
174 for (
int ijet = 0; ijet < (
int)
m_jets.size(); ijet++) {
176 if (ijet == closest_jetIdx_had)
continue;
179 closest_jetIdx_lep = ijet;
187 if (closest_jetIdx_had >= 0) {
190 if (
m_verbose) cout <<
" WARNING in TtresdRmin :: Can not find jet close to high mass jet" << endl;
193 if (closest_jetIdx_lep >= 0) {
196 if (
m_verbose) cout <<
" WARNING in TtresdRmin :: Can not find jet close to leptonic W-boson" << endl;
◆ FindJetIndices_LM()
bool TtresdRmin::FindJetIndices_LM |
( |
| ) |
|
|
private |
Find the jet indices used for mtt reconstruction for events NOT containing a high mass jet.
- Returns
- bool : success of function
Definition at line 205 of file TtresdRmin.cxx.
207 vector<bool> jetflags(
m_jets.size(),
true);
210 bool repeat_dRmin = ((
int)
m_jets.size() > 3);
213 while (repeat_dRmin) {
214 repeat_dRmin =
false;
223 for (
int ijet = 0; ijet < (
int)
m_jets.size(); ijet++) {
224 if (!jetflags.at(ijet))
continue;
227 if (nijet > 3)
break;
230 double dR_min = 999.9;
239 for (
int jjet = 0; jjet < (
int)
m_jets.size(); jjet++) {
240 if (!jetflags.at(jjet))
continue;
243 if (njjet > 3)
break;
246 if (jjet == ijet)
continue;
248 double dR_jet =
m_jets.at(ijet)->DeltaR(*(
m_jets.at(jjet)));
249 if (dR_jet < dR_min) {
254 if (dR_min > dR_max) {
257 if (dR_min > dR_cut) {
264 if (index_max >= 0) {
265 jetflags.at(index_max) =
false;
266 if (
count(jetflags.begin(), jetflags.end(),
true) > 3) repeat_dRmin =
true;
272 for (
int ijet = 0; ijet < (
int)
m_jets.size(); ijet++) {
273 if (!jetflags.at(ijet))
continue;
276 if (nijet > 3)
break;
◆ GetHighestJetMass()
double TtresdRmin::GetHighestJetMass |
( |
| ) |
|
|
inline |
Get highest jet mass found in jet vector.
- Returns
- double : jet mass
Definition at line 77 of file TtresdRmin.h.
◆ GetHighMassJetIndex()
int TtresdRmin::GetHighMassJetIndex |
( |
| ) |
|
|
inline |
Get index of jet with highest mass.
- Returns
- int : jet index
Definition at line 70 of file TtresdRmin.h.
◆ GetJetIndices()
vector<int> TtresdRmin::GetJetIndices |
( |
| ) |
|
|
inline |
Get jet indicices identified by dRmin method, used for mtt reconstruction.
- Returns
- vector<int> : Indices of identified jets in passed jet vector
Definition at line 63 of file TtresdRmin.h.
◆ GetMttdRmin()
double TtresdRmin::GetMttdRmin |
( |
| ) |
|
Get calculated invariant ttbar mass for dRmin method.
- Returns
- double : invariant ttbar mass
Definition at line 119 of file TtresdRmin.cxx.
120 double mtt_dRmin = 0.0;
123 TLorentzVector dRsumJet(0, 0, 0, 0);
124 for (
unsigned int ijet = 0; ijet <
m_jet_indices.size(); ijet++) {
◆ GetTlvdRmin()
TLorentzVector TtresdRmin::GetTlvdRmin |
( |
| ) |
|
Get the TLorentzVector for the ttbar system.
Definition at line 136 of file TtresdRmin.cxx.
137 TLorentzVector tt_dRmin(0, 0, 0, 0);
140 TLorentzVector dRsumJet(0, 0, 0, 0);
141 for (
unsigned int ijet = 0; ijet < (
unsigned int)
m_jet_indices.size(); ijet++) {
◆ Init()
void TtresdRmin::Init |
( |
double |
highJetMass = 60.0 , |
|
|
double |
minJetPt = 25.0 , |
|
|
double |
dRCutOffset = 2.5 , |
|
|
double |
dRCutMassFactor = 0.015 |
|
) |
| |
Initialize the tool, giving specific parameters needed for dRmin cut Paramters are given in GeV scale, will be scaled internally to MeV if set.
- Parameters
-
highJetMass | : jet mass for highMass jet criteria |
minJetPt | : minimum pT of jets used for dRmin method |
dRCutOffset | : Offset for dRmin specific cut |
dRCutMassFactor | : Factor applied to jet mass in dRmin specific cut |
- Returns
- void
Definition at line 51 of file TtresdRmin.cxx.
◆ SetHighMThreshold()
void TtresdRmin::SetHighMThreshold |
( |
double |
highJetMass | ) |
|
|
inline |
Set threshold for highMass case.
- Parameters
-
highJetMass | threshold for the high jet mass case |
Definition at line 84 of file TtresdRmin.h.
◆ SetupEvent()
bool TtresdRmin::SetupEvent |
( |
vector< TLorentzVector * > & |
jets, |
|
|
TLorentzVector & |
lepton, |
|
|
TLorentzVector & |
neutrino |
|
) |
| |
Set the objects needed to calculate the invariant ttbar mass.
- Parameters
-
jets | : Jet container |
lepton | : Selected lepton |
neutrino | : Reconstructed neutrino |
- Returns
- bool : Success of setup
Definition at line 70 of file TtresdRmin.cxx.
72 cout <<
" ERROR in TtresdRmin :: Tool not initialized! Initialize tool before usage!!!" << endl;
94 for (
int ijet = 0; ijet < (
int)
jets.size(); ijet++) {
96 if (
jets.at(ijet)->Pt() <= minJetPt)
continue;
99 if (
jets.at(ijet)->M() <= highM)
continue;
102 highM =
jets.at(ijet)->M();
105 if (highMJetIdx >= 0) {
◆ m_dRCutMassFactor
double TtresdRmin::m_dRCutMassFactor |
|
private |
Jet mass factor of dRmin specific cut on jet_dR.
Definition at line 122 of file TtresdRmin.h.
◆ m_dRCutOffset
double TtresdRmin::m_dRCutOffset |
|
private |
Offset of dRmin specific cut on jet_dR.
Definition at line 121 of file TtresdRmin.h.
◆ m_highestJetMass
double TtresdRmin::m_highestJetMass |
|
private |
Highest jet mass found for current event.
Definition at line 125 of file TtresdRmin.h.
◆ m_highM
double TtresdRmin::m_highM |
|
private |
Jet mass threshold to identify it as a "high mass jet".
Definition at line 118 of file TtresdRmin.h.
◆ m_highMassJetIndex
int TtresdRmin::m_highMassJetIndex |
|
private |
Index of highest mass jet for current event.
Definition at line 124 of file TtresdRmin.h.
◆ m_init
Flag of initialization status of tool.
Definition at line 116 of file TtresdRmin.h.
◆ m_jet_indices
vector<int> TtresdRmin::m_jet_indices |
|
private |
Indices of jets used for reconstruction of invariant ttbar mass.
Definition at line 132 of file TtresdRmin.h.
◆ m_jets
vector<TLorentzVector*> TtresdRmin::m_jets |
|
private |
◆ m_lepton
TLorentzVector TtresdRmin::m_lepton |
|
private |
◆ m_minJetPt
double TtresdRmin::m_minJetPt |
|
private |
Minimum jet pT used for highM jet search.
Definition at line 120 of file TtresdRmin.h.
◆ m_neutrino
TLorentzVector TtresdRmin::m_neutrino |
|
private |
◆ m_Units
double TtresdRmin::m_Units |
|
private |
Unit factor used, GeV = 1, MeV = 1000.
Definition at line 119 of file TtresdRmin.h.
◆ m_verbose
bool TtresdRmin::m_verbose |
|
private |
◆ m_Wleptonic
TLorentzVector TtresdRmin::m_Wleptonic |
|
private |
leptonic W object reconstructed from lepton and neutrino
Definition at line 130 of file TtresdRmin.h.
The documentation for this class was generated from the following files: