#include <DetDesc/DetectorElement.h>
Inheritance diagram for DetectorElement:
Public Types | |
typedef std::map< std::string, SmartRef< Condition > > | ConditionMap |
Type of the internal list of used conditions. | |
DEFAULT | |
ALWAYS_VALID | |
FORCE_UPDATE | |
enum | UpdateModeFlag { DEFAULT, ALWAYS_VALID, FORCE_UPDATE } |
Possible stata of the update flag. More... | |
typedef std::vector< IDetectorElement * > | IDEContainer |
SUCCESS | |
NO_INTERFACE | |
VERSMISMATCH | |
LAST_ERROR | |
enum | Status |
Public Member Functions | |
DetectorElement (const std::string &name="NotYetDefined") | |
Constructors. | |
virtual | ~DetectorElement () |
Destructor. | |
virtual StatusCode | initialize () |
This method initializes the detector element. | |
virtual const CLID & | clID () const |
Obtain class ID. | |
virtual const std::string & | name () const |
"accessor": name/identifier of the Detector Element | |
virtual bool | hasCondition (const std::string &name) const |
Check if the condition called 'name' is in the list of conditionrefs. | |
virtual SmartRef< Condition > | condition (const std::string &name) const |
Return the SmartRef for the condition called 'name'. | |
ConditionMap::const_iterator | conditionBegin () const |
Iterator to the first element of the list of conditions. | |
ConditionMap::const_iterator | conditionEnd () const |
Iterator to the last+1 element of the list of conditions. | |
IGeometryInfo * | geometry () |
delegation for geometry | |
const IGeometryInfo * | geometry () const |
delegation for geometry (const version) | |
bool | isInside (const Gaudi::XYZPoint &globalPoint) const |
helper member using IGeometryInfo::isInside | |
const IDetectorElement * | childDEWithPoint (const Gaudi::XYZPoint &globalPoint) const |
IAlignment * | alignment () |
delegation for alignnment | |
const IAlignment * | alignment () const |
delegation for alignment (const version) | |
ICalibration * | calibration () |
"accessor": delegates the ICalibration Interface | |
const ICalibration * | calibration () const |
"accessor": delegates the ICalibration Interface (const) | |
IReadOut * | readOut () |
"accessor": delegates the IReadOut Interface | |
const IReadOut * | readOut () const |
"accessor": delegates the IReadOut Interface (const) | |
ISlowControl * | slowControl () |
"accessor": delegates the ISlowControl Interface | |
const ISlowControl * | slowControl () const |
"accessor": delegates the ISlowControl Interface (const) | |
IFastControl * | fastControl () |
"accessor": delegates the IFastControl Interface | |
const IFastControl * | fastControl () const |
operator IGeometryInfo * () | |
Another way of accessiong the information: "pseudo-conversion" cast to IGeometryInfo*. | |
operator const IGeometryInfo * () const | |
cast to const IGeometryInfo* | |
operator IAlignment * () | |
cast to IAlignment* | |
operator const IAlignment * () const | |
cast to const IAlignment* | |
operator ICalibration * () | |
cast to ICalibration* | |
operator const ICalibration * () const | |
cast to const ICalibration* | |
operator IReadOut * () | |
cast to IReadOut* | |
operator const IReadOut * () const | |
cast to const IReadOut* | |
operator ISlowControl * () | |
cast to ISlowControl* | |
operator const ISlowControl * () const | |
cast to const ISlowControl* | |
operator IFastControl * () | |
cast to IFastControl* | |
operator const IFastControl * () const | |
cast to const IFastControl* | |
operator IGeometryInfo & () | |
cast to IGeometryInfo& | |
operator const IGeometryInfo & () const | |
cast to const IGeometryInfo& | |
operator IAlignment & () | |
cast to IAlingment& | |
operator const IAlignment & () const | |
cast to const IAlignment& | |
operator ICalibration & () | |
cast to ICalibration& | |
operator const ICalibration & () const | |
cast to const ICalibration& | |
operator IReadOut & () | |
cast to IReadOut& | |
operator const IReadOut & () const | |
cast to const IReadOut& | |
operator ISlowControl & () | |
cast to ISlowControl& | |
operator const ISlowControl & () const | |
cast to const ISlowControl& | |
operator IFastControl & () | |
cast to IFastControl& | |
operator const IFastControl & () const | |
cast to const IFastControl& | |
virtual std::ostream & | printOut (std::ostream &) const |
functions for listing of objects, used in overloaded << operations | |
IDetectorElement * | reset () |
reset to the initial state | |
virtual MsgStream & | printOut (MsgStream &) const |
virtual IDetectorElement * | parentIDetectorElement () const |
some functions to simplify the navigation (according to feedback after release 3) pointer to parent IDetectorElement (const version) | |
virtual IDetectorElement::IDEContainer & | childIDetectorElements () const |
(reference to) container of pointers to child detector elements | |
virtual IDetectorElement::IDEContainer::iterator | childBegin () |
iterators for manipulation of daughter elements begin iterator | |
virtual IDetectorElement::IDEContainer::const_iterator | childBegin () const |
virtual IDetectorElement::IDEContainer::iterator | childEnd () |
end iterator | |
virtual IDetectorElement::IDEContainer::const_iterator | childEnd () const |
virtual const ParamValidDataObject * | params () const |
Method used to access the ParamValidDataObject methods from IDetectorElement interface. | |
virtual int | sensitiveVolumeID (const Gaudi::XYZPoint &globalPos) const |
Return a sensitive volume identifier for a given point in the global reference frame. | |
void | createCondition (std::string &name, std::string &path) |
Used to create a link with a given name to the condition at 'path' in the detector data store. | |
virtual std::vector< std::string > | conditionNames () const |
Returns list of existing parameter vectors as a vector of their names. | |
const IGeometryInfo * | createGeometryInfo () |
specific | |
const IGeometryInfo * | createGeometryInfo (const std::string &logVol) |
const IGeometryInfo * | createGeometryInfo (const std::string &logVol, const std::string &support, const ILVolume::ReplicaPath &replicaPath) |
const IGeometryInfo * | createGeometryInfo (const std::string &logVol, const std::string &support, const ILVolume::ReplicaPath &replicaPath, const std::string &alignmentPath) |
const IGeometryInfo * | createGeometryInfo (const std::string &logVol, const std::string &support, const std::string &namePath) |
const IGeometryInfo * | createGeometryInfo (const std::string &logVol, const std::string &support, const std::string &namePath, const std::string &alignmentPath) |
const IAlignment * | createAlignment (const std::string &condition) |
const ICalibration * | createCalibration (const std::string &condition) |
const IReadOut * | createReadOut (const std::string &condition) |
const ISlowControl * | createSlowControl (const std::string &condition) |
const IFastControl * | createFastControl (const std::string &condition) |
virtual unsigned long | addRef () |
virtual unsigned long | release () |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface) |
virtual void | update (ValidDataObject &obj) |
Do the deep copy. | |
virtual StatusCode | update () |
Update the current object and all the useds one (children, references, etc) only if needed, of course. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the output stream (ASCII). | |
bool | exists (const std::string &name) const |
Check if the parameter with the given name exists. | |
virtual const std::type_info & | type (const std::string &name) const |
TypeId of the parameter. | |
template<class T> | |
bool | is (const std::string &name) const |
Check the type of a parameter (commodity function). | |
bool | isVector (const std::string &name) const |
Check if the parameter is a vector. | |
virtual std::string | comment (const std::string &name) const |
Get the comment of a parameter. | |
virtual void | setComment (const std::string &name, const char *comm) |
Set the comment of a parameter. | |
template<class T> | |
const T & | param (const std::string &name) const |
Give a read-only accessor to a parameter. | |
template<class T> | |
T & | param (const std::string &name) |
Give a read/write accessor to a parameter. | |
template<class T> | |
const std::vector< T > & | paramVect (const std::string &name) const |
Give a read-only accessor to a parameter vector. | |
template<class T> | |
std::vector< T > & | paramVect (const std::string &name) |
Give a read/write accessor to a parameter vector. | |
virtual const std::string & | paramAsString (const std::string &name) const |
Get the value of a parameter, as a string. | |
virtual std::string & | paramAsString (const std::string &name) |
Get the value of a parameter, as a string (non const version). | |
virtual int | paramAsInt (const std::string &name) const |
Get the value of a parameter, as an int. | |
virtual double | paramAsDouble (const std::string &name) const |
Get the value of a parameter, as a double. | |
virtual const std::vector< std::string > & | paramAsStringVect (const std::string &name) const |
Get the value of a parameter, as a string. | |
virtual std::vector< std::string > & | paramAsStringVect (const std::string &name) |
Get the value of a parameter, as a string. | |
virtual const std::vector< int > & | paramAsIntVect (const std::string &name) const |
Get the value of a parameter, as an int. | |
virtual std::vector< int > & | paramAsIntVect (const std::string &name) |
Get the value of a parameter, as an int. | |
virtual const std::vector< double > & | paramAsDoubleVect (const std::string &name) const |
Get the value of a parameter, as a double. | |
virtual std::vector< double > & | paramAsDoubleVect (const std::string &name) |
Get the value of a parameter, as a double. | |
virtual std::vector< std::string > | paramNames () const |
Returns list of existing parameter vectors as a vector of their names. | |
virtual std::string | printParams () const |
Print the parameters on a string. | |
virtual std::string | paramToString (const std::string &name, int precision) const |
Convert a parameter to a string (for xml representation). | |
template<class T> | |
void | addParam (const std::string &name, const T &value, const std::string &comment=std::string()) |
void | addBasicParam (const std::string &name, const BasicParam *p, const std::string &comment=std::string()) |
virtual bool | isValid () const |
Check if the data object has a well defined validity range. | |
virtual bool | isValid (const Gaudi::Time &t) const |
Check if the data object is valid at the specified time. | |
virtual const Gaudi::Time & | validSince () const |
Get start of validity. | |
virtual const Gaudi::Time & | validTill () const |
Get end of validity. | |
virtual void | setValidity (const Gaudi::Time &since, const Gaudi::Time &till) |
Set validity range. | |
virtual void | setValiditySince (const Gaudi::Time &since) |
Set start of validity. | |
virtual void | setValidityTill (const Gaudi::Time &till) |
Set end of validity. | |
virtual const UpdateModeFlag & | updateMode () const |
Return the update mode: ValidDataObject::DEFAULT -> use the actual validity ValidDataObject::ALWAYS_VALID -> never update ValidDataObject::FORCE_UPDATE -> force an update even if still valid (then back to DEFAULT behaviour). | |
virtual void | setUpdateMode (UpdateModeFlag mode) |
Set the mode for update. | |
virtual void | defaultUpdateMode () |
virtual void | forceUpdateMode () |
virtual void | neverUpdateMode () |
void | setRegistry (IRegistry *pRegistry) |
IRegistry * | registry () const |
LinkManager * | linkMgr () const |
unsigned char | version () const |
void | setVersion (unsigned char vsn) |
unsigned long | refCount () const |
virtual StreamBuffer & | serialize (StreamBuffer &s) |
virtual StreamBuffer & | serialize (StreamBuffer &s) const |
Static Public Member Functions | |
static const CLID & | classID () |
Class ID of this class. | |
static const InterfaceID & | interfaceID () |
retrieve the unique interface identifier | |
Public Attributes | |
SUCCESS | |
NO_INTERFACE | |
VERSMISMATCH | |
LAST_ERROR | |
Protected Member Functions | |
void | setGeometry (IGeometryInfo *geoInfo) |
specific | |
IDataProviderSvc * | dataSvc () const |
IMessageSvc * | msgSvc () const |
IUpdateManagerSvc * | updMgrSvc () const |
void | Assert (bool assertion, const std::string &message="DetectorElement Unknown Exception") const |
void | Assert (bool assertion, const char *message) const |
Private Types | |
DOUBLE | |
INT | |
OTHER | |
enum | userParamKind { DOUBLE, INT, OTHER } |
This defines the type of a userParameter. More... | |
Private Attributes | |
IGeometryInfo * | m_de_iGeometry |
IAlignment * | m_de_iAlignment |
ICalibration * | m_de_iCalibration |
IReadOut * | m_de_iReadOut |
ISlowControl * | m_de_iSlowControl |
IFastControl * | m_de_iFastControl |
ConditionMap | m_de_conditions |
Container of the SmartRefs for the conditions. | |
bool | m_de_childrensLoaded |
IDetectorElement::IDEContainer | m_de_childrens |
DetDesc::Services * | m_services |
reference to services | |
Friends | |
class | DataObjectFactory< DetectorElement > |
friend std::ostream & | operator<< (std::ostream &s, const DataObject &obj) |
Rado Chytracek
Ivan Belyaev
Marco Clemencic
Juan Palacios
Definition at line 46 of file DetectorElement.h.
typedef std::map<std::string,SmartRef<Condition> > DetectorElement::ConditionMap |
typedef std::vector<IDetectorElement*> IDetectorElement::IDEContainer [inherited] |
Definition at line 47 of file IDetectorElement.h.
enum DetectorElement::userParamKind [private] |
enum ValidDataObject::UpdateModeFlag [inherited] |
Possible stata of the update flag.
Definition at line 102 of file ValidDataObject.h.
00102 { 00103 DEFAULT, 00104 ALWAYS_VALID, 00105 FORCE_UPDATE 00106 };
DetectorElement::DetectorElement | ( | const std::string & | name = "NotYetDefined" |
) |
Constructors.
virtual DetectorElement::~DetectorElement | ( | ) | [virtual] |
Destructor.
virtual StatusCode DetectorElement::initialize | ( | ) | [virtual] |
This method initializes the detector element.
It should be overridden and used for computation purposes. This is a kind of hook for adding user code easily in the initialization of a detector element.
Implements IDetectorElement.
virtual const CLID& DetectorElement::clID | ( | ) | const [inline, virtual] |
Obtain class ID.
Reimplemented from ValidDataObject.
Definition at line 73 of file DetectorElement.h.
00073 { return classID(); }
static const CLID& DetectorElement::classID | ( | ) | [inline, static] |
Class ID of this class.
Reimplemented from ValidDataObject.
Definition at line 74 of file DetectorElement.h.
00074 { return CLID_DetectorElement; }
virtual const std::string& DetectorElement::name | ( | ) | const [virtual] |
virtual bool DetectorElement::hasCondition | ( | const std::string & | name | ) | const [virtual] |
ConditionMap::const_iterator DetectorElement::conditionBegin | ( | ) | const [inline] |
Iterator to the first element of the list of conditions.
Definition at line 85 of file DetectorElement.h.
00086 { return m_de_conditions.begin(); }
ConditionMap::const_iterator DetectorElement::conditionEnd | ( | ) | const [inline] |
Iterator to the last+1 element of the list of conditions.
Definition at line 89 of file DetectorElement.h.
00090 { return m_de_conditions.end(); }
IGeometryInfo* DetectorElement::geometry | ( | ) | [inline, virtual] |
const IGeometryInfo* DetectorElement::geometry | ( | ) | const [inline, virtual] |
bool DetectorElement::isInside | ( | const Gaudi::XYZPoint & | globalPoint | ) | const |
helper member using IGeometryInfo::isInside
const IDetectorElement* DetectorElement::childDEWithPoint | ( | const Gaudi::XYZPoint & | globalPoint | ) | const |
IAlignment* DetectorElement::alignment | ( | ) | [inline, virtual] |
const IAlignment* DetectorElement::alignment | ( | ) | const [inline, virtual] |
ICalibration* DetectorElement::calibration | ( | ) | [inline, virtual] |
const ICalibration* DetectorElement::calibration | ( | ) | const [inline, virtual] |
IReadOut* DetectorElement::readOut | ( | ) | [inline, virtual] |
const IReadOut* DetectorElement::readOut | ( | ) | const [inline, virtual] |
ISlowControl* DetectorElement::slowControl | ( | ) | [inline, virtual] |
const ISlowControl* DetectorElement::slowControl | ( | ) | const [inline, virtual] |
IFastControl* DetectorElement::fastControl | ( | ) | [inline, virtual] |
const IFastControl* DetectorElement::fastControl | ( | ) | const [inline, virtual] |
Implements IDetectorElement.
DetectorElement::operator IGeometryInfo * | ( | ) | [inline, virtual] |
Another way of accessiong the information: "pseudo-conversion" cast to IGeometryInfo*.
Implements IDetectorElement.
DetectorElement::operator const IGeometryInfo * | ( | ) | const [inline, virtual] |
DetectorElement::operator IAlignment * | ( | ) | [inline, virtual] |
DetectorElement::operator const IAlignment * | ( | ) | const [inline, virtual] |
DetectorElement::operator ICalibration * | ( | ) | [inline, virtual] |
DetectorElement::operator const ICalibration * | ( | ) | const [inline, virtual] |
DetectorElement::operator IReadOut * | ( | ) | [inline, virtual] |
DetectorElement::operator const IReadOut * | ( | ) | const [inline, virtual] |
DetectorElement::operator ISlowControl * | ( | ) | [inline, virtual] |
DetectorElement::operator const ISlowControl * | ( | ) | const [inline, virtual] |
DetectorElement::operator IFastControl * | ( | ) | [inline, virtual] |
DetectorElement::operator const IFastControl * | ( | ) | const [inline, virtual] |
DetectorElement::operator IGeometryInfo & | ( | ) | [inline, virtual] |
DetectorElement::operator const IGeometryInfo & | ( | ) | const [inline, virtual] |
DetectorElement::operator IAlignment & | ( | ) | [inline, virtual] |
DetectorElement::operator const IAlignment & | ( | ) | const [inline, virtual] |
DetectorElement::operator ICalibration & | ( | ) | [inline, virtual] |
DetectorElement::operator const ICalibration & | ( | ) | const [inline, virtual] |
DetectorElement::operator IReadOut & | ( | ) | [inline, virtual] |
DetectorElement::operator const IReadOut & | ( | ) | const [inline, virtual] |
DetectorElement::operator ISlowControl & | ( | ) | [inline, virtual] |
DetectorElement::operator const ISlowControl & | ( | ) | const [inline, virtual] |
DetectorElement::operator IFastControl & | ( | ) | [inline, virtual] |
DetectorElement::operator const IFastControl & | ( | ) | const [inline, virtual] |
virtual std::ostream& DetectorElement::printOut | ( | std::ostream & | ) | const [virtual] |
IDetectorElement* DetectorElement::reset | ( | ) | [virtual] |
virtual IDetectorElement* DetectorElement::parentIDetectorElement | ( | ) | const [virtual] |
some functions to simplify the navigation (according to feedback after release 3) pointer to parent IDetectorElement (const version)
Implements IDetectorElement.
virtual IDetectorElement::IDEContainer& DetectorElement::childIDetectorElements | ( | ) | const [virtual] |
virtual IDetectorElement::IDEContainer::iterator DetectorElement::childBegin | ( | ) | [inline, virtual] |
iterators for manipulation of daughter elements begin iterator
Implements IDetectorElement.
Definition at line 234 of file DetectorElement.h.
00234 { 00235 return childIDetectorElements().begin(); 00236 }
virtual IDetectorElement::IDEContainer::const_iterator DetectorElement::childBegin | ( | ) | const [inline, virtual] |
Implements IDetectorElement.
Definition at line 238 of file DetectorElement.h.
00238 { return childIDetectorElements().begin() ; }
virtual IDetectorElement::IDEContainer::iterator DetectorElement::childEnd | ( | ) | [inline, virtual] |
end iterator
Implements IDetectorElement.
Definition at line 240 of file DetectorElement.h.
00240 { return childIDetectorElements().end () ; }
virtual IDetectorElement::IDEContainer::const_iterator DetectorElement::childEnd | ( | ) | const [inline, virtual] |
Implements IDetectorElement.
Definition at line 242 of file DetectorElement.h.
00242 { return childIDetectorElements().end () ; }
virtual const ParamValidDataObject* DetectorElement::params | ( | ) | const [virtual] |
Method used to access the ParamValidDataObject methods from IDetectorElement interface.
Implements IDetectorElement.
virtual int DetectorElement::sensitiveVolumeID | ( | const Gaudi::XYZPoint & | globalPos | ) | const [virtual] |
Return a sensitive volume identifier for a given point in the global reference frame.
Implements IDetectorElement.
void DetectorElement::createCondition | ( | std::string & | name, | |
std::string & | path | |||
) |
Used to create a link with a given name to the condition at 'path' in the detector data store.
virtual std::vector<std::string> DetectorElement::conditionNames | ( | ) | const [virtual] |
Returns list of existing parameter vectors as a vector of their names.
const IGeometryInfo* DetectorElement::createGeometryInfo | ( | ) |
specific
const IGeometryInfo* DetectorElement::createGeometryInfo | ( | const std::string & | logVol | ) |
const IGeometryInfo* DetectorElement::createGeometryInfo | ( | const std::string & | logVol, | |
const std::string & | support, | |||
const ILVolume::ReplicaPath & | replicaPath | |||
) |
const IGeometryInfo* DetectorElement::createGeometryInfo | ( | const std::string & | logVol, | |
const std::string & | support, | |||
const ILVolume::ReplicaPath & | replicaPath, | |||
const std::string & | alignmentPath | |||
) |
const IGeometryInfo* DetectorElement::createGeometryInfo | ( | const std::string & | logVol, | |
const std::string & | support, | |||
const std::string & | namePath | |||
) |
const IGeometryInfo* DetectorElement::createGeometryInfo | ( | const std::string & | logVol, | |
const std::string & | support, | |||
const std::string & | namePath, | |||
const std::string & | alignmentPath | |||
) |
const IAlignment* DetectorElement::createAlignment | ( | const std::string & | condition | ) |
const ICalibration* DetectorElement::createCalibration | ( | const std::string & | condition | ) |
const IReadOut* DetectorElement::createReadOut | ( | const std::string & | condition | ) |
const ISlowControl* DetectorElement::createSlowControl | ( | const std::string & | condition | ) |
const IFastControl* DetectorElement::createFastControl | ( | const std::string & | condition | ) |
virtual unsigned long DetectorElement::addRef | ( | ) | [virtual] |
Implements IInterface.
virtual unsigned long DetectorElement::release | ( | ) | [virtual] |
Implements IInterface.
virtual StatusCode DetectorElement::queryInterface | ( | const InterfaceID & | riid, | |
void ** | ppvInterface | |||
) | [virtual] |
Implements IInterface.
void DetectorElement::setGeometry | ( | IGeometryInfo * | geoInfo | ) | [inline, protected] |
IDataProviderSvc* DetectorElement::dataSvc | ( | ) | const [protected] |
IMessageSvc* DetectorElement::msgSvc | ( | ) | const [protected] |
IUpdateManagerSvc* DetectorElement::updMgrSvc | ( | ) | const [protected] |
void DetectorElement::Assert | ( | bool | assertion, | |
const std::string & | message = "DetectorElement Unknown Exception" | |||
) | const [inline, protected] |
void DetectorElement::Assert | ( | bool | assertion, | |
const char * | message | |||
) | const [inline, protected] |
virtual void ParamValidDataObject::update | ( | ValidDataObject & | obj | ) | [virtual, inherited] |
virtual StatusCode ValidDataObject::update | ( | ) | [virtual, inherited] |
Update the current object and all the useds one (children, references, etc) only if needed, of course.
This method must be reimplemented for more complex objects.
virtual std::ostream& ParamValidDataObject::fillStream | ( | std::ostream & | s | ) | const [virtual, inherited] |
Fill the output stream (ASCII).
Reimplemented from ValidDataObject.
Reimplemented in AlignmentCondition.
bool ParamValidDataObject::exists | ( | const std::string & | name | ) | const [inherited] |
Check if the parameter with the given name exists.
virtual const std::type_info& ParamValidDataObject::type | ( | const std::string & | name | ) | const [virtual, inherited] |
TypeId of the parameter.
bool ParamValidDataObject::is | ( | const std::string & | name | ) | const [inline, inherited] |
Check the type of a parameter (commodity function).
Definition at line 58 of file ParamValidDataObject.h.
bool ParamValidDataObject::isVector | ( | const std::string & | name | ) | const [inherited] |
Check if the parameter is a vector.
virtual std::string ParamValidDataObject::comment | ( | const std::string & | name | ) | const [virtual, inherited] |
Get the comment of a parameter.
virtual void ParamValidDataObject::setComment | ( | const std::string & | name, | |
const char * | comm | |||
) | [virtual, inherited] |
Set the comment of a parameter.
const T& ParamValidDataObject::param | ( | const std::string & | name | ) | const [inline, inherited] |
Give a read-only accessor to a parameter.
Definition at line 73 of file ParamValidDataObject.h.
00073 { 00074 ParamList::const_iterator i = m_paramList.find(name); 00075 if ( i == m_paramList.end() ) throw ParamException(name); 00076 try { 00077 return i->second-> template get<T>(); 00078 } catch (std::bad_cast) { 00079 throw ParamException(name,typeid(T),i->second->type()); 00080 } 00081 }
T& ParamValidDataObject::param | ( | const std::string & | name | ) | [inline, inherited] |
Give a read/write accessor to a parameter.
Definition at line 85 of file ParamValidDataObject.h.
00085 { 00086 ParamList::iterator i = m_paramList.find(name); 00087 if ( i == m_paramList.end() ) throw ParamException(name); 00088 try { 00089 return i->second-> template get<T>(); 00090 } catch (std::bad_cast) { 00091 throw ParamException(name,typeid(T),i->second->type()); 00092 } 00093 }
const std::vector<T>& ParamValidDataObject::paramVect | ( | const std::string & | name | ) | const [inline, inherited] |
Give a read-only accessor to a parameter vector.
Definition at line 97 of file ParamValidDataObject.h.
00097 { 00098 return param<std::vector<T> >(name); 00099 }
std::vector<T>& ParamValidDataObject::paramVect | ( | const std::string & | name | ) | [inline, inherited] |
Give a read/write accessor to a parameter vector.
Definition at line 103 of file ParamValidDataObject.h.
00103 { 00104 return param<std::vector<T> >(name); 00105 }
virtual const std::string& ParamValidDataObject::paramAsString | ( | const std::string & | name | ) | const [virtual, inherited] |
Get the value of a parameter, as a string.
virtual std::string& ParamValidDataObject::paramAsString | ( | const std::string & | name | ) | [virtual, inherited] |
Get the value of a parameter, as a string (non const version).
virtual int ParamValidDataObject::paramAsInt | ( | const std::string & | name | ) | const [virtual, inherited] |
Get the value of a parameter, as an int.
virtual double ParamValidDataObject::paramAsDouble | ( | const std::string & | name | ) | const [virtual, inherited] |
Get the value of a parameter, as a double.
virtual const std::vector<std::string>& ParamValidDataObject::paramAsStringVect | ( | const std::string & | name | ) | const [virtual, inherited] |
Get the value of a parameter, as a string.
virtual std::vector<std::string>& ParamValidDataObject::paramAsStringVect | ( | const std::string & | name | ) | [virtual, inherited] |
Get the value of a parameter, as a string.
virtual const std::vector<int>& ParamValidDataObject::paramAsIntVect | ( | const std::string & | name | ) | const [virtual, inherited] |
Get the value of a parameter, as an int.
virtual std::vector<int>& ParamValidDataObject::paramAsIntVect | ( | const std::string & | name | ) | [virtual, inherited] |
Get the value of a parameter, as an int.
virtual const std::vector<double>& ParamValidDataObject::paramAsDoubleVect | ( | const std::string & | name | ) | const [virtual, inherited] |
Get the value of a parameter, as a double.
virtual std::vector<double>& ParamValidDataObject::paramAsDoubleVect | ( | const std::string & | name | ) | [virtual, inherited] |
Get the value of a parameter, as a double.
virtual std::vector<std::string> ParamValidDataObject::paramNames | ( | ) | const [virtual, inherited] |
Returns list of existing parameter vectors as a vector of their names.
virtual std::string ParamValidDataObject::printParams | ( | ) | const [virtual, inherited] |
Print the parameters on a string.
virtual std::string ParamValidDataObject::paramToString | ( | const std::string & | name, | |
int | precision | |||
) | const [virtual, inherited] |
Convert a parameter to a string (for xml representation).
void ParamValidDataObject::addParam | ( | const std::string & | name, | |
const T & | value, | |||
const std::string & | comment = std::string() | |||
) | [inline, inherited] |
Definition at line 149 of file ParamValidDataObject.h.
00149 { 00150 m_paramList.add(name,value); 00151 if (!comment.empty()) { 00152 m_comments[name] = comment; 00153 } 00154 }
void ParamValidDataObject::addBasicParam | ( | const std::string & | name, | |
const BasicParam * | p, | |||
const std::string & | comment = std::string() | |||
) | [inline, inherited] |
Definition at line 156 of file ParamValidDataObject.h.
00156 { 00157 m_paramList.addBasicParam(name,p); 00158 if (!comment.empty()) { 00159 m_comments[name] = comment; 00160 } 00161 }
virtual bool ValidDataObject::isValid | ( | ) | const [virtual, inherited] |
virtual bool ValidDataObject::isValid | ( | const Gaudi::Time & | t | ) | const [virtual, inherited] |
virtual const Gaudi::Time& ValidDataObject::validSince | ( | ) | const [virtual, inherited] |
virtual const Gaudi::Time& ValidDataObject::validTill | ( | ) | const [virtual, inherited] |
virtual void ValidDataObject::setValidity | ( | const Gaudi::Time & | since, | |
const Gaudi::Time & | till | |||
) | [virtual, inherited] |
virtual void ValidDataObject::setValiditySince | ( | const Gaudi::Time & | since | ) | [virtual, inherited] |
virtual void ValidDataObject::setValidityTill | ( | const Gaudi::Time & | till | ) | [virtual, inherited] |
virtual const UpdateModeFlag& ValidDataObject::updateMode | ( | ) | const [virtual, inherited] |
Return the update mode: ValidDataObject::DEFAULT -> use the actual validity
ValidDataObject::ALWAYS_VALID -> never update ValidDataObject::FORCE_UPDATE -> force an update even if still valid (then back to DEFAULT behaviour).
virtual void ValidDataObject::setUpdateMode | ( | UpdateModeFlag | mode | ) | [virtual, inherited] |
Set the mode for update.
virtual void ValidDataObject::defaultUpdateMode | ( | ) | [virtual, inherited] |
virtual void ValidDataObject::forceUpdateMode | ( | ) | [virtual, inherited] |
virtual void ValidDataObject::neverUpdateMode | ( | ) | [virtual, inherited] |
static const InterfaceID& IDetectorElement::interfaceID | ( | ) | [inline, static, inherited] |
retrieve the unique interface identifier
Reimplemented from IInterface.
Definition at line 54 of file IDetectorElement.h.
00054 { return IID_IDetectorElement; }
friend class DataObjectFactory< DetectorElement > [friend] |
Definition at line 49 of file DetectorElement.h.
IGeometryInfo* DetectorElement::m_de_iGeometry [private] |
Definition at line 335 of file DetectorElement.h.
IAlignment* DetectorElement::m_de_iAlignment [private] |
Definition at line 336 of file DetectorElement.h.
ICalibration* DetectorElement::m_de_iCalibration [private] |
Definition at line 337 of file DetectorElement.h.
IReadOut* DetectorElement::m_de_iReadOut [private] |
Definition at line 338 of file DetectorElement.h.
ISlowControl* DetectorElement::m_de_iSlowControl [private] |
Definition at line 339 of file DetectorElement.h.
IFastControl* DetectorElement::m_de_iFastControl [private] |
Definition at line 340 of file DetectorElement.h.
ConditionMap DetectorElement::m_de_conditions [private] |
bool DetectorElement::m_de_childrensLoaded [mutable, private] |
Definition at line 345 of file DetectorElement.h.
IDetectorElement::IDEContainer DetectorElement::m_de_childrens [mutable, private] |
Definition at line 346 of file DetectorElement.h.
DetDesc::Services* DetectorElement::m_services [private] |