Public Member Functions | |
virtual void | cleanLocal () |
FWElectronProxyBuilder () | |
virtual bool | haveSingleProduct () const |
REGISTER_PROXYBUILDER_METHODS () | |
virtual | ~FWElectronProxyBuilder () |
Private Member Functions | |
virtual void | buildViewType (const reco::GsfElectron &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) |
FWElectronProxyBuilder (const FWElectronProxyBuilder &) | |
const FWElectronProxyBuilder & | operator= (const FWElectronProxyBuilder &) |
TEveElementList * | requestCommon () |
Private Attributes | |
TEveElementList * | m_common |
Definition at line 34 of file FWElectronProxyBuilder.cc.
FWElectronProxyBuilder::FWElectronProxyBuilder | ( | ) |
FWElectronProxyBuilder::~FWElectronProxyBuilder | ( | ) | [virtual] |
Definition at line 64 of file FWElectronProxyBuilder.cc.
References m_common.
{ m_common->DecDenyDestroy(); }
FWElectronProxyBuilder::FWElectronProxyBuilder | ( | const FWElectronProxyBuilder & | ) | [private] |
void FWElectronProxyBuilder::buildViewType | ( | const reco::GsfElectron & | iData, |
unsigned int | iIndex, | ||
TEveElement & | oItemHolder, | ||
FWViewType::EType | type, | ||
const FWViewContext * | |||
) | [private, virtual] |
Reimplemented from FWSimpleProxyBuilderTemplate< reco::GsfElectron >.
Definition at line 100 of file FWElectronProxyBuilder.cc.
References FWViewType::kRhoPhi, FWViewType::kRhoPhiPF, FWViewType::kRhoZ, fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), reco::LeafCandidate::phi(), requestCommon(), FWProxyBuilderBase::setupAddElement(), reco::GsfElectron::superCluster(), and testEve_cfg::tracks.
{ TEveElementList* tracks = requestCommon(); TEveElement::List_i trkIt = tracks->BeginChildren(); std::advance(trkIt, iIndex); setupAddElement(*trkIt, &oItemHolder ); if( type == FWViewType::kRhoPhi || type == FWViewType::kRhoPhiPF ) fireworks::makeRhoPhiSuperCluster( this, electron.superCluster(), electron.phi(), oItemHolder ); else if( type == FWViewType::kRhoZ ) fireworks::makeRhoZSuperCluster( this, electron.superCluster(), electron.phi(), oItemHolder ); }
void FWElectronProxyBuilder::cleanLocal | ( | ) | [virtual] |
Reimplemented from FWProxyBuilderBase.
Definition at line 94 of file FWElectronProxyBuilder.cc.
References m_common.
{ m_common->DestroyElements(); }
virtual bool FWElectronProxyBuilder::haveSingleProduct | ( | void | ) | const [inline, virtual] |
Reimplemented from FWProxyBuilderBase.
Definition at line 40 of file FWElectronProxyBuilder.cc.
{ return false; }
const FWElectronProxyBuilder& FWElectronProxyBuilder::operator= | ( | const FWElectronProxyBuilder & | ) | [private] |
FWElectronProxyBuilder::REGISTER_PROXYBUILDER_METHODS | ( | ) |
TEveElementList * FWElectronProxyBuilder::requestCommon | ( | ) | [private] |
Definition at line 70 of file FWElectronProxyBuilder.cc.
References FWProxyBuilderBase::context(), metsig::electron, funct::false, fireworks::Context::getTrackPropagator(), reco::GsfElectron::gsfTrack(), i, FWProxyBuilderBase::item(), m_common, FWSimpleProxyBuilderTemplate< reco::GsfElectron >::modelData(), fireworks::prepareCandidate(), fireworks::prepareTrack(), FWProxyBuilderBase::setupElement(), FWEventItem::size(), and ExpressReco_HICollisions_FallBack::track.
Referenced by buildViewType().
{ if( m_common->HasChildren() == false ) { for (int i = 0; i < static_cast<int>(item()->size()); ++i) { const reco::GsfElectron& electron = modelData(i); TEveTrack* track(0); if( electron.gsfTrack().isAvailable() ) track = fireworks::prepareTrack( *electron.gsfTrack(), context().getTrackPropagator()); else track = fireworks::prepareCandidate( electron, context().getTrackPropagator()); track->MakeTrack(); setupElement( track ); m_common->AddElement( track ); } } return m_common; }
TEveElementList* FWElectronProxyBuilder::m_common [private] |
Definition at line 53 of file FWElectronProxyBuilder.cc.
Referenced by cleanLocal(), FWElectronProxyBuilder(), requestCommon(), and ~FWElectronProxyBuilder().