CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
25 
28 
29 class FWGenParticleProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::GenParticle> {
30 
31 public:
34 
35  // ---------- member functions ---------------------------
37 
38 private:
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 
59 
const fireworks::Context & context() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
Definition: FWViewType.h:59
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
static const int kAll3DBits
Definition: FWViewType.h:60
const FWGenParticleProxyBuilder & operator=(const FWGenParticleProxyBuilder &)
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)