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 
27  void build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* ) override;
28 
29  virtual void localModelChanges( const FWModelId& iId, TEveElement* iCompound,
30  FWViewType::EType viewType, const FWViewContext* vc ) override;
31 
33 };
34 
35 void
36 FWMuonRhoPhiProxyBuilder::build( const reco::Muon& iData, unsigned int iIndex,
37  TEveElement& oItemHolder, const FWViewContext* )
38 {
39  // To build in RhoPhi we should simply disable the Endcap drawing
40  // by passing a false flag to a muon builder:
41  m_builder.buildMuon( this, &iData, &oItemHolder, false, false );
42 
43  increaseComponentTransparency( iIndex, &oItemHolder, "Chamber", 40 );
44 }
45 
46 void
47 FWMuonRhoPhiProxyBuilder::localModelChanges( const FWModelId& iId, TEveElement* iCompound,
48  FWViewType::EType viewType, const FWViewContext* vc )
49 {
50  increaseComponentTransparency( iId.index(), iCompound, "Chamber", 40 );
51 }
52 
#define REGISTER_PROXYBUILDER_METHODS()
#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)