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",
const fireworks::Context & context() const
const FWGenParticleProxyBuilder & operator=(const FWGenParticleProxyBuilder &)=delete
static const int kAllRPZBits
Definition: FWViewType.h:67
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
static const int kAll3DBits
Definition: FWViewType.h:68
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)