CMS 3D CMS Logo

FWPFEcalRecHitRPProxyBuilder.h
Go to the documentation of this file.
1 #ifndef _FWPFECALRECHITRPPROXYBUILDER_H_
2 #define _FWPFECALRECHITRPPROXYBUILDER_H_
3 
4 // -*- C++ -*-
5 //
6 // Package: ParticleFlow
7 // Class : FWPFEcalRecHitRPProxyBuilder
8 //
9 // Implementation:
10 // <Notes on implementation>
11 //
12 // Original Author: Simon Harris
13 //
14 
15 // System include files
16 #include "TEveCompound.h"
17 
18 // User include files
23 
28 
31 
32 //-----------------------------------------------------------------------------
33 // FWPFEcalRecHitRPProxyBuilder
34 //-----------------------------------------------------------------------------
36 public:
37  static std::string typeOfBuilder() { return "simple#"; }
38 
39  // ---------------- Constructor(s)/Destructor ----------------------
42 
43  // --------------------- Member Functions --------------------------
44  void build(const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override;
45 
46  bool havePerViewProduct(FWViewType::EType) const override { return true; }
47  void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override;
48  void cleanLocal() override;
49 
51 
52  FWPFEcalRecHitRPProxyBuilder(const FWPFEcalRecHitRPProxyBuilder &) = delete; // Stop default
53  const FWPFEcalRecHitRPProxyBuilder &operator=(const FWPFEcalRecHitRPProxyBuilder &) = delete; // Stop default
54 
55 private:
56  // --------------------- Member Functions --------------------------
57  TEveVector calculateCentre(const float *corners);
58 
59  // ----------------------- Data Members ----------------------------
60  std::vector<FWPFRhoPhiRecHit *> m_towers;
61 };
62 #endif
63 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
#define REGISTER_PROXYBUILDER_METHODS()
bool havePerViewProduct(FWViewType::EType) const override
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
TEveVector calculateCentre(const float *corners)
const FWPFEcalRecHitRPProxyBuilder & operator=(const FWPFEcalRecHitRPProxyBuilder &)=delete
std::vector< FWPFRhoPhiRecHit * > m_towers