CMS 3D CMS Logo

FWPFEcalRecHitLegoProxyBuilder.h
Go to the documentation of this file.
1 #ifndef _FWPFEcalRecHitLegoProxyBuilder_H_
2 #define _FWPFEcalRecHitLegoProxyBuilder_H_
3 
4 // -*- C++ -*-
5 //
6 // Package: ParticleFlow
7 // Class : FWPFEcalRecHitLegoProxyBuilder
8 //
9 // Implementation:
10 // <Notes on implementation>
11 //
12 // Original Author: Simon Harris
13 //
14 
15 // System include files
16 #include <cmath>
17 #include "TEveCompound.h"
18 
19 // User include files
24 
28 
31 
32 //-----------------------------------------------------------------------------
33 // FWPFEcalRecHitLegoProxyBuilder
34 //-----------------------------------------------------------------------------
35 
37 public:
38  // ---------------- Constructor(s)/Destructor ----------------------
41 
42  static std::string typeOfBuilder() { return "simple#"; }
43 
44  // --------------------- Member Functions --------------------------
45  void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
46 
47  void scaleProduct(TEveElementList* parent, FWViewType::EType, const FWViewContext* vc) override;
48  bool havePerViewProduct(FWViewType::EType) const override { return true; }
49  void cleanLocal() override;
50 
51  // Needed by FWPFLegoRecHit
52  TEveVector calculateCentre(const std::vector<TEveVector>& corners) const;
53  float getMaxValLog(bool et) const { return et ? m_maxEtLog : m_maxEnergyLog; }
54  float getMaxVal(bool et) const { return et ? m_maxEt : m_maxEnergy; }
55 
57 
58 protected:
59  // --------------------- Member Functions --------------------------
60  void localModelChanges(const FWModelId& iId,
61  TEveElement* iCompound,
62  FWViewType::EType viewType,
63  const FWViewContext* vc) override;
64 
65 private:
66  // Disable default copy constructor
68  // Disable default assignment operator
70 
71  // ----------------------- Data Members ----------------------------
72  float m_maxEnergy;
73  float m_maxEt;
75  float m_maxEtLog;
76  std::vector<FWPFLegoRecHit*> m_recHits;
77 };
78 #endif
79 //=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_=_
FWPFEcalRecHitLegoProxyBuilder::FWPFEcalRecHitLegoProxyBuilder
FWPFEcalRecHitLegoProxyBuilder()
Definition: FWPFEcalRecHitLegoProxyBuilder.h:39
FWViewType::EType
EType
Definition: FWViewType.h:31
FWPFEcalRecHitLegoProxyBuilder::getMaxValLog
float getMaxValLog(bool et) const
Definition: FWPFEcalRecHitLegoProxyBuilder.h:53
FWPFEcalRecHitLegoProxyBuilder::typeOfBuilder
static std::string typeOfBuilder()
Definition: FWPFEcalRecHitLegoProxyBuilder.h:42
FWPFMaths.h
FWModelId
Definition: FWModelId.h:28
FWPFEcalRecHitLegoProxyBuilder::m_maxEnergy
float m_maxEnergy
Definition: FWPFEcalRecHitLegoProxyBuilder.h:72
FWPFLegoRecHit.h
FWPFEcalRecHitLegoProxyBuilder::m_recHits
std::vector< FWPFLegoRecHit * > m_recHits
Definition: FWPFEcalRecHitLegoProxyBuilder.h:76
FWPFEcalRecHitLegoProxyBuilder::m_maxEnergyLog
float m_maxEnergyLog
Definition: FWPFEcalRecHitLegoProxyBuilder.h:74
FWPFEcalRecHitLegoProxyBuilder::cleanLocal
void cleanLocal() override
Definition: FWPFEcalRecHitLegoProxyBuilder.cc:122
FWPFEcalRecHitLegoProxyBuilder::localModelChanges
void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override
Definition: FWPFEcalRecHitLegoProxyBuilder.cc:22
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition: register_dataproxybuilder_macro.h:27
FWProxyBuilderTemplate.h
FWPFEcalRecHitLegoProxyBuilder::scaleProduct
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
Definition: FWPFEcalRecHitLegoProxyBuilder.cc:4
FWPFEcalRecHitLegoProxyBuilder::calculateCentre
TEveVector calculateCentre(const std::vector< TEveVector > &corners) const
Definition: FWPFEcalRecHitLegoProxyBuilder.cc:37
FWViewContext.h
FWPFEcalRecHitLegoProxyBuilder::operator=
const FWPFEcalRecHitLegoProxyBuilder & operator=(const FWPFEcalRecHitLegoProxyBuilder &)=delete
FWPFEcalRecHitLegoProxyBuilder::getMaxVal
float getMaxVal(bool et) const
Definition: FWPFEcalRecHitLegoProxyBuilder.h:54
EcalRecHit.h
FWGeometry.h
FWProxyBuilderTemplate
Definition: FWProxyBuilderTemplate.h:30
FWPFEcalRecHitLegoProxyBuilder::m_maxEt
float m_maxEt
Definition: FWPFEcalRecHitLegoProxyBuilder.h:73
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
FWPFEcalRecHitLegoProxyBuilder
Definition: FWPFEcalRecHitLegoProxyBuilder.h:36
FWProxyBuilderBase::build
void build()
Definition: FWProxyBuilderBase.cc:110
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWEventItem.h
FWViewContext
Definition: FWViewContext.h:32
FWEventItem
Definition: FWEventItem.h:56
FWPFEcalRecHitLegoProxyBuilder::m_maxEtLog
float m_maxEtLog
Definition: FWPFEcalRecHitLegoProxyBuilder.h:75
FWPFEcalRecHitLegoProxyBuilder::~FWPFEcalRecHitLegoProxyBuilder
~FWPFEcalRecHitLegoProxyBuilder() override
Definition: FWPFEcalRecHitLegoProxyBuilder.h:40
FWViewEnergyScale.h
FWPFEcalRecHitLegoProxyBuilder::havePerViewProduct
bool havePerViewProduct(FWViewType::EType) const override
Definition: FWPFEcalRecHitLegoProxyBuilder.h:48
class-composition.parent
parent
Definition: class-composition.py:98
Context.h