CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FWPFClusterLegoProxyBuilder.h
Go to the documentation of this file.
1 #ifndef _FWPFCLUSTERLEGOPROXYBUILDER_H_
2 #define _FWPFCLUSTERLEGOPROXYBUILDER_H_
3 
4 // -*- C++ -*-
5 //
6 // Package: ParticleFlow
7 // Class : FWPFClusterLegoProxyBuilder, FWPFEcalClusterLegoProxyBuilder, FWPFHcalClusterLegoProxyBuilder
8 //
9 // Implementation:
10 // <Notes on implementation>
11 //
12 // Original Author: Simon Harris
13 //
14 
15 // System include files
16 #include <cmath>
17 #include "TEveBox.h"
18 
19 // User include files
26 
27 //-----------------------------------------------------------------------------
28 // FWPFClusterLegoProxyBuilder
29 //-----------------------------------------------------------------------------
30 
32 public:
33  static std::string typeOfBuilder() { return "simple#"; }
34 
35  // ---------------- Constructor(s)/Destructor ----------------------
38 
39  // --------------------- Member Functions --------------------------
41  void scaleProduct(TEveElementList* parent, FWViewType::EType, const FWViewContext* vc) override;
43  bool havePerViewProduct(FWViewType::EType) const override { return true; }
45  void localModelChanges(const FWModelId& iId,
46  TEveElement* el,
47  FWViewType::EType viewType,
48  const FWViewContext* vc) override;
49 
51 
52 protected:
53  // --------------------- Member Functions --------------------------
54  void sharedBuild(const reco::PFCluster&, TEveElement&, const FWViewContext*);
55  float calculateEt(const reco::PFCluster& cluster, float E);
56 
57 private:
58  // Disable default copy constructor
60  // Disable default assignment operator
62 };
63 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
64 
65 //-----------------------------------------------------------------------------
66 // FWPFEcalClusterLegoProxyBuilder
67 //-----------------------------------------------------------------------------
68 
70 public:
71  // ---------------- Constructor(s)/Destructor ----------------------
74 
75  // --------------------- Member Functions --------------------------
77  void build(const reco::PFCluster&, unsigned int, TEveElement&, const FWViewContext*) override;
78 
80 
83 };
84 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
85 
86 //-----------------------------------------------------------------------------
87 // FWPFHcalClusterLegoProxyBuilder
88 //-----------------------------------------------------------------------------
89 
91 public:
92  // ---------------- Constructor(s)/Destructor ----------------------
95 
96  // --------------------- Member Functions --------------------------
98  void build(const reco::PFCluster&, unsigned int, TEveElement&, const FWViewContext*) override;
99 
101 
104 };
105 #endif
106 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
void localModelChanges(const FWModelId &iId, TEveElement *el, FWViewType::EType viewType, const FWViewContext *vc) override
#define REGISTER_PROXYBUILDER_METHODS()
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition: PFCluster.h:42
const FWPFEcalClusterLegoProxyBuilder & operator=(const FWPFEcalClusterLegoProxyBuilder &)=delete
const FWPFHcalClusterLegoProxyBuilder & operator=(const FWPFHcalClusterLegoProxyBuilder &)=delete
bool havePerViewProduct(FWViewType::EType) const override
const FWPFClusterLegoProxyBuilder & operator=(const FWPFClusterLegoProxyBuilder &)
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
void sharedBuild(const reco::PFCluster &, TEveElement &, const FWViewContext *)
float calculateEt(const reco::PFCluster &cluster, float E)