CMS 3D CMS Logo

FWMuonRhoPhiProxyBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Muons
4 // Class : FWMuonRhoPhiProxyBuilder
5 //
6 //
7 
13 
15 public:
17  ~FWMuonRhoPhiProxyBuilder(void) override {}
18 
19  void setItem(const FWEventItem* iItem) override;
20 
22 
23 private:
24  // Disable default copy constructor
26  // Disable default assignment operator
28 
30  void build(const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext*) override;
31 
32  void localModelChanges(const FWModelId& iId,
33  TEveElement* iCompound,
34  FWViewType::EType viewType,
35  const FWViewContext* vc) override;
36 
38 };
39 
42 
43  if (iItem) {
44  iItem->getConfig()->assertParam("LineWidth", long(1), long(1), long(4));
45  }
46 }
47 
49  unsigned int iIndex,
50  TEveElement& oItemHolder,
51  const FWViewContext*) {
52  int width = item()->getConfig()->value<long>("LineWidth");
54 
55  // To build in RhoPhi we should simply disable the Endcap drawing
56  // by passing a false flag to a muon builder:
57  m_builder.buildMuon(this, &iData, &oItemHolder, false, false);
58 
59  increaseComponentTransparency(iIndex, &oItemHolder, "Chamber", 40);
60 }
61 
63  TEveElement* iCompound,
64  FWViewType::EType viewType,
65  const FWViewContext* vc) {
66  increaseComponentTransparency(iId.index(), iCompound, "Chamber", 40);
67 }
68 
70  reco::Muon,
71  "Muons",
FWViewType::kRhoPhiPFBit
Definition: FWViewType.h:53
FWViewType::kRhoPhiBit
Definition: FWViewType.h:51
ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
Muon.h
FWMuonRhoPhiProxyBuilder::m_builder
FWMuonBuilder m_builder
Definition: FWMuonRhoPhiProxyBuilder.cc:37
FWSimpleProxyBuilderTemplate.h
FWViewType::EType
EType
Definition: FWViewType.h:31
FWMuonRhoPhiProxyBuilder
Definition: FWMuonRhoPhiProxyBuilder.cc:14
FWEventItem::getConfig
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:150
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition: FWProxyBuilderFactory.h:33
FWMuonRhoPhiProxyBuilder::operator=
const FWMuonRhoPhiProxyBuilder & operator=(const FWMuonRhoPhiProxyBuilder &)=delete
FWModelId
Definition: FWModelId.h:28
FWMuonRhoPhiProxyBuilder::~FWMuonRhoPhiProxyBuilder
~FWMuonRhoPhiProxyBuilder(void) override
Definition: FWMuonRhoPhiProxyBuilder.cc:17
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition: register_dataproxybuilder_macro.h:28
FWMuonBuilder::buildMuon
void buildMuon(FWProxyBuilderBase *, const reco::Muon *muon, TEveElement *tList, bool showEndcap, bool onlyTracks=false)
Definition: FWMuonBuilder.cc:229
FWMuonBuilder.h
reco::Muon
Definition: Muon.h:27
FWProxyBuilderBase::increaseComponentTransparency
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
Definition: FWProxyBuilderBase.cc:393
FWModelId::index
int index() const
Definition: FWModelId.h:41
FWProxyBuilderConfiguration::assertParam
FWGenericParameter< T > * assertParam(const std::string &name, T def)
Definition: FWProxyBuilderConfiguration.cc:83
FWMuonRhoPhiProxyBuilder::localModelChanges
void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override
Definition: FWMuonRhoPhiProxyBuilder.cc:62
FWMuonBuilder
Definition: FWMuonBuilder.h:22
FWProxyBuilderConfiguration.h
FWProxyBuilderBase::build
void build()
Definition: FWProxyBuilderBase.cc:110
FWEventItem.h
FWViewContext
Definition: FWViewContext.h:32
FWProxyBuilderBase::item
const FWEventItem * item() const
Definition: FWProxyBuilderBase.h:64
FWEventItem
Definition: FWEventItem.h:56
FWProxyBuilderConfiguration::value
T value(const std::string &name)
Definition: FWProxyBuilderConfiguration.cc:123
FWSimpleProxyBuilderTemplate
Definition: FWSimpleProxyBuilderTemplate.h:30
FWMuonBuilder::setLineWidth
void setLineWidth(int w)
Definition: FWMuonBuilder.h:35
FWProxyBuilderBase::setItem
virtual void setItem(const FWEventItem *iItem)
Definition: FWProxyBuilderBase.cc:83
FWMuonRhoPhiProxyBuilder::FWMuonRhoPhiProxyBuilder
FWMuonRhoPhiProxyBuilder(void)
Definition: FWMuonRhoPhiProxyBuilder.cc:16
FWMuonRhoPhiProxyBuilder::setItem
void setItem(const FWEventItem *iItem) override
Definition: FWMuonRhoPhiProxyBuilder.cc:40