PhysicsTools
PatUtils
interface
SimpleJetTrackAssociator.h
Go to the documentation of this file.
1
#include "
DataFormats/TrackReco/interface/TrackFwd.h
"
2
#include "
DataFormats/Math/interface/Vector3D.h
"
3
#include "
DataFormats/Common/interface/View.h
"
4
5
namespace
helper
{
6
class
SimpleJetTrackAssociator
{
7
public
:
8
SimpleJetTrackAssociator
() :
deltaR2_
(0),
nHits_
(0),
chi2nMax_
(0) {}
9
SimpleJetTrackAssociator
(
double
deltaR
, int32_t nHits,
double
chi2nMax
)
10
:
deltaR2_
(
deltaR
*
deltaR
),
nHits_
(nHits),
chi2nMax_
(
chi2nMax
) {}
11
12
// 100% FWLite compatible (but will make up transient refs)
13
void
associateTransient
(
const
math::XYZVector
&
dir
,
const
reco::TrackCollection
&
in
,
reco::TrackRefVector
&
out
);
14
15
// more versatile, persistent refs, for when we're in full framework
16
void
associate
(
const
math::XYZVector
&
dir
,
const
edm::View<reco::Track>
&
in
,
reco::TrackRefVector
&
out
);
17
18
private
:
19
double
deltaR2_
;
20
int32_t
nHits_
;
21
double
chi2nMax_
;
22
};
23
}
// namespace helper
edm::RefVector< TrackCollection >
helper::SimpleJetTrackAssociator::associate
void associate(const math::XYZVector &dir, const edm::View< reco::Track > &in, reco::TrackRefVector &out)
Definition:
SimpleJetTrackAssociator.cc:19
TrackFwd.h
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition:
PbPb_ZMuSkimMuonDPG_cff.py:63
edm::View
Definition:
CaloClusterFwd.h:14
helper::SimpleJetTrackAssociator::nHits_
int32_t nHits_
Definition:
SimpleJetTrackAssociator.h:20
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
helper
Definition:
helper.py:1
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition:
Vector3D.h:31
helper::SimpleJetTrackAssociator
Definition:
SimpleJetTrackAssociator.h:6
helper::SimpleJetTrackAssociator::SimpleJetTrackAssociator
SimpleJetTrackAssociator(double deltaR, int32_t nHits, double chi2nMax)
Definition:
SimpleJetTrackAssociator.h:9
helper::SimpleJetTrackAssociator::chi2nMax_
double chi2nMax_
Definition:
SimpleJetTrackAssociator.h:21
AlignmentTrackSelector_cfi.chi2nMax
chi2nMax
Definition:
AlignmentTrackSelector_cfi.py:19
helper::SimpleJetTrackAssociator::associateTransient
void associateTransient(const math::XYZVector &dir, const reco::TrackCollection &in, reco::TrackRefVector &out)
Definition:
SimpleJetTrackAssociator.cc:5
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
helper::SimpleJetTrackAssociator::SimpleJetTrackAssociator
SimpleJetTrackAssociator()
Definition:
SimpleJetTrackAssociator.h:8
View.h
Vector3D.h
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition:
TrackFwd.h:14
helper::SimpleJetTrackAssociator::deltaR2_
double deltaR2_
Definition:
SimpleJetTrackAssociator.h:19
DeadROC_duringRun.dir
dir
Definition:
DeadROC_duringRun.py:23
Generated for CMSSW Reference Manual by
1.8.16