20 #include "TEveTrack.h" 21 #include "TEveBoxSet.h" 51 t.fP = TEveVector( iData.
px(), iData.
py(), iData.
pz() );
52 t.fV = TEveVector( iData.
g4Tracks()[0].trackerSurfacePosition().x(),
53 iData.
g4Tracks()[0].trackerSurfacePosition().y(),
54 iData.
g4Tracks()[0].trackerSurfacePosition().z() );
57 TEveTrack*
track =
new TEveTrack(&t,
context().getTrackPropagator());
59 track->SetLineStyle( 7 );
63 TEveBoxSet* boxset =
new TEveBoxSet();
64 boxset->Reset(TEveBoxSet::kBT_FreeBox,
true, 64);
65 boxset->UseSingleColor();
66 boxset->SetPickable(
true);
69 auto clusterDetIds = (*c).hits_and_fractions();
72 for(
auto it = clusterDetIds.begin(), itEnd = clusterDetIds.end();
76 if( corners ==
nullptr ) {
79 std::vector<float> pnts(24);
81 boxset->AddBox( &pnts[0]);
float pz() const
z coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
void setItem(const FWEventItem *iItem) override
const fireworks::Context & context() const
FWProxyBuilderConfiguration * getConfig() const
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
FWCaloParticleProxyBuilder(void)
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
float charge() const
Electric charge. Note this is taken from the first SimTrack only.
const FWCaloParticleProxyBuilder & operator=(const FWCaloParticleProxyBuilder &)=delete
const std::vector< SimTrack > & g4Tracks() const
~FWCaloParticleProxyBuilder(void) override
const FWEventItem * item() const
static const int kAll3DBits
const SimClusterRefVector & simClusters() const
virtual void setItem(const FWEventItem *iItem)
FWGenericParameter< T > * assertParam(const std::string &name, T def)
void energyTower3DCorners(const float *corners, float scale, std::vector< float > &, bool reflect=false)
const float * getCorners(unsigned int id) const
float px() const
x coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
float py() const
y coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
const FWGeometry * getGeom() const