Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TopQuarkAnalysis
TopKinFitter
interface
TtSemiLepKinFitter.h
Go to the documentation of this file.
1
#ifndef TtSemiLepKinFitter_h
2
#define TtSemiLepKinFitter_h
3
4
#include <vector>
5
6
#include "TLorentzVector.h"
7
8
#include "
DataFormats/PatCandidates/interface/Lepton.h
"
9
10
#include "
AnalysisDataFormats/TopObjects/interface/TtSemiEvtSolution.h
"
11
12
#include "
TopQuarkAnalysis/TopKinFitter/interface/TopKinFitter.h
"
13
14
class
TAbsFitParticle
;
15
class
TFitConstraintM
;
16
17
/*
18
\class TtSemiLepKinFitter TtSemiLepKinFitter.h "TopQuarkAnalysis/TopKinFitter/interface/TtSemiLepKinFitter.h"
19
20
\brief one line description to be added here...
21
22
text to be added here...
23
24
**/
25
26
class
TtSemiLepKinFitter
:
public
TopKinFitter
{
27
28
public
:
29
31
enum
Constraint
{
kWHadMass
= 1,
kWLepMass
,
kTopHadMass
,
kTopLepMass
,
kNeutrinoMass
,
kEqualTopMasses
};
32
33
public
:
35
explicit
TtSemiLepKinFitter
();
37
explicit
TtSemiLepKinFitter
(
Param
jetParam,
Param
lepParam,
Param
metParam,
int
maxNrIter,
double
maxDeltaS,
double
maxF,
38
std::vector<Constraint>
constraints
,
double
mW=80.4,
double
mTop=173.);
40
~TtSemiLepKinFitter
();
41
43
template
<
class
LeptonType>
int
fit
(
const
std::vector<pat::Jet>&
jets
,
const
pat::Lepton<LeptonType>
& leps,
const
pat::MET
&
met
);
44
// return hadronic b quark candidate
45
const
pat::Particle
fittedHadB
()
const
{
return
(
fitter_
->
getStatus
()==0 ?
fittedHadB_
:
pat::Particle
()); };
46
// return hadronic light quark candidate
47
const
pat::Particle
fittedHadP
()
const
{
return
(
fitter_
->
getStatus
()==0 ?
fittedHadP_
:
pat::Particle
()); };
48
// return hadronic light quark candidate
49
const
pat::Particle
fittedHadQ
()
const
{
return
(
fitter_
->
getStatus
()==0 ?
fittedHadQ_
:
pat::Particle
()); };
50
// return leptonic b quark candidate
51
const
pat::Particle
fittedLepB
()
const
{
return
(
fitter_
->
getStatus
()==0 ?
fittedLepB_
:
pat::Particle
()); };
52
// return lepton candidate
53
const
pat::Particle
fittedLepton
()
const
{
return
(
fitter_
->
getStatus
()==0 ?
fittedLepton_
:
pat::Particle
()); };
54
// return neutrino candidate
55
const
pat::Particle
fittedNeutrino
()
const
{
return
(
fitter_
->
getStatus
()==0 ?
fittedNeutrino_
:
pat::Particle
()); };
57
TtSemiEvtSolution
addKinFitInfo
(
TtSemiEvtSolution
* asol);
58
59
private
:
61
void
printSetup
()
const
;
63
void
setupFitter
();
65
void
setupJets
();
67
void
setupLeptons
();
69
void
setupConstraints
();
70
71
private
:
72
// input particles
73
TAbsFitParticle
*
hadB_
;
74
TAbsFitParticle
*
hadP_
;
75
TAbsFitParticle
*
hadQ_
;
76
TAbsFitParticle
*
lepB_
;
77
TAbsFitParticle
*
lepton_
;
78
TAbsFitParticle
*
neutrino_
;
79
// supported constraints
80
std::map<Constraint, TFitConstraintM*>
massConstr_
;
81
// output particles
82
pat::Particle
fittedHadB_
;
83
pat::Particle
fittedHadP_
;
84
pat::Particle
fittedHadQ_
;
85
pat::Particle
fittedLepB_
;
86
pat::Particle
fittedLepton_
;
87
pat::Particle
fittedNeutrino_
;
89
Param
jetParam_
;
91
Param
lepParam_
;
93
Param
metParam_
;
95
std::vector<Constraint>
constrList_
;
96
};
97
98
#endif
TFitConstraintM
Definition:
TFitConstraintM.h:11
pat::MET
Analysis-level MET class.
Definition:
MET.h:42
TtSemiLepKinFitter::fittedHadP
const pat::Particle fittedHadP() const
Definition:
TtSemiLepKinFitter.h:47
TtSemiLepKinFitter::hadB_
TAbsFitParticle * hadB_
Definition:
TtSemiLepKinFitter.h:73
TtSemiLepKinFitter::kWLepMass
Definition:
TtSemiLepKinFitter.h:31
TopKinFitter::Param
Param
supported parameterizations
Definition:
TopKinFitter.h:22
TtSemiLepKinFitter::kTopHadMass
Definition:
TtSemiLepKinFitter.h:31
CaloMET_cfi.met
tuple met
Definition:
CaloMET_cfi.py:18
TtSemiLepKinFitter::neutrino_
TAbsFitParticle * neutrino_
Definition:
TtSemiLepKinFitter.h:78
TtSemiLepKinFitter::fittedNeutrino
const pat::Particle fittedNeutrino() const
Definition:
TtSemiLepKinFitter.h:55
TtSemiLepKinFitter::fittedLepB
const pat::Particle fittedLepB() const
Definition:
TtSemiLepKinFitter.h:51
TtSemiLepKinFitter::hadQ_
TAbsFitParticle * hadQ_
Definition:
TtSemiLepKinFitter.h:75
TopKinFitter.h
TtSemiEvtSolution
Definition:
TtSemiEvtSolution.h:32
TtSemiLepKinFitter::kEqualTopMasses
Definition:
TtSemiLepKinFitter.h:31
TtSemiLepKinFitter::fittedHadP_
pat::Particle fittedHadP_
Definition:
TtSemiLepKinFitter.h:83
TtSemiLepKinFitter::fittedLepB_
pat::Particle fittedLepB_
Definition:
TtSemiLepKinFitter.h:85
TtSemiLepKinFitter::lepParam_
Param lepParam_
lepton parametrization
Definition:
TtSemiLepKinFitter.h:91
TtSemiLepKinFitter::fittedHadB_
pat::Particle fittedHadB_
Definition:
TtSemiLepKinFitter.h:82
analyzePatCleaning_cfg.jets
tuple jets
Definition:
analyzePatCleaning_cfg.py:8
TtSemiLepKinFitter::lepton_
TAbsFitParticle * lepton_
Definition:
TtSemiLepKinFitter.h:77
TtSemiLepKinFitter::fit
int fit(const std::vector< pat::Jet > &jets, const pat::Lepton< LeptonType > &leps, const pat::MET &met)
kinematic fit interface
Definition:
TtSemiLepKinFitter.cc:155
TtSemiLepKinFitter::kNeutrinoMass
Definition:
TtSemiLepKinFitter.h:31
TtSemiLepKinFitter::setupJets
void setupJets()
initialize jet inputs
Definition:
TtSemiLepKinFitter.cc:73
TtSemiLepKinFitter::printSetup
void printSetup() const
print fitter setup
Definition:
TtSemiLepKinFitter.cc:45
Lepton.h
TtSemiLepKinFitter::fittedLepton_
pat::Particle fittedLepton_
Definition:
TtSemiLepKinFitter.h:86
TtSemiLepKinFitter::hadP_
TAbsFitParticle * hadP_
Definition:
TtSemiLepKinFitter.h:74
pat::Lepton
Analysis-level lepton class.
Definition:
Lepton.h:32
TKinFitter::getStatus
Int_t getStatus()
Definition:
TKinFitter.h:40
TtSemiLepKinFitter::jetParam_
Param jetParam_
jet parametrization
Definition:
TtSemiLepKinFitter.h:89
TtSemiLepKinFitter::fittedHadB
const pat::Particle fittedHadB() const
Definition:
TtSemiLepKinFitter.h:45
TtSemiLepKinFitter::TtSemiLepKinFitter
TtSemiLepKinFitter()
default constructor
Definition:
TtSemiLepKinFitter.cc:15
TtSemiLepKinFitter::massConstr_
std::map< Constraint, TFitConstraintM * > massConstr_
Definition:
TtSemiLepKinFitter.h:80
TtSemiLepKinFitter::metParam_
Param metParam_
met parametrization
Definition:
TtSemiLepKinFitter.h:93
TtSemiLepKinFitter::fittedHadQ_
pat::Particle fittedHadQ_
Definition:
TtSemiLepKinFitter.h:84
TtSemiLepKinFitter::addKinFitInfo
TtSemiEvtSolution addKinFitInfo(TtSemiEvtSolution *asol)
add kin fit information to the old event solution (in for legacy reasons)
Definition:
TtSemiLepKinFitter.cc:225
TAbsFitParticle
Definition:
TAbsFitParticle.h:9
TtSemiLepKinFitter::~TtSemiLepKinFitter
~TtSemiLepKinFitter()
default destructor
Definition:
TtSemiLepKinFitter.cc:33
TtSemiLepKinFitter::setupConstraints
void setupConstraints()
initialize constraints
Definition:
TtSemiLepKinFitter.cc:114
TtSemiLepKinFitter::constrList_
std::vector< Constraint > constrList_
vector of constraints to be used
Definition:
TtSemiLepKinFitter.h:95
TtSemiLepKinFitter::setupLeptons
void setupLeptons()
initialize lepton inputs
Definition:
TtSemiLepKinFitter.cc:99
pat::Particle
Analysis-level particle class.
Definition:
Particle.h:34
TopKinFitter
Definition:
TopKinFitter.h:17
TtSemiLepKinFitter::fittedHadQ
const pat::Particle fittedHadQ() const
Definition:
TtSemiLepKinFitter.h:49
createBeamHaloJobs.constraints
string constraints
Definition:
createBeamHaloJobs.py:179
TtSemiEvtSolution.h
TtSemiLepKinFitter::fittedLepton
const pat::Particle fittedLepton() const
Definition:
TtSemiLepKinFitter.h:53
TtSemiLepKinFitter::kWHadMass
Definition:
TtSemiLepKinFitter.h:31
TtSemiLepKinFitter::setupFitter
void setupFitter()
setup fitter
Definition:
TtSemiLepKinFitter.cc:132
TtSemiLepKinFitter::fittedNeutrino_
pat::Particle fittedNeutrino_
Definition:
TtSemiLepKinFitter.h:87
TtSemiLepKinFitter::kTopLepMass
Definition:
TtSemiLepKinFitter.h:31
TopKinFitter::fitter_
TKinFitter * fitter_
Definition:
TopKinFitter.h:44
TtSemiLepKinFitter::lepB_
TAbsFitParticle * lepB_
Definition:
TtSemiLepKinFitter.h:76
TtSemiLepKinFitter::Constraint
Constraint
supported constraints
Definition:
TtSemiLepKinFitter.h:31
TtSemiLepKinFitter
Definition:
TtSemiLepKinFitter.h:26
Generated for CMSSW Reference Manual by
1.8.5