Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
( std::vector<TAbsFitParticle*>* particles,
23
TFitConstraintEp::component
thecomponent,
24
Double_t constraint = 0.);
25
26
TFitConstraintEp
(
const
TString &
name
,
const
TString &
title
,
27
std::vector<TAbsFitParticle*>* particles,
28
TFitConstraintEp::component
thecomponent,
29
Double_t constraint = 0.);
30
virtual
~TFitConstraintEp
();
31
32
void
addParticle
(
TAbsFitParticle
* particle );
33
void
addParticles
(
TAbsFitParticle
*
p1
,
TAbsFitParticle
*
p2
= 0,
TAbsFitParticle
*
p3
= 0,
TAbsFitParticle
*
p4
= 0,
34
TAbsFitParticle
* p5 = 0,
TAbsFitParticle
* p6 = 0,
TAbsFitParticle
* p7 = 0,
TAbsFitParticle
* p8 = 0,
35
TAbsFitParticle
* p9 = 0,
TAbsFitParticle
* p10 = 0);
36
37
// returns derivative df/dP with P=(p,E) and f the constraint f=0.
38
// The matrix contains one row (df/dp, df/dE).
39
virtual
TMatrixD*
getDerivative
(
TAbsFitParticle
* particle );
40
virtual
Double_t
getInitValue
();
41
virtual
Double_t
getCurrentValue
();
42
43
virtual
TString
getInfoString
();
44
virtual
void
print
();
45
46
protected
:
47
48
49
private
:
50
std::vector<TAbsFitParticle*>
_particles
;
// Vector containing constrained particles
51
Double_t
_constraint
;
// Value of constraint
52
TFitConstraintEp::component
_component
;
// 4vector component to be constrained
53
54
};
55
56
#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:89
TFitConstraintEp::pX
Definition:
TFitConstraintEp.h:14
TAbsFitConstraint
Definition:
TAbsFitConstraint.h:10
TFitConstraintEp::getCurrentValue
virtual Double_t getCurrentValue()
Definition:
TFitConstraintEp.cc:134
TFitConstraintEp::_constraint
Double_t _constraint
Definition:
TFitConstraintEp.h:51
TFitConstraintEp::getInitValue
virtual Double_t getInitValue()
Definition:
TFitConstraintEp.cc:121
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
TFitConstraintEp::addParticle
void addParticle(TAbsFitParticle *particle)
Definition:
TFitConstraintEp.cc:82
TFitConstraintEp::print
virtual void print()
Definition:
TFitConstraintEp.cc:166
TFitConstraintEp::getInfoString
virtual TString getInfoString()
Definition:
TFitConstraintEp.cc:147
TFitConstraintEp::~TFitConstraintEp
virtual ~TFitConstraintEp()
Definition:
TFitConstraintEp.cc:78
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
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:52
TFitConstraintEp::getDerivative
virtual TMatrixD * getDerivative(TAbsFitParticle *particle)
Definition:
TFitConstraintEp.cc:110
TFitConstraintEp::pY
Definition:
TFitConstraintEp.h:15
TAbsFitParticle.h
TFitConstraintEp::_particles
std::vector< TAbsFitParticle * > _particles
Definition:
TFitConstraintEp.h:50
TFitConstraintEp::E
Definition:
TFitConstraintEp.h:17
p3
double p3[4]
Definition:
TauolaWrapper.h:91
Generated for CMSSW Reference Manual by
1.8.5