Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include "TEveTrack.h"
00015
00016
00017 #include "Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h"
00018 #include "Fireworks/Core/interface/Context.h"
00019
00020 #include "Fireworks/Candidates/interface/CandidateUtils.h"
00021
00022 #include "DataFormats/Candidate/interface/Candidate.h"
00023
00024 class FWCandidateProxyBuilder : public FWSimpleProxyBuilderTemplate<reco::Candidate> {
00025
00026 public:
00027 FWCandidateProxyBuilder() {}
00028 virtual ~FWCandidateProxyBuilder() {}
00029
00030 REGISTER_PROXYBUILDER_METHODS();
00031
00032 private:
00033 FWCandidateProxyBuilder(const FWCandidateProxyBuilder&);
00034 const FWCandidateProxyBuilder& operator=(const FWCandidateProxyBuilder&);
00035
00036 void build(const reco::Candidate& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*);
00037 };
00038
00039
00040 void
00041 FWCandidateProxyBuilder::build(const reco::Candidate& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*)
00042 {
00043 TEveTrack* trk = fireworks::prepareCandidate( iData, context().getTrackPropagator() );
00044
00045 trk->MakeTrack();
00046 setupAddElement(trk, &oItemHolder);
00047 }
00048
00049
00050
00051
00052 REGISTER_FWPROXYBUILDER(FWCandidateProxyBuilder, reco::Candidate, "Candidates", FWViewType::kAll3DBits | FWViewType::kAllRPZBits);