CMS 3D CMS Logo

FWTrackingParticleProxyBuilder.cc
Go to the documentation of this file.
1 /*
2  * FWTrackingParticleProxyBuilder.cc
3  * FWorks
4  *
5  * Created by Ianna Osborne on 9/9/10.
6  *
7  */
8 
14 
17 
18 #include "TEveTrack.h"
19 
21 public:
24 
25  void setItem(const FWEventItem* iItem) override {
27  iItem->getConfig()->assertParam("Point Size", 1l, 3l, 1l);
28  }
29 
31 
32 private:
33  // Disable default copy constructor
35  // Disable default assignment operator
37 
39  void build(const TrackingParticle& iData,
40  unsigned int iIndex,
41  TEveElement& oItemHolder,
42  const FWViewContext*) override;
43 };
44 
46  unsigned int iIndex,
47  TEveElement& oItemHolder,
48  const FWViewContext*) {
49  TEveRecTrack t;
50  t.fBeta = 1.0;
51  t.fP = TEveVector(iData.px(), iData.py(), iData.pz());
52  t.fV = TEveVector(iData.vx(), iData.vy(), iData.vz());
53  t.fSign = iData.charge();
54 
55  TEveTrack* track = new TEveTrack(&t, context().getTrackPropagator());
56  if (t.fSign == 0)
57  track->SetLineStyle(7);
58 
59  track->MakeTrack();
60  setupAddElement(track, &oItemHolder);
61 }
62 
65  "TrackingParticles",
FWTrackingParticleProxyBuilder::setItem
void setItem(const FWEventItem *iItem) override
Definition: FWTrackingParticleProxyBuilder.cc:25
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
FWSimpleProxyBuilderTemplate.h
FWEventItem::getConfig
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:150
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition: FWViewType.h:67
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition: FWProxyBuilderFactory.h:33
TrackingParticle::vy
double vy() const
y coordinate of parent vertex position
Definition: TrackingParticle.h:181
TrackingParticle::py
double py() const
y coordinate of momentum vector. Note this is taken from the first SimTrack only.
Definition: TrackingParticle.h:139
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition: register_dataproxybuilder_macro.h:27
FWParameters.h
FWTrackingParticleProxyBuilder::FWTrackingParticleProxyBuilder
FWTrackingParticleProxyBuilder(void)
Definition: FWTrackingParticleProxyBuilder.cc:22
FWViewType::kAll3DBits
static const int kAll3DBits
Definition: FWViewType.h:68
TrackingParticle::charge
float charge() const
Electric charge. Note this is taken from the first SimTrack only.
Definition: TrackingParticle.h:98
TrackingParticle::px
double px() const
x coordinate of momentum vector. Note this is taken from the first SimTrack only.
Definition: TrackingParticle.h:136
FWTrackingParticleProxyBuilder::operator=
const FWTrackingParticleProxyBuilder & operator=(const FWTrackingParticleProxyBuilder &)=delete
TrackingParticle
Monte Carlo truth information used for tracking validation.
Definition: TrackingParticle.h:29
FWProxyBuilderConfiguration::assertParam
FWGenericParameter< T > * assertParam(const std::string &name, T def)
Definition: FWProxyBuilderConfiguration.cc:83
FWGeometry.h
TrackingParticle::vz
double vz() const
z coordinate of parent vertex position
Definition: TrackingParticle.h:187
FWProxyBuilderConfiguration.h
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition: FWProxyBuilderBase.cc:350
TrackingParticle::pz
double pz() const
z coordinate of momentum vector. Note this is taken from the first SimTrack only.
Definition: TrackingParticle.h:142
FWProxyBuilderBase::build
void build()
Definition: FWProxyBuilderBase.cc:110
FWEventItem.h
FWViewContext
Definition: FWViewContext.h:32
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
TrackingParticle.h
TrackingParticle::vx
double vx() const
x coordinate of parent vertex position
Definition: TrackingParticle.h:175
FWEventItem
Definition: FWEventItem.h:56
FWTrackingParticleProxyBuilder
Definition: FWTrackingParticleProxyBuilder.cc:20
FWTrackingParticleProxyBuilder::~FWTrackingParticleProxyBuilder
~FWTrackingParticleProxyBuilder(void) override
Definition: FWTrackingParticleProxyBuilder.cc:23
FWProxyBuilderBase::context
const fireworks::Context & context() const
Definition: FWProxyBuilderBase.cc:412
FWSimpleProxyBuilderTemplate
Definition: FWSimpleProxyBuilderTemplate.h:30
FWProxyBuilderBase::setItem
virtual void setItem(const FWEventItem *iItem)
Definition: FWProxyBuilderBase.cc:83
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
Context.h