Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:46:15

0001 #ifndef Fireworks_Calo_FWHGTowerProxyBuilder_h
0002 #define Fireworks_Calo_FWHGTowerProxyBuilder_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Calo
0006 // Class  :     FWHGTowerProxyBuilder
0007 //
0008 /**\class FWHGTowerProxyBuilder FWHGTowerProxyBuilder.h Fireworks/Calo/interface/FWHGTowerProxyBuilder.h
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:
0018 //         Created:  Mon May 31 16:41:23 CEST 2010
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "Fireworks/Calo/interface/FWCaloDataProxyBuilderBase.h"
0025 #include "Fireworks/Calo/interface/FWFromTEveCaloDataSelector.h"
0026 // #include "DataFormats/HGCRecHit/interface/HGRecHit.h"
0027 #include "DataFormats/HGCRecHit/interface/HGCRecHitCollections.h"
0028 
0029 class TEveCaloDataVec;
0030 //
0031 // base
0032 //
0033 class FWHGTowerProxyBuilderBase : public FWCaloDataProxyBuilderBase {
0034 public:
0035   FWHGTowerProxyBuilderBase();
0036   ~FWHGTowerProxyBuilderBase() override;
0037 
0038   // ---------- const member functions ---------------------
0039 
0040   // ---------- static member functions --------------------
0041 
0042   // ---------- member functions ---------------------------
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;  // stop default
0054 
0055   const FWHGTowerProxyBuilderBase& operator=(const FWHGTowerProxyBuilderBase&) = delete;  // stop default
0056 private:
0057   void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
0058 
0059   int fillTowerForDetId(unsigned int rawid, float);
0060   // ---------- member data --------------------------------
0061 
0062   const HGCRecHitCollection* m_hits;
0063   //   int   m_depth;
0064   TEveCaloDataVec* m_vecData;
0065 };
0066 
0067 #endif