CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
27 
30 
31 //-----------------------------------------------------------------------------
32 // FWPFEcalRecHitRPProxyBuilder
33 //-----------------------------------------------------------------------------
35 {
36  public:
37  static std::string typeOfBuilder() { return "simple#"; }
38 
39  // ---------------- Constructor(s)/Destructor ----------------------
42 
43  // --------------------- Member Functions --------------------------
44  virtual void build( const FWEventItem *iItem, TEveElementList *product, const FWViewContext* );
45 
46  virtual bool havePerViewProduct( FWViewType::EType ) const { return true; }
47  virtual void scaleProduct( TEveElementList *parent, FWViewType::EType, const FWViewContext *vc );
48  virtual void cleanLocal();
49 
51 
52  private:
55 
56  // --------------------- Member Functions --------------------------
57  TEveVector calculateCentre( const float *corners );
58  float calculateEt( const TEveVector &centre, float E );
59 
60  // ----------------------- Data Members ----------------------------
61  std::vector<FWPFRhoPhiRecHit*> m_towers;
63 };
64 #endif
65 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
virtual void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
list parent
Definition: dbtoconf.py:74
std::vector< FWPFRhoPhiRecHit * > m_towers
virtual bool havePerViewProduct(FWViewType::EType) const
TEveVector calculateCentre(const float *corners)
float calculateEt(const TEveVector &centre, float E)
const FWPFEcalRecHitRPProxyBuilder & operator=(const FWPFEcalRecHitRPProxyBuilder &)