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 
35  void build(const reco::Candidate& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*) override;
36 };
37 
38 
39 void
40 FWCandidateProxyBuilder::build(const reco::Candidate& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*)
41 {
42  TEveTrack* trk = fireworks::prepareCandidate( iData, context().getTrackPropagator() );
43 
44  trk->MakeTrack();
45  setupAddElement(trk, &oItemHolder);
46 }
47 
48 //
49 // static member functions
50 //
const FWCandidateProxyBuilder & operator=(const FWCandidateProxyBuilder &)
const fireworks::Context & context() const
#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)