File indexing completed on 2024-04-06 12:11:26
0001 #ifndef Fireworks_Calo_FWCaloDataProxyBuilderBase_h
0002 #define Fireworks_Calo_FWCaloDataProxyBuilderBase_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <string>
0023
0024
0025
0026 #include "Rtypes.h"
0027 #include "Fireworks/Core/interface/FWProxyBuilderBase.h"
0028 #include "DataFormats/CaloTowers/interface/CaloTower.h"
0029 #include "DataFormats/CaloTowers/interface/CaloTowerDefs.h"
0030
0031
0032 class TEveCaloData;
0033
0034 class FWCaloDataProxyBuilderBase : public FWProxyBuilderBase {
0035 public:
0036 FWCaloDataProxyBuilderBase();
0037 ~FWCaloDataProxyBuilderBase() override;
0038
0039
0040
0041 bool willHandleInteraction() const override { return true; }
0042
0043
0044
0045
0046
0047 protected:
0048 void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
0049
0050 virtual void setCaloData(const fireworks::Context&) = 0;
0051 virtual void fillCaloData() = 0;
0052 virtual bool assertCaloDataSlice() = 0;
0053
0054
0055 TEveCaloData* m_caloData;
0056 Int_t m_sliceIndex;
0057 void itemBeingDestroyed(const FWEventItem*) override;
0058
0059 public:
0060 FWCaloDataProxyBuilderBase(const FWCaloDataProxyBuilderBase&) = delete;
0061
0062 const FWCaloDataProxyBuilderBase& operator=(const FWCaloDataProxyBuilderBase&) = delete;
0063
0064 private:
0065
0066
0067 void modelChanges(const FWModelIds&, Product*) override;
0068
0069 void clearCaloDataSelection();
0070 };
0071
0072 #endif