Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:26

0001 #ifndef Fireworks_Calo_FWCaloDataProxyBuilderBase_h
0002 #define Fireworks_Calo_FWCaloDataProxyBuilderBase_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Calo
0006 // Class  :     FWCaloDataProxyBuilderBase
0007 //
0008 /**\class FWCaloDataProxyBuilderBase FWCaloDataProxyBuilderBase.h Fireworks/Calo/interface/FWCaloDataProxyBuilderBase.h
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:
0018 //         Created:  Mon May 31 15:09:19 CEST 2010
0019 //
0020 
0021 // system include files
0022 #include <string>
0023 
0024 // user include files
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 // forward declarations
0032 class TEveCaloData;
0033 
0034 class FWCaloDataProxyBuilderBase : public FWProxyBuilderBase {
0035 public:
0036   FWCaloDataProxyBuilderBase();
0037   ~FWCaloDataProxyBuilderBase() override;
0038 
0039   // ---------- const member functions ---------------------
0040 
0041   bool willHandleInteraction() const override { return true; }
0042 
0043   // ---------- static member functions --------------------
0044 
0045   // ---------- member functions ---------------------------
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   // ---------- member data --------------------------------
0055   TEveCaloData* m_caloData;
0056   Int_t m_sliceIndex;
0057   void itemBeingDestroyed(const FWEventItem*) override;
0058 
0059 public:
0060   FWCaloDataProxyBuilderBase(const FWCaloDataProxyBuilderBase&) = delete;  // stop default
0061 
0062   const FWCaloDataProxyBuilderBase& operator=(const FWCaloDataProxyBuilderBase&) = delete;  // stop default
0063 
0064 private:
0065   // ---------- member data --------------------------------
0066 
0067   void modelChanges(const FWModelIds&, Product*) override;
0068 
0069   void clearCaloDataSelection();
0070 };
0071 
0072 #endif