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);
109 assert(parent->NumChildren() == 1);
110 TEveBoxSet* boxSet =
static_cast<TEveBoxSet*
>(*parent->BeginChildren());
115 if (corners ==
nullptr)
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) {
constexpr float energy() const
const fireworks::Context & context() const
FWProxyBuilderConfiguration * getConfig() const
float getScaleFactor3D() const
const FWDisplayProperties & displayProperties() const
constexpr 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