CMS 3D CMS Logo

FWHFTowerProxyBuilder.h
Go to the documentation of this file.
1 #ifndef Fireworks_Calo_FWHFTowerProxyBuilder_h
2 #define Fireworks_Calo_FWHFTowerProxyBuilder_h
3 // -*- C++ -*-
4 //
5 // Package: Calo
6 // Class : FWHFTowerProxyBuilder
7 //
16 //
17 // Original Author:
18 // Created: Mon May 31 16:41:23 CEST 2010
19 //
20 
21 // system include files
22 
23 // user include files
28 
29 class TEveCaloDataVec;
30 //
31 // base
32 //
34 public:
36  ~FWHFTowerProxyBuilderBase() override;
37 
38  // ---------- const member functions ---------------------
39 
40  // ---------- static member functions --------------------
41 
42  // ---------- member functions ---------------------------
44 
45 protected:
46  void setCaloData(const fireworks::Context&) override;
47  void fillCaloData() override;
48  bool assertCaloDataSlice() override;
49 
50  void itemBeingDestroyed(const FWEventItem*) override;
51 
52 public:
53  FWHFTowerProxyBuilderBase(const FWHFTowerProxyBuilderBase&) = delete; // stop default
54 
55  const FWHFTowerProxyBuilderBase& operator=(const FWHFTowerProxyBuilderBase&) = delete; // stop default
56 
57 private:
58  void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
59 
60  int fillTowerForDetId(unsigned int rawid, float);
61  // ---------- member data --------------------------------
62 
64  // int m_depth;
65  TEveCaloDataVec* m_vecData;
66 };
67 
68 /*
69 //
70 // ShortFiber
71 //
72 
73 class FWHFShortTowerProxyBuilder : public FWHFTowerProxyBuilderBase
74 {
75 public:
76  FWHFShortTowerProxyBuilder() : FWHFTowerProxyBuilderBase(1) {
77  }
78  virtual ~FWHFShortTowerProxyBuilder() {
79  }
80 
81  // ---------- const member functions ---------------------
82  virtual const std::string sliceName() const {
83  return "HFShort";
84  };
85 
86  REGISTER_PROXYBUILDER_METHODS();
87 
88 private:
89  FWHFShortTowerProxyBuilder(const FWHFShortTowerProxyBuilder&); // stop default
90  const FWHFShortTowerProxyBuilder& operator=(const FWHFShortTowerProxyBuilder&); // stop default
91 };
92 
93 
94 //
95 // LongFiber
96 //
97 
98 class FWHFLongTowerProxyBuilder : public FWHFTowerProxyBuilderBase
99 {
100 public:
101  FWHFLongTowerProxyBuilder() : FWHFTowerProxyBuilderBase(2) {
102  }
103  virtual ~FWHFLongTowerProxyBuilder(){
104  }
105 
106  // ---------- const member functions ---------------------
107  virtual const std::string sliceName() const {
108  return "HFLong";
109  }
110 
111 
112  REGISTER_PROXYBUILDER_METHODS();
113 private:
114  FWHFLongTowerProxyBuilder(const FWHFLongTowerProxyBuilder&); // stop default
115 
116  const FWHFLongTowerProxyBuilder& operator=(const FWHFLongTowerProxyBuilder&); // stop default
117 };
118 */
119 
120 #endif
#define REGISTER_PROXYBUILDER_METHODS()
void setCaloData(const fireworks::Context &) override
const FWHFTowerProxyBuilderBase & operator=(const FWHFTowerProxyBuilderBase &)=delete
void itemBeingDestroyed(const FWEventItem *) override
const HFRecHitCollection * m_hits
int fillTowerForDetId(unsigned int rawid, float)