2 #include "TEveBoxSet.h" 14 : m_invertBox(
false), m_ignoreGeoShapeSize(
false), m_enlarge(1.0) {}
28 const float* corners,
float scale,
bool plotEt, std::vector<float>& scaledCorners,
const CaloRecHit*) {
33 for (
int i = 0;
i < 24; ++
i)
34 scaledCorners[
i] = corners[
i];
40 for (
unsigned int i = 0;
i < 12;
i += 3) {
41 m_vector.Set(corners[
i] - corners[
i + 12], corners[
i + 1] - corners[
i + 13], corners[
i + 2] - corners[
i + 14]);
46 scaledCorners[
i + 1] = corners[
i + 1] +
m_vector.fY;
47 scaledCorners[
i + 2] = corners[
i + 2] +
m_vector.fZ;
50 for (
unsigned int i = 0;
i < 12;
i += 3) {
51 m_vector.Set(corners[
i + 12] - corners[
i], corners[
i + 13] - corners[
i + 1], corners[
i + 14] - corners[
i + 2]);
55 scaledCorners[
i] = corners[
i + 12];
56 scaledCorners[
i + 1] = corners[
i + 13];
57 scaledCorners[
i + 2] = corners[
i + 14];
59 scaledCorners[
i + 12] = corners[
i + 12] +
m_vector.fX;
60 scaledCorners[
i + 13] = corners[
i + 13] +
m_vector.fY;
61 scaledCorners[
i + 14] = corners[
i + 14] +
m_vector.fZ;
68 for (
unsigned int i = 0;
i < 24;
i += 3) {
80 for (
unsigned int i = 0;
i < 24;
i += 3) {
106 std::vector<float> scaledCorners(24);
110 TEveBoxSet* boxSet =
static_cast<TEveBoxSet*
>(*
parent->BeginChildren());
115 if (corners ==
nullptr)
121 memcpy(
b->fVertices, &scaledCorners[0],
sizeof(
b->fVertices));
123 boxSet->ElementChanged();
128 TEveElementList* product,
137 std::vector<float> scaledCorners(24);
142 boxSet->SetAntiFlick(kTRUE);
149 for (
unsigned int i = 0;
i < 24;
i += 3) {
const void * modelData(int iIndex) const
FWProxyBuilderConfiguration * getConfig() const
virtual void viewContextBoxScale(const float *corners, float scale, bool plotEt, std::vector< float > &scaledCorners, const CaloRecHit *)
const FWDisplayProperties & displayProperties() const
const fireworks::Context & context() const
FWViewEnergyScale * getEnergyScale() const
void setItem(const FWEventItem *iItem) override
FWGeometry * getGeom() const
const float * getCorners(unsigned int id) const
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
bool m_ignoreGeoShapeSize
virtual void setItem(const FWEventItem *iItem)
void voteMaxEtAndEnergy(float Et, float energy) const
void invertBox(std::vector< float > &corners)
virtual float scaleFactor(const FWViewContext *vc)
FWGenericParameter< T > * assertParam(const std::string &name, T def)
float getScaleFactor3D() const
const FWGeometry * getGeom() const
TEveBoxSet * addBoxSetToProduct(TEveElementList *product)
T value(const std::string &name)
FWCaloRecHitDigitSetProxyBuilder()
ModelInfo modelInfo(int iIndex) const
void addBox(TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
const FWEventItem * item() const