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
private
:
37
FWGenParticleProxyBuilder
(
const
FWGenParticleProxyBuilder
&) =
delete
;
// stop default
38
39
const
FWGenParticleProxyBuilder
&
operator=
(
const
FWGenParticleProxyBuilder
&) =
delete
;
// stop default
40
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
);
FWGenParticleProxyBuilder
Definition:
FWGenParticleProxyBuilder.cc:28
FWSimpleProxyBuilderTemplate.h
reco::GenParticle
Definition:
GenParticle.h:21
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition:
FWViewType.h:67
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:27
FWGenParticleProxyBuilder::~FWGenParticleProxyBuilder
~FWGenParticleProxyBuilder() override
Definition:
FWGenParticleProxyBuilder.cc:31
FWViewType::kAll3DBits
static const int kAll3DBits
Definition:
FWViewType.h:68
GenParticle.h
GenParticleFwd.h
FWGenParticleProxyBuilder::FWGenParticleProxyBuilder
FWGenParticleProxyBuilder()
Definition:
FWGenParticleProxyBuilder.cc:30
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:350
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
FWEventItem.h
FWViewContext
Definition:
FWViewContext.h:32
CandidateUtils.h
fireworks::prepareCandidate
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
Definition:
CandidateUtils.cc:9
FWProxyBuilderBase::context
const fireworks::Context & context() const
Definition:
FWProxyBuilderBase.cc:412
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
FWGenParticleProxyBuilder::operator=
const FWGenParticleProxyBuilder & operator=(const FWGenParticleProxyBuilder &)=delete
Generated for CMSSW Reference Manual by
1.8.16