12 #include "TEveCompound.h" 14 #include "TEveScalableStraightLineSet.h" 61 m_common =
new TEveElementList(
"common conversion scene" );
75 for (
int i = 0; i < static_cast<int>(
item()->
size()); ++
i)
78 TEveLine*
line =
new TEveLine(0);
79 if (conversion.
nTracks() == 2) {
83 line->SetNextPoint(0., 0., 0.);
89 line->SetNextPoint(radius*
cos(phi), radius*
sin(phi), z);
95 line->SetNextPoint(radius*
cos(phi), radius*
sin(phi), z);
99 line->SetNextPoint(0., 0., 0.);
100 line->SetNextPoint(0., 0., 0.);
121 TEveElement::List_i linIt = lines->BeginChildren();
122 std::advance(linIt, iIndex);
123 TEveLine*
line = (TEveLine*)((*linIt)->CloneElement());
124 TEveVector bvec = line->GetLineStart();
125 TEveVector evec = line->GetLineEnd();
126 if (bvec.Mag() != evec.Mag())
static float caloTransEta()
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
TEveElementList * requestCommon()
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Sin< T >::type sin(const T &t)
double zOfPrimaryVertexFromTracks(const math::XYZPoint &myBeamSpot=math::XYZPoint()) const
virtual bool haveSingleProduct() const override
const FWEventItem * item() const
static const int kAll3DBits
TEveElementList * m_common
const reco::Conversion & modelData(int index)
Cos< T >::type cos(const T &t)
static float caloR1(bool offset=true)
Tan< T >::type tan(const T &t)
FWConversionProxyBuilder()
unsigned int nTracks() const
Number of tracks= 0,1,2.
math::XYZVectorF pairMomentum() const
Conversion tracks momentum from the tracks inner momentum.
void conversion(EventAux const &from, EventAuxiliary &to)
const FWConversionProxyBuilder & operator=(const FWConversionProxyBuilder &)
virtual void cleanLocal() override
static float caloZ1(bool offset=true)
virtual void buildViewType(const reco::Conversion &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
virtual ~FWConversionProxyBuilder()
void setupElement(TEveElement *el, bool color=true) const