2 #include "TEveBoxSet.h" 14 : m_invertBox(
false), m_ignoreGeoShapeSize(
false), m_enlarge(1.0)
36 for(
int i = 0;
i < 24; ++
i )
37 scaledCorners[
i] = corners[
i];
44 for(
unsigned int i = 0;
i < 12;
i += 3 )
46 m_vector.Set( corners[
i] - corners[
i + 12], corners[
i + 1] - corners[
i + 13], corners[
i + 2] - corners[
i + 14] );
51 scaledCorners[
i + 1] = corners[
i + 1] +
m_vector.fY;
52 scaledCorners[
i + 2] = corners[
i + 2] +
m_vector.fZ;
57 for(
unsigned int i = 0;
i < 12;
i += 3 )
59 m_vector.Set( corners[
i + 12] - corners[
i], corners[i + 13] - corners[i + 1], corners[i + 14] - corners[i + 2] );
63 scaledCorners[
i] = corners[i + 12];
64 scaledCorners[i + 1] = corners[i + 13];
65 scaledCorners[i + 2] = corners[i + 14];
67 scaledCorners[i + 12] = corners[i + 12] +
m_vector.fX;
68 scaledCorners[i + 13] = corners[i + 13] +
m_vector.fY;
69 scaledCorners[i + 14] = corners[i + 14] +
m_vector.fZ;
78 for(
unsigned int i = 0;
i < 24;
i += 3 )
92 for(
unsigned int i = 0;
i < 24;
i += 3 )
120 std::vector<float> scaledCorners(24);
123 assert(parent->NumChildren() == 1);
124 TEveBoxSet* boxSet =
static_cast<TEveBoxSet*
>(*parent->BeginChildren());
130 if (corners ==
nullptr)
continue;
137 boxSet->ElementChanged();
150 std::vector<float> scaledCorners(24);
155 boxSet->SetAntiFlick(kTRUE);
164 for(
unsigned int i = 0;
i < 24;
i += 3 )
const fireworks::Context & context() const
FWProxyBuilderConfiguration * getConfig() const
float getScaleFactor3D() const
const FWDisplayProperties & displayProperties() const
const DetId & detid() const
const FWGeometry * getGeom() const
void voteMaxEtAndEnergy(float Et, float energy) const
FWViewEnergyScale * getEnergyScale() const
virtual void viewContextBoxScale(const float *corners, float scale, bool plotEt, std::vector< float > &scaledCorners, const CaloRecHit *)
const FWEventItem * item() const
void setItem(const FWEventItem *iItem) override
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
bool m_ignoreGeoShapeSize
virtual void setItem(const FWEventItem *iItem)
void invertBox(std::vector< float > &corners)
virtual float scaleFactor(const FWViewContext *vc)
FWGenericParameter< T > * assertParam(const std::string &name, T def)
const float * getCorners(unsigned int id) const
TEveBoxSet * addBoxSetToProduct(TEveElementList *product)
T value(const std::string &name)
FWCaloRecHitDigitSetProxyBuilder()
const void * modelData(int iIndex) const
ModelInfo modelInfo(int iIndex) const
void addBox(TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
const FWGeometry * getGeom() const