PhysicsTools
RecoAlgos
plugins
MassKinFitterCandCustomProducer.cc
Go to the documentation of this file.
1
/* \class MassKinFitterCandProducer
2
*
3
* \author Luca Lista, INFN
4
*
5
*/
6
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
7
#include "
PhysicsTools/RecoAlgos/interface/MassKinFitterCandProducer.h
"
8
9
class
CustomKinFitter
:
public
CandMassKinFitter
{
10
public
:
11
CustomKinFitter
(
double
mass
) :
CandMassKinFitter
(
mass
) {}
12
virtual
~CustomKinFitter
() =
default
;
13
14
private
:
15
virtual
double
errEt
(
double
et
,
double
eta
)
const
{
return
0.2; }
16
virtual
double
errEta
(
double
et
,
double
eta
)
const
{
return
0.2; }
17
virtual
double
errPhi
(
double
et
,
double
eta
)
const
{
return
0.2; }
18
};
19
20
class
MassKinFitterCandCustomProducer
:
public
MassKinFitterCandProducer
{
21
public
:
22
explicit
MassKinFitterCandCustomProducer
(
const
edm::ParameterSet
&
cfg
)
23
:
MassKinFitterCandProducer
(
cfg
, new
CustomKinFitter
(
cfg
.getParameter<double>(
"mass"
))) {}
24
};
25
26
#include "
FWCore/Framework/interface/MakerMacros.h
"
27
28
DEFINE_FWK_MODULE
(
MassKinFitterCandCustomProducer
);
CustomKinFitter
Definition:
MassKinFitterCandCustomProducer.cc:9
CustomKinFitter::errEt
virtual double errEt(double et, double eta) const
Definition:
MassKinFitterCandCustomProducer.cc:15
CustomKinFitter::errEta
virtual double errEta(double et, double eta) const
Definition:
MassKinFitterCandCustomProducer.cc:16
CustomKinFitter::CustomKinFitter
CustomKinFitter(double mass)
Definition:
MassKinFitterCandCustomProducer.cc:11
MakerMacros.h
CustomKinFitter::~CustomKinFitter
virtual ~CustomKinFitter()=default
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
CandMassKinFitter
Definition:
CandMassKinFitter.h:6
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
MassKinFitterCandProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:36
CustomKinFitter::errPhi
virtual double errPhi(double et, double eta) const
Definition:
MassKinFitterCandCustomProducer.cc:17
EgHLTOffHistBins_cfi.et
et
Definition:
EgHLTOffHistBins_cfi.py:8
MassKinFitterCandCustomProducer
Definition:
MassKinFitterCandCustomProducer.cc:20
looper.cfg
cfg
Definition:
looper.py:297
MassKinFitterCandCustomProducer::MassKinFitterCandCustomProducer
MassKinFitterCandCustomProducer(const edm::ParameterSet &cfg)
Definition:
MassKinFitterCandCustomProducer.cc:22
EgHLTOffHistBins_cfi.mass
mass
Definition:
EgHLTOffHistBins_cfi.py:34
MassKinFitterCandProducer
Definition:
MassKinFitterCandProducer.h:14
ParameterSet.h
Generated for CMSSW Reference Manual by
1.8.16