CMS 3D CMS Logo

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 
24 
27 
28 class FWGenParticleProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::GenParticle> {
29 public:
32 
33  // ---------- member functions ---------------------------
35 
36 private:
37  FWGenParticleProxyBuilder(const FWGenParticleProxyBuilder&) = delete; // stop default
38 
39  const FWGenParticleProxyBuilder& operator=(const FWGenParticleProxyBuilder&) = delete; // stop default
40 
42  void build(const reco::GenParticle& iData,
43  unsigned int iIndex,
44  TEveElement& oItemHolder,
45  const FWViewContext*) override;
46 };
47 
48 //______________________________________________________________________________
49 
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 
61  "GenParticles",
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:28
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