CEDRIC  Revision_backup-2009-02
Public Types | Public Member Functions | List of all members
PhastInterface Class Reference

Singleton holding current Phast instance plus some comfort getters. More...

#include <PhastInterface.h>

Public Types

typedef std::list< std::string > NameList
 

Public Member Functions

std::list< int > getDetectorsByPrefix (const std::string &prefix) const
 
void getDetectorNames (std::list< std::string > &names) const
 Fill a list with all detector names. More...
 
Phast * phast ()
 
bool openMDST (std::string filename)
 
bool loadEvent (int i)
 
double getRICHRefractiveIndex (bool &fromMetaDB) const
 

Singleton implementation

static PhastInterface & ref ()
 

Detailed Description

Singleton holding current Phast instance plus some comfort getters.

You can access this singletons comfort getters by calling e.g.:

// Get indices of all hadronic calorimeters
std::list<int> hadronCalos;
hadronCalos = PhastInterface::ref().getCalorimetersByRegExp( "HC*" );

You can access the Phast object itself by e.g.:

Author
Max Hermann <mhermann[at]mail.cern.ch>

Member Typedef Documentation

typedef std::list<std::string> PhastInterface::NameList

Member Function Documentation

void PhastInterface::getDetectorNames ( std::list< std::string > &  names) const

Fill a list with all detector names.

Referenced by VisTrackDetectors::filter().

std::list< int > PhastInterface::getDetectorsByPrefix ( const std::string &  prefix) const
double PhastInterface::getRICHRefractiveIndex ( bool &  fromMetaDB) const

Return RICH Refractive Index

Parameters
[out]fromMetaDBindicates wether the index stems from MetaDB or PaSetup
Returns
refractive index or -1 if not known

Referenced by ParticleTreeWidget::updateContent().

bool PhastInterface::loadEvent ( int  i)

Referenced by createSignaturesAll().

bool PhastInterface::openMDST ( std::string  filename)
Todo:
Remove g_phast pointer and activate HACK here
Phast* PhastInterface::phast ( )
inline
static PhastInterface& PhastInterface::ref ( )
inlinestatic