CMS 3D CMS Logo

FWDigitSetProxyBuilder.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWDigitSetProxyBuilder_h
2 #define Fireworks_Core_FWDigitSetProxyBuilder_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWDigitSetProxyBuilder
7 //
16 //
17 // Original Author: Alja Mrak-Tadel
18 // Created: Tue Oct 19 12:00:57 CEST 2010
19 //
20 
21 // system include files
22 
23 // user include files
25 
26 // forward declarations
27 class TEveDigitSet;
28 class TEveBoxSet;
30 
32 public:
34  ~FWDigitSetProxyBuilder() override;
35 
36  // ---------- const member functions ---------------------
37 
38  bool willHandleInteraction() const override { return true; }
39 
40  // ---------- static member functions --------------------
41 
42  // ---------- member functions ---------------------------
43 
44 protected:
45  // AMT: temproary structure since TEveBoxSet::BFreeBox_t is protected
46  // this workaround should be removed in next root patch
47  struct BFreeBox_t {
48  Int_t fValue;
49  void* fUserData;
50  Float_t fVertices[8][3];
51  BFreeBox_t(Int_t v = 0) : fValue(v), fUserData(nullptr) {}
52  };
53 
54  TEveBoxSet* addBoxSetToProduct(TEveElementList* product);
55  void addBox(TEveBoxSet* set, const float* pnts, const FWDisplayProperties& dp);
56  TEveBoxSet* getBoxSet() const { return m_boxSet; }
57 
58 private:
59  FWDigitSetProxyBuilder(const FWDigitSetProxyBuilder&) = delete; // stop default
60 
61  const FWDigitSetProxyBuilder& operator=(const FWDigitSetProxyBuilder&) = delete; // stop default
62 
63  // ---------- member data --------------------------------
64 
65  void modelChanges(const FWModelIds&, Product*) override;
66 
67  static TString getTooltip(TEveDigitSet* set, int idx);
68 
69  TEveDigitSet* digitSet(TEveElement* product);
70 
71  TEveBoxSet* m_boxSet;
72 };
73 
74 #endif
FWDigitSetProxyBuilder::BFreeBox_t::fValue
Int_t fValue
Definition: FWDigitSetProxyBuilder.h:48
FWDigitSetProxyBuilder::getBoxSet
TEveBoxSet * getBoxSet() const
Definition: FWDigitSetProxyBuilder.h:56
FWDigitSetProxyBuilder::modelChanges
void modelChanges(const FWModelIds &, Product *) override
Definition: FWDigitSetProxyBuilder.cc:105
FWDigitSetProxyBuilder::addBoxSetToProduct
TEveBoxSet * addBoxSetToProduct(TEveElementList *product)
Definition: FWDigitSetProxyBuilder.cc:73
FWDigitSetProxyBuilder
Definition: FWDigitSetProxyBuilder.h:31
FWProxyBuilderBase.h
FWDigitSetProxyBuilder::m_boxSet
TEveBoxSet * m_boxSet
Definition: FWDigitSetProxyBuilder.h:71
FWDigitSetProxyBuilder::~FWDigitSetProxyBuilder
~FWDigitSetProxyBuilder() override
Definition: FWDigitSetProxyBuilder.cc:64
findQualityFiles.v
v
Definition: findQualityFiles.py:179
FWDigitSetProxyBuilder::addBox
void addBox(TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
Definition: FWDigitSetProxyBuilder.cc:94
FWDigitSetProxyBuilder::getTooltip
static TString getTooltip(TEveDigitSet *set, int idx)
Definition: FWDigitSetProxyBuilder.cc:66
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
Calorimetry_cff.dp
dp
Definition: Calorimetry_cff.py:157
FWDigitSetProxyBuilder::BFreeBox_t::BFreeBox_t
BFreeBox_t(Int_t v=0)
Definition: FWDigitSetProxyBuilder.h:51
FWDigitSetProxyBuilder::BFreeBox_t::fUserData
void * fUserData
Definition: FWDigitSetProxyBuilder.h:49
FWDigitSetProxyBuilder::digitSet
TEveDigitSet * digitSet(TEveElement *product)
Definition: FWDigitSetProxyBuilder.cc:89
FWDigitSetProxyBuilder::FWDigitSetProxyBuilder
FWDigitSetProxyBuilder()
Definition: FWDigitSetProxyBuilder.cc:62
FWDigitSetProxyBuilder::BFreeBox_t
Definition: FWDigitSetProxyBuilder.h:47
FWDigitSetProxyBuilder::operator=
const FWDigitSetProxyBuilder & operator=(const FWDigitSetProxyBuilder &)=delete
FWDisplayProperties
Definition: FWDisplayProperties.h:28
FWProxyBuilderBase
Definition: FWProxyBuilderBase.h:46
FWDigitSetProxyBuilder::BFreeBox_t::fVertices
Float_t fVertices[8][3]
Definition: FWDigitSetProxyBuilder.h:50
FWModelIds
std::set< FWModelId > FWModelIds
Definition: FWEveViewManager.h:40
FWDigitSetProxyBuilder::willHandleInteraction
bool willHandleInteraction() const override
Definition: FWDigitSetProxyBuilder.h:38