Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
KinFitter
interface
TFitConstraintEp.h
Go to the documentation of this file.
1
#ifndef TFitConstraintEp_hh
2
#define TFitConstraintEp_hh
3
4
#include "
PhysicsTools/KinFitter/interface/TAbsFitConstraint.h
"
5
#include "
PhysicsTools/KinFitter/interface/TAbsFitParticle.h
"
6
#include "TMatrixD.h"
7
#include <vector>
8
9
class
TFitConstraintEp
:
public
TAbsFitConstraint
{
10
11
public
:
12
13
enum
component
{
14
pX
,
15
pY
,
16
pZ
,
17
E
18
};
19
20
TFitConstraintEp
( );
21
22
TFitConstraintEp
(
const
TString &
name
,
const
TString &
title
,
23
TFitConstraintEp::component
thecomponent,
24
Double_t
constraint
= 0.);
25
26
TFitConstraintEp
( std::vector<TAbsFitParticle*>* particles,
27
TFitConstraintEp::component
thecomponent,
28
Double_t
constraint
= 0.);
29
30
TFitConstraintEp
(
const
TString &
name
,
const
TString &
title
,
31
std::vector<TAbsFitParticle*>* particles,
32
TFitConstraintEp::component
thecomponent,
33
Double_t
constraint
= 0.);
34
virtual
~TFitConstraintEp
();
35
36
void
addParticle
(
TAbsFitParticle
* particle );
37
void
addParticles
(
TAbsFitParticle
*
p1
,
TAbsFitParticle
*
p2
= 0,
TAbsFitParticle
*
p3
= 0,
TAbsFitParticle
*
p4
= 0,
38
TAbsFitParticle
* p5 = 0,
TAbsFitParticle
* p6 = 0,
TAbsFitParticle
* p7 = 0,
TAbsFitParticle
* p8 = 0,
39
TAbsFitParticle
* p9 = 0,
TAbsFitParticle
* p10 = 0);
40
void
setConstraint
(Double_t
constraint
){
_constraint
=
constraint
;};
41
42
// returns derivative df/dP with P=(p,E) and f the constraint f=0.
43
// The matrix contains one row (df/dp, df/dE).
44
virtual
TMatrixD*
getDerivative
(
TAbsFitParticle
* particle );
45
virtual
Double_t
getInitValue
();
46
virtual
Double_t
getCurrentValue
();
47
48
virtual
TString
getInfoString
();
49
virtual
void
print
();
50
51
protected
:
52
53
54
private
:
55
std::vector<TAbsFitParticle*>
_particles
;
// Vector containing constrained particles
56
Double_t
_constraint
;
// Value of constraint
57
TFitConstraintEp::component
_component
;
// 4vector component to be constrained
58
59
};
60
61
#endif
indexGen.title
title
Definition:
indexGen.py:48
TFitConstraintEp::addParticles
void addParticles(TAbsFitParticle *p1, TAbsFitParticle *p2=0, TAbsFitParticle *p3=0, TAbsFitParticle *p4=0, TAbsFitParticle *p5=0, TAbsFitParticle *p6=0, TAbsFitParticle *p7=0, TAbsFitParticle *p8=0, TAbsFitParticle *p9=0, TAbsFitParticle *p10=0)
Definition:
TFitConstraintEp.cc:98
TFitConstraintEp::pX
Definition:
TFitConstraintEp.h:14
TAbsFitConstraint
Definition:
TAbsFitConstraint.h:10
TFitConstraintEp::getCurrentValue
virtual Double_t getCurrentValue()
Definition:
TFitConstraintEp.cc:143
TFitConstraintEp::_constraint
Double_t _constraint
Definition:
TFitConstraintEp.h:56
TFitConstraintEp::getInitValue
virtual Double_t getInitValue()
Definition:
TFitConstraintEp.cc:130
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
TFitConstraintEp::addParticle
void addParticle(TAbsFitParticle *particle)
Definition:
TFitConstraintEp.cc:91
TFitConstraintEp::print
virtual void print()
Definition:
TFitConstraintEp.cc:175
TFitConstraintEp::getInfoString
virtual TString getInfoString()
Definition:
TFitConstraintEp.cc:156
TFitConstraintEp::~TFitConstraintEp
virtual ~TFitConstraintEp()
Definition:
TFitConstraintEp.cc:87
HLT_FULL_cff.constraint
tuple constraint
Definition:
HLT_FULL_cff.py:10353
TFitConstraintEp::pZ
Definition:
TFitConstraintEp.h:16
p4
double p4[4]
Definition:
TauolaWrapper.h:92
TFitConstraintEp
Definition:
TFitConstraintEp.h:9
TFitConstraintEp::TFitConstraintEp
TFitConstraintEp()
Definition:
TFitConstraintEp.cc:25
p2
double p2[4]
Definition:
TauolaWrapper.h:90
TFitConstraintEp::setConstraint
void setConstraint(Double_t constraint)
Definition:
TFitConstraintEp.h:40
TAbsFitParticle
Definition:
TAbsFitParticle.h:9
TFitConstraintEp::component
component
Definition:
TFitConstraintEp.h:13
TAbsFitConstraint.h
p1
double p1[4]
Definition:
TauolaWrapper.h:89
TFitConstraintEp::_component
TFitConstraintEp::component _component
Definition:
TFitConstraintEp.h:57
TFitConstraintEp::getDerivative
virtual TMatrixD * getDerivative(TAbsFitParticle *particle)
Definition:
TFitConstraintEp.cc:119
TFitConstraintEp::pY
Definition:
TFitConstraintEp.h:15
TAbsFitParticle.h
TFitConstraintEp::_particles
std::vector< TAbsFitParticle * > _particles
Definition:
TFitConstraintEp.h:55
TFitConstraintEp::E
Definition:
TFitConstraintEp.h:17
p3
double p3[4]
Definition:
TauolaWrapper.h:91
Generated for CMSSW Reference Manual by
1.8.5