File indexing completed on 2024-04-06 12:11:27
0001 #ifndef Fireworks_Calo_FWHGTowerProxyBuilder_h
0002 #define Fireworks_Calo_FWHGTowerProxyBuilder_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "Fireworks/Calo/interface/FWCaloDataProxyBuilderBase.h"
0025 #include "Fireworks/Calo/interface/FWFromTEveCaloDataSelector.h"
0026
0027 #include "DataFormats/HGCRecHit/interface/HGCRecHitCollections.h"
0028
0029 class TEveCaloDataVec;
0030
0031
0032
0033 class FWHGTowerProxyBuilderBase : public FWCaloDataProxyBuilderBase {
0034 public:
0035 FWHGTowerProxyBuilderBase();
0036 ~FWHGTowerProxyBuilderBase() override;
0037
0038
0039
0040
0041
0042
0043 REGISTER_PROXYBUILDER_METHODS();
0044
0045 protected:
0046 void setCaloData(const fireworks::Context&) override;
0047 void fillCaloData() override;
0048 bool assertCaloDataSlice() override;
0049
0050 void itemBeingDestroyed(const FWEventItem*) override;
0051
0052 public:
0053 FWHGTowerProxyBuilderBase(const FWHGTowerProxyBuilderBase&) = delete;
0054
0055 const FWHGTowerProxyBuilderBase& operator=(const FWHGTowerProxyBuilderBase&) = delete;
0056 private:
0057 void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
0058
0059 int fillTowerForDetId(unsigned int rawid, float);
0060
0061
0062 const HGCRecHitCollection* m_hits;
0063
0064 TEveCaloDataVec* m_vecData;
0065 };
0066
0067 #endif