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 // $Id: FWMuonRhoPhiProxyBuilder.cc,v 1.1 2010/07/30 08:36:01 yana Exp $
7 //
8 
12 
14 {
15 public:
17  virtual ~FWMuonRhoPhiProxyBuilder( void ) {}
18 
20 
21 private:
22  // Disable default copy constructor
24  // Disable default assignment operator
26 
27  void build( const reco::Muon& iData, unsigned int iIndex, TEveElement& oItemHolder, const FWViewContext* );
28 
29  virtual void localModelChanges( const FWModelId& iId, TEveElement* iCompound,
30  FWViewType::EType viewType, const FWViewContext* vc );
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_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
const FWMuonRhoPhiProxyBuilder & operator=(const FWMuonRhoPhiProxyBuilder &)
void buildMuon(FWProxyBuilderBase *, const reco::Muon *muon, TEveElement *tList, bool showEndcap, bool onlyTracks=false)
int index() const
Definition: FWModelId.h:50
virtual void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
void increaseComponentTransparency(unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)