Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SIO::SIOLCParameters Class Reference

#include <SIOLCParameters.h>

Inheritance diagram for SIO::SIOLCParameters:

IMPL::LCParametersImpl EVENT::LCParameters IMPL::AccessChecked List of all members.

Public Member Functions

virtual int getIntVal (const std::string &key) const
virtual float getFloatVal (const std::string &key) const
virtual const std::string & getStringVal (const std::string &key) const
virtual EVENT::IntVecgetIntVals (const std::string &key, EVENT::IntVec &values) const
virtual IntVecgetIntVals (const std::string &key, IntVec &values) const =0
virtual EVENT::FloatVecgetFloatVals (const std::string &key, EVENT::FloatVec &values) const
virtual FloatVecgetFloatVals (const std::string &key, FloatVec &values) const =0
virtual EVENT::StringVecgetStringVals (const std::string &key, EVENT::StringVec &values) const
virtual StringVecgetStringVals (const std::string &key, StringVec &values) const =0
virtual const EVENT::StringVecgetIntKeys (EVENT::StringVec &keys) const
virtual const StringVecgetIntKeys (StringVec &keys) const =0
virtual const EVENT::StringVecgetFloatKeys (EVENT::StringVec &keys) const
virtual const StringVecgetFloatKeys (StringVec &keys) const =0
virtual const EVENT::StringVecgetStringKeys (EVENT::StringVec &keys) const
virtual const StringVecgetStringKeys (StringVec &keys) const =0
virtual int getNInt (const std::string &key) const
virtual int getNFloat (const std::string &key) const
virtual int getNString (const std::string &key) const
virtual void setValue (const std::string &key, int value)
virtual void setValue (const std::string &key, float value)
virtual void setValue (const std::string &key, const std::string &value)
virtual void setValues (const std::string &key, EVENT::IntVec &values)
virtual void setValues (const std::string &key, EVENT::FloatVec &values)
virtual void setValues (const std::string &key, EVENT::StringVec &values)
virtual void setValues (const std::string &key, IntVec &values)=0
virtual void setValues (const std::string &key, FloatVec &values)=0
virtual void setValues (const std::string &key, StringVec &values)=0
virtual int simpleUID () const

Static Public Member Functions

unsigned int read (SIO_stream *stream, LCParameters &params, unsigned int vers)
unsigned int write (SIO_stream *stream, const LCParameters &params)

Protected Member Functions

virtual void setReadOnly (bool readOnly)
void checkAccess () throw ( EVENT::ReadOnlyException )
void checkAccess (const char *what) throw ( EVENT::ReadOnlyException )

Protected Attributes

IntMap _intMap
FloatMap _floatMap
StringMap _stringMap
bool _readOnly
int _id

Detailed Description

IO of LCParameters.

Author:
gaede
Version:
Id
SIOLCParameters.h,v 1.4 2005/04/15 08:37:42 gaede Exp

Definition at line 16 of file SIOLCParameters.h.


Member Function Documentation

void IMPL::AccessChecked::checkAccess const char *  what  )  throw ( EVENT::ReadOnlyException ) [protected, inherited]
 

Definition at line 20 of file AccessChecked.cc.

void IMPL::AccessChecked::checkAccess  )  throw ( EVENT::ReadOnlyException ) [protected, inherited]
 

Definition at line 16 of file AccessChecked.cc.

Referenced by IMPL::TrackerRawDataImpl::adcValues(), IMPL::ReconstructedParticleImpl::addCluster(), IMPL::ClusterImpl::addCluster(), IMPL::MCParticleImpl::addDaughter(), IMPL::SimCalorimeterHitImpl::addMCParticleContribution(), IMPL::VertexImpl::addParameter(), IMPL::ParticleIDImpl::addParameter(), IMPL::MCParticleImpl::addParent(), IMPL::ReconstructedParticleImpl::addParticle(), IMPL::ReconstructedParticleImpl::addParticleID(), IMPL::ClusterImpl::addParticleID(), IMPL::TrackImpl::addTrack(), IMPL::ReconstructedParticleImpl::addTrack(), IMPL::TrackerDataImpl::chargeValues(), IMPL::TrackerHitImpl::rawHits(), IMPL::TrackerRawDataImpl::setADCValues(), IMPL::VertexImpl::setAlgorithmType(), IMPL::ParticleIDImpl::setAlgorithmType(), IMPL::RawCalorimeterHitImpl::setAmplitude(), IMPL::VertexImpl::setAssociatedParticle(), IMPL::TPCHitImpl::setCellID(), IMPL::SimTrackerHitImpl::setCellID(), IMPL::TrackerRawDataImpl::setCellID0(), IMPL::TrackerPulseImpl::setCellID0(), IMPL::TrackerDataImpl::setCellID0(), IMPL::SimCalorimeterHitImpl::setCellID0(), IMPL::RawCalorimeterHitImpl::setCellID0(), IMPL::CalorimeterHitImpl::setCellID0(), IMPL::TrackerRawDataImpl::setCellID1(), IMPL::TrackerPulseImpl::setCellID1(), IMPL::TrackerDataImpl::setCellID1(), IMPL::SimCalorimeterHitImpl::setCellID1(), IMPL::RawCalorimeterHitImpl::setCellID1(), IMPL::CalorimeterHitImpl::setCellID1(), IMPL::TrackerPulseImpl::setCharge(), IMPL::TPCHitImpl::setCharge(), IMPL::ReconstructedParticleImpl::setCharge(), IMPL::MCParticleImpl::setCharge(), IMPL::TrackerDataImpl::setChargeValues(), IMPL::VertexImpl::setChi2(), IMPL::TrackImpl::setChi2(), IMPL::VertexImpl::setCovMatrix(), IMPL::TrackImpl::setCovMatrix(), IMPL::TrackerHitImpl::setCovMatrix(), IMPL::ReconstructedParticleImpl::setCovMatrix(), IMPL::TrackImpl::setD0(), IMPL::TrackImpl::setdEdx(), IMPL::TrackerHitImpl::setdEdx(), IMPL::SimTrackerHitImpl::setdEdx(), IMPL::TrackImpl::setdEdxError(), IMPL::LCRunHeaderImpl::setDescription(), IMPL::LCRunHeaderImpl::setDetectorName(), IMPL::LCEventImpl::setDetectorName(), IMPL::ClusterImpl::setDirectionError(), IMPL::MCParticleImpl::setEndpoint(), IMPL::SimCalorimeterHitImpl::setEnergy(), IMPL::ReconstructedParticleImpl::setEnergy(), IMPL::ClusterImpl::setEnergy(), IMPL::CalorimeterHitImpl::setEnergy(), IMPL::LCEventImpl::setEventNumber(), IMPL::MCParticleImpl::setGeneratorStatus(), IMPL::ReconstructedParticleImpl::setGoodnessOfPID(), IMPL::ClusterImpl::setIPhi(), IMPL::TrackImpl::setIsReferencePointPCA(), IMPL::ClusterImpl::setITheta(), IMPL::ParticleIDImpl::setLikelihood(), IMPL::ReconstructedParticleImpl::setMass(), IMPL::MCParticleImpl::setMass(), IMPL::SimTrackerHitImpl::setMCParticle(), IMPL::SimTrackerHitImpl::setMomentum(), IMPL::ReconstructedParticleImpl::setMomentum(), IMPL::MCParticleImpl::setMomentum(), IMPL::TrackImpl::setNdf(), IMPL::TrackImpl::setOmega(), IMPL::ReconstructedParticleImpl::setParticleIDUsed(), IMPL::SimTrackerHitImpl::setPathLength(), IMPL::ParticleIDImpl::setPDG(), IMPL::MCParticleImpl::setPDG(), IMPL::TrackImpl::setPhi(), IMPL::VertexImpl::setPosition(), IMPL::TrackerHitImpl::setPosition(), IMPL::SimTrackerHitImpl::setPosition(), IMPL::SimCalorimeterHitImpl::setPosition(), IMPL::ClusterImpl::setPosition(), IMPL::CalorimeterHitImpl::setPosition(), IMPL::ClusterImpl::setPositionError(), IMPL::VertexImpl::setPrimary(), IMPL::VertexImpl::setProbability(), IMPL::TrackerPulseImpl::setQuality(), IMPL::TPCHitImpl::setQuality(), IMPL::TrackerPulseImpl::setQualityBit(), IMPL::TrackImpl::setRadiusOfInnermostHit(), IMPL::TPCHitImpl::setRawData(), IMPL::CalorimeterHitImpl::setRawHit(), IMPL::TrackImpl::setReferencePoint(), IMPL::ReconstructedParticleImpl::setReferencePoint(), IMPL::LCRunHeaderImpl::setRunNumber(), IMPL::LCEventImpl::setRunNumber(), IMPL::ClusterImpl::setShape(), IMPL::MCParticleImpl::setSimulatorStatus(), IMPL::ReconstructedParticleImpl::setStartVertex(), IMPL::TrackImpl::setTanLambda(), IMPL::TrackerRawDataImpl::setTime(), IMPL::TrackerPulseImpl::setTime(), IMPL::TrackerHitImpl::setTime(), IMPL::TrackerDataImpl::setTime(), IMPL::TPCHitImpl::setTime(), IMPL::SimTrackerHitImpl::setTime(), IMPL::MCParticleImpl::setTime(), IMPL::CalorimeterHitImpl::setTime(), IMPL::RawCalorimeterHitImpl::setTimeStamp(), IMPL::LCEventImpl::setTimeStamp(), IMPL::TrackerPulseImpl::setTrackerData(), IMPL::TrackImpl::setType(), IMPL::TrackerHitImpl::setType(), IMPL::ReconstructedParticleImpl::setType(), IMPL::ParticleIDImpl::setType(), IMPL::ClusterImpl::setType(), IMPL::CalorimeterHitImpl::setType(), IMPL::TrackImpl::setTypeBit(), IMPL::ClusterImpl::setTypeBit(), IMPL::LCParametersImpl::setValue(), IMPL::LCParametersImpl::setValues(), IMPL::MCParticleImpl::setVertex(), IMPL::TrackImpl::setZ0(), IMPL::ClusterImpl::subdetectorEnergies(), and IMPL::TrackImpl::subdetectorHitNumbers().

virtual const StringVec& EVENT::LCParameters::getFloatKeys StringVec keys  )  const [pure virtual, inherited]
 

Returns a list of all keys of float parameters.

Referenced by UTIL::LCTOOLS::printParameters(), and write().

const StringVec & IMPL::LCParametersImpl::getFloatKeys EVENT::StringVec keys  )  const [virtual, inherited]
 

Returns a list of all keys of float parameters.

Definition at line 92 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_floatMap, and EVENT::StringVec.

float IMPL::LCParametersImpl::getFloatVal const std::string &  key  )  const [virtual, inherited]
 

Returns the first float value for the given key.

Implements EVENT::LCParameters.

Definition at line 25 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_floatMap, and EVENT::FloatVec.

virtual FloatVec& EVENT::LCParameters::getFloatVals const std::string &  key,
FloatVec values
const [pure virtual, inherited]
 

Adds all float values for the given key to values. Returns a reference to values for convenience.

Referenced by UTIL::LCTOOLS::printParameters(), and write().

FloatVec & IMPL::LCParametersImpl::getFloatVals const std::string &  key,
EVENT::FloatVec values
const [virtual, inherited]
 

Adds all float values for the given key to values. Returns a reference to values for convenience.

Definition at line 60 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_floatMap, and EVENT::FloatVec.

virtual const StringVec& EVENT::LCParameters::getIntKeys StringVec keys  )  const [pure virtual, inherited]
 

Returns a list of all keys of integer parameters.

Referenced by UTIL::LCTOOLS::printParameters(), and write().

const StringVec & IMPL::LCParametersImpl::getIntKeys EVENT::StringVec keys  )  const [virtual, inherited]
 

Returns a list of all keys of integer parameters.

Definition at line 81 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_intMap, and EVENT::StringVec.

int IMPL::LCParametersImpl::getIntVal const std::string &  key  )  const [virtual, inherited]
 

Returns the first integer value for the given key.

Implements EVENT::LCParameters.

Definition at line 14 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_intMap, and EVENT::IntVec.

virtual IntVec& EVENT::LCParameters::getIntVals const std::string &  key,
IntVec values
const [pure virtual, inherited]
 

Adds all integer values for the given key to values. Returns a reference to values for convenience.

Referenced by UTIL::IndexMap::IndexMap(), UTIL::LCTOOLS::printParameters(), and write().

IntVec & IMPL::LCParametersImpl::getIntVals const std::string &  key,
EVENT::IntVec values
const [virtual, inherited]
 

Adds all integer values for the given key to values. Returns a reference to values for convenience.

Definition at line 49 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_intMap, and EVENT::IntVec.

int IMPL::LCParametersImpl::getNFloat const std::string &  key  )  const [virtual, inherited]
 

The number of float values stored for this key.

Implements EVENT::LCParameters.

Definition at line 122 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_floatMap.

int IMPL::LCParametersImpl::getNInt const std::string &  key  )  const [virtual, inherited]
 

The number of integer values stored for this key.

Implements EVENT::LCParameters.

Definition at line 112 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_intMap.

int IMPL::LCParametersImpl::getNString const std::string &  key  )  const [virtual, inherited]
 

The number of string values stored for this key.

Implements EVENT::LCParameters.

Definition at line 132 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_stringMap.

virtual const StringVec& EVENT::LCParameters::getStringKeys StringVec keys  )  const [pure virtual, inherited]
 

Returns a list of all keys of string parameters.

Referenced by UTIL::LCTOOLS::printParameters(), and write().

const StringVec & IMPL::LCParametersImpl::getStringKeys EVENT::StringVec keys  )  const [virtual, inherited]
 

Returns a list of all keys of string parameters.

Definition at line 102 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_stringMap, and EVENT::StringVec.

const std::string & IMPL::LCParametersImpl::getStringVal const std::string &  key  )  const [virtual, inherited]
 

Returns the first string value for the given key.

Implements EVENT::LCParameters.

Definition at line 36 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_stringMap, and EVENT::StringVec.

virtual StringVec& EVENT::LCParameters::getStringVals const std::string &  key,
StringVec values
const [pure virtual, inherited]
 

Adds all float values for the given key to values. Returns a reference to values for convenience.

Referenced by UTIL::IndexMap::IndexMap(), SIO::SIOVertexHandler::init(), UTIL::LCTOOLS::printParameters(), and write().

StringVec & IMPL::LCParametersImpl::getStringVals const std::string &  key,
EVENT::StringVec values
const [virtual, inherited]
 

Adds all float values for the given key to values. Returns a reference to values for convenience.

Definition at line 70 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_stringMap, and EVENT::StringVec.

unsigned int SIO::SIOLCParameters::read SIO_stream stream,
LCParameters params,
unsigned int  vers
[static]
 

Reads objects from an SIO stream.

Definition at line 13 of file SIOLCParameters.cc.

References EVENT::FloatVec, EVENT::IntVec, LCSIO_READ, EVENT::LCParameters::setValues(), SIO_DATA, and EVENT::StringVec.

void IMPL::AccessChecked::setReadOnly bool  readOnly  )  [protected, virtual, inherited]
 

Reimplemented in IMPL::LCCollectionVec, and IMPL::LCRunHeaderImpl.

Definition at line 14 of file AccessChecked.cc.

References IMPL::AccessChecked::_readOnly.

Referenced by IMPL::LCEventImpl::setAccessMode(), and IMPL::LCCollectionVec::setReadOnly().

void IMPL::LCParametersImpl::setValue const std::string &  key,
const std::string &  value
[virtual, inherited]
 

Set string value for the given key.

Implements EVENT::LCParameters.

Definition at line 156 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_stringMap, and IMPL::AccessChecked::checkAccess().

void IMPL::LCParametersImpl::setValue const std::string &  key,
float  value
[virtual, inherited]
 

Set float value for the given key.

Implements EVENT::LCParameters.

Definition at line 149 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_floatMap, and IMPL::AccessChecked::checkAccess().

void IMPL::LCParametersImpl::setValue const std::string &  key,
int  value
[virtual, inherited]
 

Set integer value for the given key.

Implements EVENT::LCParameters.

Definition at line 142 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_intMap, and IMPL::AccessChecked::checkAccess().

virtual void EVENT::LCParameters::setValues const std::string &  key,
StringVec values
[pure virtual, inherited]
 

Set string values for the given key.

virtual void EVENT::LCParameters::setValues const std::string &  key,
FloatVec values
[pure virtual, inherited]
 

Set float values for the given key.

virtual void EVENT::LCParameters::setValues const std::string &  key,
IntVec values
[pure virtual, inherited]
 

Set integer values for the given key.

Referenced by UTIL::IndexMap::encode(), SIO::SIOVertexHandler::init(), and read().

void IMPL::LCParametersImpl::setValues const std::string &  key,
EVENT::StringVec values
[virtual, inherited]
 

Set string values for the given key.

Definition at line 186 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_stringMap, and IMPL::AccessChecked::checkAccess().

void IMPL::LCParametersImpl::setValues const std::string &  key,
EVENT::FloatVec values
[virtual, inherited]
 

Set float values for the given key.

Definition at line 176 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_floatMap, and IMPL::AccessChecked::checkAccess().

void IMPL::LCParametersImpl::setValues const std::string &  key,
EVENT::IntVec values
[virtual, inherited]
 

Set integer values for the given key.

Definition at line 166 of file LCParametersImpl.cc.

References IMPL::LCParametersImpl::_intMap, and IMPL::AccessChecked::checkAccess().

virtual int IMPL::AccessChecked::simpleUID  )  const [inline, virtual, inherited]
 

Definition at line 24 of file AccessChecked.h.

unsigned int SIO::SIOLCParameters::write SIO_stream stream,
const LCParameters params
[static]
 

Writes lcio objects to an SIO stream.

Definition at line 88 of file SIOLCParameters.cc.

References EVENT::FloatVec, EVENT::LCParameters::getFloatKeys(), EVENT::LCParameters::getFloatVals(), EVENT::LCParameters::getIntKeys(), EVENT::LCParameters::getIntVals(), EVENT::LCParameters::getStringKeys(), EVENT::LCParameters::getStringVals(), EVENT::IntVec, LCSIO_WRITE, SIO_DATA, and EVENT::StringVec.


Member Data Documentation

FloatMap IMPL::LCParametersImpl::_floatMap [mutable, protected, inherited]
 

Definition at line 127 of file LCParametersImpl.h.

Referenced by IMPL::LCParametersImpl::getFloatKeys(), IMPL::LCParametersImpl::getFloatVal(), IMPL::LCParametersImpl::getFloatVals(), IMPL::LCParametersImpl::getNFloat(), IMPL::LCParametersImpl::setValue(), and IMPL::LCParametersImpl::setValues().

int IMPL::AccessChecked::_id [protected, inherited]
 

Definition at line 34 of file AccessChecked.h.

Referenced by IMPL::AccessChecked::AccessChecked().

IntMap IMPL::LCParametersImpl::_intMap [mutable, protected, inherited]
 

Definition at line 126 of file LCParametersImpl.h.

Referenced by IMPL::LCParametersImpl::getIntKeys(), IMPL::LCParametersImpl::getIntVal(), IMPL::LCParametersImpl::getIntVals(), IMPL::LCParametersImpl::getNInt(), IMPL::LCParametersImpl::setValue(), and IMPL::LCParametersImpl::setValues().

bool IMPL::AccessChecked::_readOnly [protected, inherited]
 

Definition at line 33 of file AccessChecked.h.

Referenced by IMPL::AccessChecked::setReadOnly().

StringMap IMPL::LCParametersImpl::_stringMap [mutable, protected, inherited]
 

Definition at line 128 of file LCParametersImpl.h.

Referenced by IMPL::LCParametersImpl::getNString(), IMPL::LCParametersImpl::getStringKeys(), IMPL::LCParametersImpl::getStringVal(), IMPL::LCParametersImpl::getStringVals(), IMPL::LCParametersImpl::setValue(), and IMPL::LCParametersImpl::setValues().


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 06:32:32 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1