Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
// $Id: FWGenParticleProxyBuilder.cc,v 1.8 2012/12/02 09:09:13 amraktad Exp $
18
//
19
20
#include "TEveTrack.h"
21
22
#include "
Fireworks/Core/interface/FWEventItem.h
"
23
#include "
Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h
"
24
#include "
Fireworks/Candidates/interface/CandidateUtils.h
"
25
26
#include "
DataFormats/HepMCCandidate/interface/GenParticle.h
"
27
#include "
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
"
28
29
class
FWGenParticleProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<reco::GenParticle> {
30
31
public
:
32
FWGenParticleProxyBuilder
() {}
33
virtual
~FWGenParticleProxyBuilder
() {}
34
35
// ---------- member functions ---------------------------
36
REGISTER_PROXYBUILDER_METHODS
();
37
38
private
:
39
FWGenParticleProxyBuilder
(
const
FWGenParticleProxyBuilder
&);
// stop default
40
41
const
FWGenParticleProxyBuilder
&
operator=
(
const
FWGenParticleProxyBuilder
&);
// stop default
42
43
void
build
(
const
reco::GenParticle
& iData,
unsigned
int
iIndex,TEveElement& oItemHolder,
const
FWViewContext
*);
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:504
FWGenParticleProxyBuilder::~FWGenParticleProxyBuilder
virtual ~FWGenParticleProxyBuilder()
Definition:
FWGenParticleProxyBuilder.cc:33
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:34
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition:
FWViewType.h:59
GenParticle.h
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:430
FWGenParticleProxyBuilder::FWGenParticleProxyBuilder
FWGenParticleProxyBuilder()
Definition:
FWGenParticleProxyBuilder.cc:32
FWViewContext
Definition:
FWViewContext.h:33
FWViewType::kAll3DBits
static const int kAll3DBits
Definition:
FWViewType.h:60
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:132
GenParticleFwd.h
FWGenParticleProxyBuilder::operator=
const FWGenParticleProxyBuilder & operator=(const FWGenParticleProxyBuilder &)
FWEventItem.h
CandidateUtils.h
FWGenParticleProxyBuilder
Definition:
FWGenParticleProxyBuilder.cc:29
fireworks::prepareCandidate
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
Definition:
CandidateUtils.cc:10
reco::GenParticle
Definition:
GenParticle.h:21
FWGenParticleProxyBuilder::REGISTER_PROXYBUILDER_METHODS
REGISTER_PROXYBUILDER_METHODS()
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
Generated for CMSSW Reference Manual by
1.8.5