CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWMuonRhoPhiProxyBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Muons
4 // Class : FWMuonRhoPhiProxyBuilder
5 //
6 //
7 
11 
13 {
14 public:
16  virtual ~FWMuonRhoPhiProxyBuilder( void ) {}
17 
19 
20 private:
21  // Disable default copy constructor
23  // Disable default assignment operator
25 
26  void build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* ) override;
27 
28  virtual void localModelChanges( const FWModelId& iId, TEveElement* iCompound,
29  FWViewType::EType viewType, const FWViewContext* vc ) override;
30 
32 };
33 
34 void
35 FWMuonRhoPhiProxyBuilder::build( const reco::Muon& iData, unsigned int iIndex,
36  TEveElement& oItemHolder, const FWViewContext* )
37 {
38  // To build in RhoPhi we should simply disable the Endcap drawing
39  // by passing a false flag to a muon builder:
40  m_builder.buildMuon( this, &iData, &oItemHolder, false, false );
41 
42  increaseComponentTransparency( iIndex, &oItemHolder, "Chamber", 40 );
43 }
44 
45 void
46 FWMuonRhoPhiProxyBuilder::localModelChanges( const FWModelId& iId, TEveElement* iCompound,
47  FWViewType::EType viewType, const FWViewContext* vc )
48 {
49  increaseComponentTransparency( iId.index(), iCompound, "Chamber", 40 );
50 }
51 
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
const FWMuonRhoPhiProxyBuilder & operator=(const FWMuonRhoPhiProxyBuilder &)
void buildMuon(FWProxyBuilderBase *, const reco::Muon *muon, TEveElement *tList, bool showEndcap, bool onlyTracks=false)
virtual void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override
int index() const
Definition: FWModelId.h:49
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)