CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWMuonProxyBuilder.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Muons
4 // Class : FWMuonProxyBuilder
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Thu Dec 4 19:28:07 EST 2008
11 //
12 
16 
18 {
19 public:
20  FWMuonProxyBuilder( void ) {}
21  virtual ~FWMuonProxyBuilder( void ) {}
22 
24 
25 private:
26  // Disable default copy constructor
28  // Disable default assignment operator
30 
31 
33  virtual void build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* ) override;
34 
35  virtual void localModelChanges( const FWModelId& iId, TEveElement* iCompound,
36  FWViewType::EType viewType, const FWViewContext* vc ) override;
37 
39 };
40 
41 void
42 FWMuonProxyBuilder::build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* )
43 {
44  m_builder.buildMuon( this, &iData, &oItemHolder, true, false );
45 
46  increaseComponentTransparency( iIndex, &oItemHolder, "Chamber", 60 );
47 }
48 
49 void
50 FWMuonProxyBuilder::localModelChanges( const FWModelId& iId, TEveElement* iCompound,
51  FWViewType::EType viewType, const FWViewContext* vc )
52 {
53  increaseComponentTransparency( iId.index(), iCompound, "Chamber", 60 );
54 }
55 
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void buildMuon(FWProxyBuilderBase *, const reco::Muon *muon, TEveElement *tList, bool showEndcap, bool onlyTracks=false)
static const int kAll3DBits
Definition: FWViewType.h:59
int index() const
Definition: FWModelId.h:49
virtual ~FWMuonProxyBuilder(void)
const FWMuonProxyBuilder & operator=(const FWMuonProxyBuilder &)
virtual void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)