|
|
Go to the documentation of this file.
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) {
ModelInfo modelInfo(int iIndex) const
bool m_ignoreGeoShapeSize
TEveBoxSet * addBoxSetToProduct(TEveElementList *product)
const float * getCorners(unsigned int id) const
FWProxyBuilderConfiguration * getConfig() const
const void * modelData(int iIndex) const
void addBox(TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
void setItem(const FWEventItem *iItem) override
void voteMaxEtAndEnergy(float Et, float energy) const
FWGenericParameter< T > * assertParam(const std::string &name, T def)
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
FWGeometry * getGeom() const
const FWDisplayProperties & displayProperties() const
const FWGeometry * getGeom() const
const FWEventItem * item() const
float getScaleFactor3D() const
virtual float scaleFactor(const FWViewContext *vc)
T value(const std::string &name)
void invertBox(std::vector< float > &corners)
virtual void viewContextBoxScale(const float *corners, float scale, bool plotEt, std::vector< float > &scaledCorners, const CaloRecHit *)
const fireworks::Context & context() const
FWCaloRecHitDigitSetProxyBuilder()
virtual void setItem(const FWEventItem *iItem)
FWViewEnergyScale * getEnergyScale() const