1 #ifndef _cdet_CDetector_h_
2 #define _cdet_CDetector_h_
10 #include <cdet/Station.h>
11 #include <boost/iterator/transform_iterator.hpp>
12 #include <utl/Validated.h>
20 class NonExistentComponentException;
49 public std::iterator<std::input_iterator_tag, const cdet::Station&, ptrdiff_t, const cdet::Station*, const cdet::Station& > {
StationIterator & operator++()
std::map< int, std::set< int > > StationGroups
StationGroups: map key = groupId, value = stationId set.
StationIterator(const InternalStationIterator &it)
StationIterator GridStationsEnd() const
End of the collection of pointers to commissioned stations in a specific grid.
InternalStationMap::const_iterator InternalStationIterator
Detector description interface for CDetector-related data.
const std::vector< int > & GetDenseStationList() const
CDetectorConstants::GridIndex fIndex
std::vector< int > fDenseStationSubList
bool operator==(const StationIterator &other) const
Wrapper class for initially unset data.
StationIterator AllStationsEnd() const
End of the collection of pointers to all stations in the history of the array.
Detector description interface for MARTA Station-related data.
InternalStationMap fCommissionedStationList
StationIterator StationsEnd() const
End of the collection of pointers to commissioned stations.
const Station & GetAllStation(const int stationId) const
InternalStationIterator fInternalIterator
StationIterator StationsBegin() const
Beginning of the collection of pointers to commissioned stations.
bool IsStationCommissioned(const int stationId) const
Check if station with id is commisioned.
StationIterator AllStationsBegin() const
Beginning of the collection of pointers to all stations in the history of the array.
Top of the hierarchy of the detector description interface.
const Station & operator*() const
void FetchStationGroups() const
StationGroups fStationGroups
bool IsStationDense(const int stationId) const
Check if station is Dense.
CDetector & operator=(const CDetector &cdetector)
const Station & GetStation(const int stationId) const
Get station by Station Id.
utl::Validated< std::vector< int > > fFullStationList
bool operator!=(const StationIterator &other) const
const Station * operator->() const
std::map< int, const cdet::Station * > InternalStationMap
class to hold data at Station level
const StationGroups & GetStationGroups() const
const std::vector< int > & GetFullStationList() const
Get list of ID's for all stations available in the database or configuration file.
StationGroups::const_iterator StationGroupsIterator
InternalStationIterator fEnd
InternalStationMap fFullStationMap
StationIterator(const InternalStationIterator &begin, const InternalStationIterator &end, const CDetectorConstants::GridIndex index)