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 // $Id: FWMuonProxyBuilder.cc,v 1.12 2010/07/30 08:36:01 yana Exp $
12 //
13 
17 
19 {
20 public:
21  FWMuonProxyBuilder( void ) {}
22  virtual ~FWMuonProxyBuilder( void ) {}
23 
25 
26 private:
27  // Disable default copy constructor
29  // Disable default assignment operator
31 
32 
33  virtual void build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* );
34 
35  virtual void localModelChanges( const FWModelId& iId, TEveElement* iCompound,
36  FWViewType::EType viewType, const FWViewContext* vc );
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)
virtual void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
static const int kAll3DBits
Definition: FWViewType.h:57
int index() const
Definition: FWModelId.h:50
virtual ~FWMuonProxyBuilder(void)
const FWMuonProxyBuilder & operator=(const FWMuonProxyBuilder &)
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)