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 //
12 
13 #include "TEveTrack.h"
14 
15 // user include files
18 
20 
22 
23 class FWCandidateProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::Candidate> {
24 
25 public:
28 
30 
31 private:
32  FWCandidateProxyBuilder(const FWCandidateProxyBuilder&); // stop default
33  const FWCandidateProxyBuilder& operator=(const FWCandidateProxyBuilder&); // stop default
34 
36  void build(const reco::Candidate& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*) override;
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_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)