src
Fireworks
GenParticle
plugins
FWGenParticleProxyBuilder.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Core
4
// Class : FWGenParticleProxyBuilder
5
//
14
//
15
// Original Author:
16
// Created: Thu Dec 6 18:01:21 PST 2007
17
//
18
19
#include "TEveTrack.h"
20
21
#include "
Fireworks/Core/interface/FWEventItem.h
"
22
#include "
Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h
"
23
#include "
Fireworks/Candidates/interface/CandidateUtils.h
"
24
25
#include "
DataFormats/HepMCCandidate/interface/GenParticle.h
"
26
#include "
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
"
27
28
class
FWGenParticleProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<reco::GenParticle> {
29
public
:
30
FWGenParticleProxyBuilder
() {}
31
~FWGenParticleProxyBuilder
()
override
{}
32
33
// ---------- member functions ---------------------------
34
REGISTER_PROXYBUILDER_METHODS
();
35
36
FWGenParticleProxyBuilder
(
const
FWGenParticleProxyBuilder
&) =
delete
;
// stop default
37
38
const
FWGenParticleProxyBuilder
&
operator=
(
const
FWGenParticleProxyBuilder
&) =
delete
;
// stop default
39
40
private
:
41
using
FWSimpleProxyBuilderTemplate<reco::GenParticle>::build
;
42
void
build
(
const
reco::GenParticle
& iData,
43
unsigned
int
iIndex,
44
TEveElement& oItemHolder,
45
const
FWViewContext
*)
override
;
46
};
47
48
//______________________________________________________________________________
49
50
void
FWGenParticleProxyBuilder::build
(
const
reco::GenParticle
& iData,
51
unsigned
int
iIndex,
52
TEveElement& oItemHolder,
53
const
FWViewContext
*) {
54
TEveTrack* trk =
fireworks::prepareCandidate
(iData,
context
().getTrackPropagator());
55
trk->MakeTrack();
56
setupAddElement
(trk, &oItemHolder);
57
}
58
59
REGISTER_FWPROXYBUILDER
(
FWGenParticleProxyBuilder
,
60
reco::GenParticle
,
61
"GenParticles"
,
62
FWViewType::kAll3DBits
|
FWViewType::kAllRPZBits
);
FWSimpleProxyBuilderTemplate.h
FWGenParticleProxyBuilder::operator=
const FWGenParticleProxyBuilder & operator=(const FWGenParticleProxyBuilder &)=delete
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:31
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition:
FWViewType.h:57
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:350
GenParticle.h
FWGenParticleProxyBuilder::FWGenParticleProxyBuilder
FWGenParticleProxyBuilder()
Definition:
FWGenParticleProxyBuilder.cc:30
FWViewContext
Definition:
FWViewContext.h:32
FWGenParticleProxyBuilder::~FWGenParticleProxyBuilder
~FWGenParticleProxyBuilder() override
Definition:
FWGenParticleProxyBuilder.cc:31
FWViewType::kAll3DBits
static const int kAll3DBits
Definition:
FWViewType.h:58
FWProxyBuilderBase::context
const fireworks::Context & context() const
Definition:
FWProxyBuilderBase.cc:412
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
GenParticleFwd.h
FWEventItem.h
CandidateUtils.h
FWGenParticleProxyBuilder
Definition:
FWGenParticleProxyBuilder.cc:28
fireworks::prepareCandidate
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
Definition:
CandidateUtils.cc:9
reco::GenParticle
Definition:
GenParticle.h:21
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
Generated for CMSSW Reference Manual by
1.8.14