CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
fireworks::Context Class Reference

#include <Context.h>

Public Member Functions

FWColorManagercolorManager () const
 
CmsShowCommoncommonPrefs () const
 
 Context (FWModelChangeManager *iCM, FWSelectionManager *iSM, FWEventItemsManager *iEM, FWColorManager *iColorM, FWJobMetadataManager *iJMDM)
 
void deleteEveElements ()
 
const FWEventItemsManagereventItemsManager () const
 
FWBeamSpotgetBeamSpot () const
 
TEveCaloDataHist * getCaloData () const
 
TEveCaloDataVec * getCaloDataHF () const
 
FWMagFieldgetField () const
 
const FWGeometrygetGeom () const
 
bool getHidePFBuilders () const
 
float getMaxEnergyInEvent (bool isEt) const
 
TEveTrackPropagator * getMuonTrackPropagator () const
 
TEveTrackPropagator * getTrackerTrackPropagator () const
 
TEveTrackPropagator * getTrackPropagator () const
 
void initEveElements ()
 
FWJobMetadataManagermetadataManager () const
 
FWModelChangeManagermodelChangeManager () const
 
void resetMaxEtAndEnergy () const
 
FWSelectionManagerselectionManager () const
 
void setGeom (const FWGeometry *x)
 
void setHidePFBuilders (bool x)
 
void voteMaxEtAndEnergy (float Et, float energy) const
 
virtual ~Context ()
 

Static Public Member Functions

static double caloMaxEta ()
 
static float caloR1 (bool offset=true)
 
static float caloR2 (bool offset=true)
 
static float caloTransAngle ()
 
static float caloTransEta ()
 
static float caloZ1 (bool offset=true)
 
static float caloZ2 (bool offset=true)
 
static ContextgetInstance ()
 

Private Member Functions

 Context (const Context &)
 
const Contextoperator= (const Context &)
 

Private Attributes

FWBeamSpotm_beamSpot
 
TEveCaloDataHist * m_caloData
 
TEveCaloDataVec * m_caloDataHF
 
FWModelChangeManagerm_changeManager
 
FWColorManagerm_colorManager
 
CmsShowCommonm_commonPrefs
 
FWEventItemsManagerm_eventItemsManager
 
const FWGeometrym_geom
 
bool m_hidePFBuilders
 
FWMagFieldm_magField
 
float m_maxEnergy
 
float m_maxEt
 
FWJobMetadataManagerm_metadataManager
 
TEveTrackPropagator * m_muonPropagator
 
TEveTrackPropagator * m_propagator
 
FWSelectionManagerm_selectionManager
 
TEveTrackPropagator * m_trackerPropagator
 

Static Private Attributes

static const float s_caloOffR = 10
 
static const float s_caloOffZ = s_caloOffR/tan(s_caloTransAngle)
 
static const float s_caloR = s_caloZ*tan(s_caloTransAngle)
 
static const float s_caloTransAngle = 2*atan(exp(-s_caloTransEta))
 
static const float s_caloTransEta = 1.479
 
static const float s_caloZ = 290
 
static Contexts_fwContext = NULL
 

Detailed Description

Definition at line 41 of file Context.h.

Constructor & Destructor Documentation

Context::Context ( FWModelChangeManager iCM,
FWSelectionManager iSM,
FWEventItemsManager iEM,
FWColorManager iColorM,
FWJobMetadataManager iJMDM 
)

Definition at line 57 of file Context.cc.

Context::~Context ( )
virtual

Definition at line 88 of file Context.cc.

fireworks::Context::Context ( const Context )
private

Member Function Documentation

double Context::caloMaxEta ( )
static

Definition at line 238 of file Context.cc.

Referenced by fireworks::makeEveJetCone().

float Context::caloR1 ( bool  offset = true)
static
float Context::caloR2 ( bool  offset = true)
static

Definition at line 213 of file Context.cc.

Referenced by fireworks::makeEveJetCone(), and fireworks::makeRhoZSuperCluster().

float Context::caloTransAngle ( )
static

Definition at line 233 of file Context.cc.

Referenced by fireworks::makeEveJetCone(), and fireworks::makeRhoZSuperCluster().

float Context::caloTransEta ( )
static
float Context::caloZ1 ( bool  offset = true)
static
float Context::caloZ2 ( bool  offset = true)
static

Definition at line 223 of file Context.cc.

Referenced by fireworks::makeEveJetCone(), and fireworks::makeRhoZSuperCluster().

FWColorManager* fireworks::Context::colorManager ( ) const
inline
CmsShowCommon * Context::commonPrefs ( ) const

Definition at line 177 of file Context.cc.

void Context::deleteEveElements ( )

Definition at line 166 of file Context.cc.

const FWEventItemsManager* fireworks::Context::eventItemsManager ( ) const
inline

Definition at line 61 of file Context.h.

References m_eventItemsManager.

61  {
62  return m_eventItemsManager;
63  }
FWEventItemsManager * m_eventItemsManager
Definition: Context.h:119
FWBeamSpot* fireworks::Context::getBeamSpot ( ) const
inline

Definition at line 78 of file Context.h.

References m_beamSpot.

78 { return m_beamSpot; }
FWBeamSpot * m_beamSpot
Definition: Context.h:130
TEveCaloDataHist* fireworks::Context::getCaloData ( ) const
inline

Definition at line 80 of file Context.h.

References m_caloData.

Referenced by FWCaloDataHistProxyBuilder::setCaloData(), and FW3DView::setContext().

80 { return m_caloData; }
TEveCaloDataHist * m_caloData
Definition: Context.h:139
TEveCaloDataVec* fireworks::Context::getCaloDataHF ( ) const
inline

Definition at line 81 of file Context.h.

References m_caloDataHF.

81 { return m_caloDataHF; }
TEveCaloDataVec * m_caloDataHF
Definition: Context.h:140
FWMagField* fireworks::Context::getField ( ) const
inline

Definition at line 77 of file Context.h.

References m_magField.

Referenced by FWTrackProxyBuilder::build().

77 { return m_magField; }
FWMagField * m_magField
Definition: Context.h:129
const FWGeometry* fireworks::Context::getGeom ( ) const
inline

Definition at line 83 of file Context.h.

References m_geom.

Referenced by FWViewGeometryList::FWViewGeometryList(), fireworks::makeRhoPhiSuperCluster(), and fireworks::makeRhoZSuperCluster().

83 { return m_geom; }
const FWGeometry * m_geom
Definition: Context.h:123
bool fireworks::Context::getHidePFBuilders ( ) const
inline

Definition at line 91 of file Context.h.

References m_hidePFBuilders.

91 { return m_hidePFBuilders; }
bool m_hidePFBuilders
Definition: Context.h:137
Context * Context::getInstance ( )
static

Definition at line 243 of file Context.cc.

float Context::getMaxEnergyInEvent ( bool  isEt) const

Definition at line 199 of file Context.cc.

TEveTrackPropagator* fireworks::Context::getMuonTrackPropagator ( ) const
inline

Definition at line 75 of file Context.h.

References m_muonPropagator.

75 { return m_muonPropagator; }
TEveTrackPropagator * m_muonPropagator
Definition: Context.h:127
TEveTrackPropagator* fireworks::Context::getTrackerTrackPropagator ( ) const
inline

Definition at line 74 of file Context.h.

References m_trackerPropagator.

Referenced by FWTrackProxyBuilder::build().

74 { return m_trackerPropagator; }
TEveTrackPropagator * m_trackerPropagator
Definition: Context.h:126
TEveTrackPropagator* fireworks::Context::getTrackPropagator ( ) const
inline

Definition at line 73 of file Context.h.

References m_propagator.

Referenced by FWElectronLegoProxyBuilder::build(), and FWTrackProxyBuilder::build().

73 { return m_propagator; }
TEveTrackPropagator * m_propagator
Definition: Context.h:125
void Context::initEveElements ( )

Definition at line 94 of file Context.cc.

FWJobMetadataManager* fireworks::Context::metadataManager ( ) const
inline

Definition at line 69 of file Context.h.

References m_metadataManager.

69  {
70  return m_metadataManager;
71  }
FWJobMetadataManager * m_metadataManager
Definition: Context.h:121
FWModelChangeManager* fireworks::Context::modelChangeManager ( ) const
inline

Definition at line 54 of file Context.h.

References m_changeManager.

54  {
55  return m_changeManager;
56  }
FWModelChangeManager * m_changeManager
Definition: Context.h:117
const Context& fireworks::Context::operator= ( const Context )
private
void Context::resetMaxEtAndEnergy ( ) const

Definition at line 190 of file Context.cc.

FWSelectionManager* fireworks::Context::selectionManager ( ) const
inline

Definition at line 57 of file Context.h.

References m_selectionManager.

Referenced by FWViewContextMenuHandlerGL::select().

57  {
58  return m_selectionManager;
59  }
FWSelectionManager * m_selectionManager
Definition: Context.h:118
void fireworks::Context::setGeom ( const FWGeometry x)
inline

Definition at line 51 of file Context.h.

References m_geom.

51 { m_geom = x; }
const FWGeometry * m_geom
Definition: Context.h:123
void fireworks::Context::setHidePFBuilders ( bool  x)
inline

Definition at line 92 of file Context.h.

References m_hidePFBuilders.

92 { m_hidePFBuilders = x; }
T x() const
Cartesian x coordinate.
bool m_hidePFBuilders
Definition: Context.h:137
void Context::voteMaxEtAndEnergy ( float  Et,
float  energy 
) const

Member Data Documentation

FWBeamSpot* fireworks::Context::m_beamSpot
private

Definition at line 130 of file Context.h.

Referenced by getBeamSpot().

TEveCaloDataHist* fireworks::Context::m_caloData
private

Definition at line 139 of file Context.h.

Referenced by getCaloData().

TEveCaloDataVec* fireworks::Context::m_caloDataHF
private

Definition at line 140 of file Context.h.

Referenced by getCaloDataHF().

FWModelChangeManager* fireworks::Context::m_changeManager
private

Definition at line 117 of file Context.h.

Referenced by modelChangeManager().

FWColorManager* fireworks::Context::m_colorManager
private

Definition at line 120 of file Context.h.

Referenced by colorManager().

CmsShowCommon* fireworks::Context::m_commonPrefs
private

Definition at line 132 of file Context.h.

FWEventItemsManager* fireworks::Context::m_eventItemsManager
private

Definition at line 119 of file Context.h.

Referenced by eventItemsManager().

const FWGeometry* fireworks::Context::m_geom
private

Definition at line 123 of file Context.h.

Referenced by getGeom(), and setGeom().

bool fireworks::Context::m_hidePFBuilders
mutableprivate

Definition at line 137 of file Context.h.

Referenced by getHidePFBuilders(), and setHidePFBuilders().

FWMagField* fireworks::Context::m_magField
private

Definition at line 129 of file Context.h.

Referenced by getField().

float fireworks::Context::m_maxEnergy
mutableprivate

Definition at line 135 of file Context.h.

float fireworks::Context::m_maxEt
mutableprivate

Definition at line 134 of file Context.h.

FWJobMetadataManager* fireworks::Context::m_metadataManager
private

Definition at line 121 of file Context.h.

Referenced by metadataManager().

TEveTrackPropagator* fireworks::Context::m_muonPropagator
private

Definition at line 127 of file Context.h.

Referenced by getMuonTrackPropagator().

TEveTrackPropagator* fireworks::Context::m_propagator
private

Definition at line 125 of file Context.h.

Referenced by getTrackPropagator().

FWSelectionManager* fireworks::Context::m_selectionManager
private

Definition at line 118 of file Context.h.

Referenced by selectionManager().

TEveTrackPropagator* fireworks::Context::m_trackerPropagator
private

Definition at line 126 of file Context.h.

Referenced by getTrackerTrackPropagator().

const float Context::s_caloOffR = 10
staticprivate

Definition at line 152 of file Context.h.

const float Context::s_caloOffZ = s_caloOffR/tan(s_caloTransAngle)
staticprivate

Definition at line 153 of file Context.h.

const float Context::s_caloR = s_caloZ*tan(s_caloTransAngle)
staticprivate

Definition at line 148 of file Context.h.

const float Context::s_caloTransAngle = 2*atan(exp(-s_caloTransEta))
staticprivate

Definition at line 146 of file Context.h.

const float Context::s_caloTransEta = 1.479
staticprivate

Definition at line 145 of file Context.h.

const float Context::s_caloZ = 290
staticprivate

Definition at line 149 of file Context.h.

Context * Context::s_fwContext = NULL
staticprivate

Definition at line 142 of file Context.h.