2 #include "TEveBoxSet.h"
14 : m_invertBox(
false), m_ignoreGeoShapeSize(
false)
32 for(
int i = 0;
i < 24; ++
i )
33 scaledCorners[
i] = corners[
i];
40 for(
unsigned int i = 0;
i < 12;
i += 3 )
42 m_vector.Set( corners[
i] - corners[
i + 12], corners[
i + 1] - corners[
i + 13], corners[
i + 2] - corners[
i + 14] );
47 scaledCorners[
i + 1] = corners[
i + 1] +
m_vector.fY;
48 scaledCorners[
i + 2] = corners[
i + 2] +
m_vector.fZ;
53 for(
unsigned int i = 0;
i < 12;
i += 3 )
55 m_vector.Set( corners[
i + 12] - corners[
i], corners[i + 13] - corners[i + 1], corners[i + 14] - corners[i + 2] );
59 scaledCorners[
i] = corners[i + 12];
60 scaledCorners[i + 1] = corners[i + 13];
61 scaledCorners[i + 2] = corners[i + 14];
63 scaledCorners[i + 12] = corners[i + 12] +
m_vector.fX;
64 scaledCorners[i + 13] = corners[i + 13] +
m_vector.fY;
65 scaledCorners[i + 14] = corners[i + 14] +
m_vector.fZ;
74 for(
unsigned int i = 0;
i < 24;
i += 3 )
88 for(
unsigned int i = 0;
i < 24;
i += 3 )
116 std::vector<float> scaledCorners(24);
119 assert(parent->NumChildren() == 1);
120 TEveBoxSet* boxSet =
static_cast<TEveBoxSet*
>(*parent->BeginChildren());
126 if (corners == 0)
continue;
133 boxSet->ElementChanged();
145 std::vector<float> scaledCorners(24);
150 boxSet->SetAntiFlick(kTRUE);
159 for(
unsigned int i = 0;
i < 24;
i += 3 )
const fireworks::Context & context() const
float getScaleFactor3D() const
const FWDisplayProperties & displayProperties() const
virtual void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
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
virtual void setItem(const FWEventItem *iItem)
bool m_ignoreGeoShapeSize
virtual void setItem(const FWEventItem *iItem)
void invertBox(std::vector< float > &corners)
virtual float scaleFactor(const FWViewContext *vc)
const float * getCorners(unsigned int id) const
TEveBoxSet * addBoxSetToProduct(TEveElementList *product)
FWCaloRecHitDigitSetProxyBuilder()
volatile std::atomic< bool > shutdown_flag false
const void * modelData(int iIndex) const
ModelInfo modelInfo(int iIndex) const
void addBox(TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
tuple size
Write out results.
const FWGeometry * getGeom() const