12 #include "TEveCompound.h"
14 #include "TEveScalableStraightLineSet.h"
60 m_common =
new TEveElementList(
"common conversion scene" );
74 for (
int i = 0; i < static_cast<int>(
item()->
size()); ++
i)
77 TEveLine*
line =
new TEveLine(0);
78 if (conversion.
nTracks() == 2) {
82 line->SetNextPoint(0., 0., 0.);
88 line->SetNextPoint(radius*
cos(phi), radius*
sin(phi), z);
94 line->SetNextPoint(radius*
cos(phi), radius*
sin(phi), z);
98 line->SetNextPoint(0., 0., 0.);
99 line->SetNextPoint(0., 0., 0.);
120 TEveElement::List_i linIt = lines->BeginChildren();
121 std::advance(linIt, iIndex);
122 TEveLine*
line = (TEveLine*)((*linIt)->CloneElement());
123 TEveVector bvec = line->GetLineStart();
124 TEveVector evec = line->GetLineEnd();
125 if (bvec.Mag() != evec.Mag())
static float caloTransEta()
#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
REGISTER_PROXYBUILDER_METHODS()
static float caloZ1(bool offset=true)
volatile std::atomic< bool > shutdown_flag false
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