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  // Disable default copy constructor
25  // Disable default assignment operator
27 
28 private:
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",
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void setItem(const FWEventItem *iItem) override
FWProxyBuilderConfiguration * getConfig() const
Definition: FWEventItem.h:150
void setLineWidth(int w)
Definition: FWMuonBuilder.h:35
int index() const
Definition: FWModelId.h:41
void buildMuon(FWProxyBuilderBase *, const reco::Muon *muon, TEveElement *tList, bool showEndcap, bool onlyTracks=false)
void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override
virtual void setItem(const FWEventItem *iItem)
const FWMuonRhoPhiProxyBuilder & operator=(const FWMuonRhoPhiProxyBuilder &)=delete
FWGenericParameter< T > * assertParam(const std::string &name, T def)
const FWEventItem * item() const
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)