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