CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWCandidateProxyBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Candidates
4 // Class : FWCandidateProxyBuilder
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Fri Dec 5 09:56:09 EST 2008
11 // $Id: FWCandidateProxyBuilder.cc,v 1.9 2010/11/11 20:25:27 amraktad Exp $
12 //
13 
14 #include "TEveTrack.h"
15 
16 // user include files
19 
21 
23 
24 class FWCandidateProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::Candidate> {
25 
26 public:
29 
31 
32 private:
33  FWCandidateProxyBuilder(const FWCandidateProxyBuilder&); // stop default
34  const FWCandidateProxyBuilder& operator=(const FWCandidateProxyBuilder&); // stop default
35 
36  void build(const reco::Candidate& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*);
37 };
38 
39 
40 void
41 FWCandidateProxyBuilder::build(const reco::Candidate& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*)
42 {
43  TEveTrack* trk = fireworks::prepareCandidate( iData, context().getTrackPropagator() );
44 
45  trk->MakeTrack();
46  setupAddElement(trk, &oItemHolder);
47 }
48 
49 //
50 // static member functions
51 //
const FWCandidateProxyBuilder & operator=(const FWCandidateProxyBuilder &)
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
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)