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 
30 public:
33 
34  // ---------- member functions ---------------------------
36 
37 private:
38  FWGenParticleProxyBuilder(const FWGenParticleProxyBuilder&) = delete; // stop default
39 
40  const FWGenParticleProxyBuilder& operator=(const FWGenParticleProxyBuilder&) = delete; // stop default
41 
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 
59 
const fireworks::Context & context() const
const FWGenParticleProxyBuilder & operator=(const FWGenParticleProxyBuilder &)=delete
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
Definition: FWViewType.h:58
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
static const int kAll3DBits
Definition: FWViewType.h:59
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)