#include <FWPFTrackUtils.h>
Public Member Functions | |
FWMagField * | getField () |
TEveTrackPropagator * | getTrackerTrackPropagator () |
TEveTrackPropagator * | getTrackPropagator () |
Static Public Member Functions | |
static FWPFTrackSingleton * | Instance () |
Protected Member Functions | |
FWPFTrackSingleton (const FWPFTrackSingleton &) | |
FWPFTrackSingleton () | |
const FWPFTrackSingleton & | operator= (const FWPFTrackSingleton &) |
virtual | ~FWPFTrackSingleton () |
Private Member Functions | |
void | initPropagator () |
Private Attributes | |
FWMagField * | m_magField |
TEveTrackPropagator * | m_trackerTrackPropagator |
TEveTrackPropagator * | m_trackPropagator |
Static Private Attributes | |
static bool | instanceFlag = false |
static FWPFTrackSingleton * | pInstance = NULL |
Definition at line 34 of file FWPFTrackUtils.h.
FWPFTrackSingleton::FWPFTrackSingleton | ( | const FWPFTrackSingleton & | ) | [protected] |
FWPFTrackSingleton::FWPFTrackSingleton | ( | ) | [inline, protected] |
Definition at line 49 of file FWPFTrackUtils.h.
References initPropagator().
Referenced by Instance().
{ initPropagator(); }
virtual FWPFTrackSingleton::~FWPFTrackSingleton | ( | ) | [inline, protected, virtual] |
FWMagField* FWPFTrackSingleton::getField | ( | ) | [inline] |
Definition at line 42 of file FWPFTrackUtils.h.
References m_magField.
Referenced by FWPFTrackUtils::setupLegoTrack(), and FWPFTrackUtils::setupTrack().
{ return m_magField; }
TEveTrackPropagator* FWPFTrackSingleton::getTrackerTrackPropagator | ( | ) | [inline] |
Definition at line 40 of file FWPFTrackUtils.h.
References m_trackerTrackPropagator.
Referenced by FWPFTrackUtils::getTrack().
{ return m_trackerTrackPropagator; }
TEveTrackPropagator* FWPFTrackSingleton::getTrackPropagator | ( | ) | [inline] |
Definition at line 41 of file FWPFTrackUtils.h.
References m_trackPropagator.
Referenced by FWPFTrackUtils::getTrack().
{ return m_trackPropagator; }
void FWPFTrackSingleton::initPropagator | ( | ) | [private] |
Definition at line 21 of file FWPFTrackUtils.cc.
References FWPFGeom::caloR3(), FWPFGeom::caloZ2(), m_magField, m_trackerTrackPropagator, and m_trackPropagator.
Referenced by FWPFTrackSingleton().
{ m_magField = new FWMagField(); // Common propagator, helix stepper m_trackPropagator = new TEveTrackPropagator(); m_trackPropagator->SetMagFieldObj( m_magField, false ); m_trackPropagator->SetMaxR( FWPFGeom::caloR3() ); m_trackPropagator->SetMaxZ( FWPFGeom::caloZ2() ); m_trackPropagator->SetDelta( 0.01 ); m_trackPropagator->SetProjTrackBreaking( TEveTrackPropagator::kPTB_UseLastPointPos ); m_trackPropagator->SetRnrPTBMarkers( kTRUE ); m_trackPropagator->IncDenyDestroy(); // Tracker propagator m_trackerTrackPropagator = new TEveTrackPropagator(); m_trackerTrackPropagator->SetStepper( TEveTrackPropagator::kRungeKutta ); m_trackerTrackPropagator->SetMagFieldObj( m_magField, false ); m_trackerTrackPropagator->SetDelta( 0.01 ); m_trackerTrackPropagator->SetMaxR( FWPFGeom::caloR3() ); m_trackerTrackPropagator->SetMaxZ( FWPFGeom::caloZ2() ); m_trackerTrackPropagator->SetProjTrackBreaking( TEveTrackPropagator::kPTB_UseLastPointPos ); m_trackerTrackPropagator->SetRnrPTBMarkers( kTRUE ); m_trackerTrackPropagator->IncDenyDestroy(); }
FWPFTrackSingleton * FWPFTrackSingleton::Instance | ( | ) | [static] |
Definition at line 8 of file FWPFTrackUtils.cc.
References FWPFTrackSingleton(), instanceFlag, and pInstance.
Referenced by FWPFTrackUtils::FWPFTrackUtils().
{ if( !instanceFlag ) // Instance doesn't exist yet { pInstance = new FWPFTrackSingleton(); instanceFlag = true; } return pInstance; // Pointer to sole instance }
const FWPFTrackSingleton& FWPFTrackSingleton::operator= | ( | const FWPFTrackSingleton & | ) | [protected] |
bool FWPFTrackSingleton::instanceFlag = false [static, private] |
Definition at line 58 of file FWPFTrackUtils.h.
Referenced by Instance(), and ~FWPFTrackSingleton().
FWMagField* FWPFTrackSingleton::m_magField [private] |
Definition at line 62 of file FWPFTrackUtils.h.
Referenced by getField(), and initPropagator().
TEveTrackPropagator* FWPFTrackSingleton::m_trackerTrackPropagator [private] |
Definition at line 60 of file FWPFTrackUtils.h.
Referenced by getTrackerTrackPropagator(), and initPropagator().
TEveTrackPropagator* FWPFTrackSingleton::m_trackPropagator [private] |
Definition at line 61 of file FWPFTrackUtils.h.
Referenced by getTrackPropagator(), and initPropagator().
FWPFTrackSingleton * FWPFTrackSingleton::pInstance = NULL [static, private] |
Definition at line 57 of file FWPFTrackUtils.h.
Referenced by Instance().