Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
30
public
:
31
FWGenParticleProxyBuilder
() {}
32
virtual
~FWGenParticleProxyBuilder
() {}
33
34
// ---------- member functions ---------------------------
35
REGISTER_PROXYBUILDER_METHODS
();
36
37
private
:
38
FWGenParticleProxyBuilder
(
const
FWGenParticleProxyBuilder
&);
// stop default
39
40
const
FWGenParticleProxyBuilder
&
operator=
(
const
FWGenParticleProxyBuilder
&);
// stop default
41
42
using
FWSimpleProxyBuilderTemplate<reco::GenParticle>::build
;
43
void
build
(
const
reco::GenParticle
& iData,
unsigned
int
iIndex,TEveElement& oItemHolder,
const
FWViewContext
*)
override
;
44
45
};
46
47
//______________________________________________________________________________
48
49
50
void
51
FWGenParticleProxyBuilder::build
(
const
reco::GenParticle
& iData,
unsigned
int
iIndex, TEveElement& oItemHolder,
const
FWViewContext
*)
52
{
53
TEveTrack* trk =
fireworks::prepareCandidate
( iData,
context
().getTrackPropagator() );
54
trk->MakeTrack();
55
setupAddElement
(trk, &oItemHolder);
56
}
57
58
REGISTER_FWPROXYBUILDER
(
FWGenParticleProxyBuilder
,
reco::GenParticle
,
"GenParticles"
,
FWViewType::kAll3DBits
|
FWViewType::kAllRPZBits
);
59
FWSimpleProxyBuilderTemplate.h
FWProxyBuilderBase::context
const fireworks::Context & context() const
Definition:
FWProxyBuilderBase.cc:503
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:28
FWGenParticleProxyBuilder::~FWGenParticleProxyBuilder
virtual ~FWGenParticleProxyBuilder()
Definition:
FWGenParticleProxyBuilder.cc:32
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition:
FWViewType.h:58
GenParticle.h
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:429
FWGenParticleProxyBuilder::FWGenParticleProxyBuilder
FWGenParticleProxyBuilder()
Definition:
FWGenParticleProxyBuilder.cc:31
FWViewContext
Definition:
FWViewContext.h:32
FWViewType::kAll3DBits
static const int kAll3DBits
Definition:
FWViewType.h:59
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:131
GenParticleFwd.h
FWGenParticleProxyBuilder::operator=
const FWGenParticleProxyBuilder & operator=(const FWGenParticleProxyBuilder &)
FWEventItem.h
CandidateUtils.h
FWGenParticleProxyBuilder
Definition:
FWGenParticleProxyBuilder.cc:28
fireworks::prepareCandidate
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
Definition:
CandidateUtils.cc:10
reco::GenParticle
Definition:
GenParticle.h:20
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:29
Generated for CMSSW Reference Manual by
1.8.5