List of all members | Classes | Public Types | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Friends
cdet::CDetector Class Reference

Detector description interface for CDetector-related data. More...

#include "cdet/CDetector.h"

Classes

class  StationIterator
 

Public Types

typedef std::map< int,
std::set< int > > 
StationGroups
 StationGroups: map key = groupId, value = stationId set. More...
 
typedef
StationGroups::const_iterator 
StationGroupsIterator
 

Public Member Functions

StationIterator AllStationsBegin () const
 Beginning of the collection of pointers to all stations in the history of the array. More...
 
StationIterator AllStationsEnd () const
 End of the collection of pointers to all stations in the history of the array. More...
 
const StationGetAllStation (const int stationId) const
 
const std::vector< int > & GetDenseStationList () const
 
const std::vector< int > & GetFullStationList () const
 Get list of ID's for all stations available in the database or configuration file. More...
 
const StationGetStation (const int stationId) const
 Get station by Station Id. More...
 
const StationGetStation (const cevt::Station &station) const
 Get cdet::Station from a cevt::Station. More...
 
const StationGroupsGetStationGroups () const
 
StationIterator GridStationsEnd () const
 End of the collection of pointers to commissioned stations in a specific grid. More...
 
bool IsStationCommissioned (const int stationId) const
 Check if station with id is commisioned. More...
 
bool IsStationDense (const int stationId) const
 Check if station is Dense. More...
 
StationIterator StationsBegin () const
 Beginning of the collection of pointers to commissioned stations. More...
 
StationIterator StationsEnd () const
 End of the collection of pointers to commissioned stations. More...
 

Public Attributes

StationIterator const
 Beginning of the collection of pointers to commissioned stations in a specific grid. More...
 

Private Types

typedef
InternalStationMap::const_iterator 
InternalStationIterator
 
typedef std::map< int, const
cdet::Station * > 
InternalStationMap
 

Private Member Functions

 CDetector ()
 
 CDetector (const CDetector &cdetector)
 
void FetchStationGroups () const
 
CDetectoroperator= (const CDetector &cdetector)
 
void Update ()
 
void UpdateDense ()
 
 ~CDetector ()
 

Private Attributes

InternalStationMap fCommissionedStationList
 
std::vector< int > fDenseStationSubList
 
utl::Validated< std::vector
< int > > 
fFullStationList
 
InternalStationMap fFullStationMap
 
StationGroups fStationGroups
 

Friends

class det::Detector
 

Detailed Description

Detector description interface for CDetector-related data.

Author
T. Paul
Adapted by B. Tome for MARTA
Date
27 Nov 2012

Definition at line 40 of file CDetector.h.

Member Typedef Documentation

typedef InternalStationMap::const_iterator cdet::CDetector::InternalStationIterator
private

Definition at line 44 of file CDetector.h.

typedef std::map<int, const cdet::Station*> cdet::CDetector::InternalStationMap
private

Definition at line 43 of file CDetector.h.

typedef std::map<int, std::set<int> > cdet::CDetector::StationGroups

StationGroups: map key = groupId, value = stationId set.

Definition at line 164 of file CDetector.h.

typedef StationGroups::const_iterator cdet::CDetector::StationGroupsIterator

Definition at line 165 of file CDetector.h.

Constructor & Destructor Documentation

cdet::CDetector::CDetector ( )
inlineprivate

Definition at line 170 of file CDetector.h.

CDetector::~CDetector ( )
private

Definition at line 23 of file CDetector.cc.

cdet::CDetector::CDetector ( const CDetector cdetector)
private

Member Function Documentation

StationIterator cdet::CDetector::AllStationsBegin ( ) const
inline

Beginning of the collection of pointers to all stations in the history of the array.

Use this iterator if you want to step through all stations that ever existed in the array (the current detector time is ignored)

Definition at line 130 of file CDetector.h.

References fFullStationMap.

StationIterator cdet::CDetector::AllStationsEnd ( ) const
inline

End of the collection of pointers to all stations in the history of the array.

Use this iterator if you want to step through all stations that ever existed in the array (the current detector time is ignored)

Definition at line 136 of file CDetector.h.

References fFullStationMap.

void CDetector::FetchStationGroups ( ) const
private

Definition at line 150 of file CDetector.cc.

References det::VManager::GetData(), and WARNING.

const Station & CDetector::GetAllStation ( const int  stationId) const

Definition at line 288 of file CDetector.cc.

const std::vector<int>& cdet::CDetector::GetDenseStationList ( ) const
inline

Definition at line 160 of file CDetector.h.

References fDenseStationSubList.

const vector< int > & CDetector::GetFullStationList ( ) const

Get list of ID's for all stations available in the database or configuration file.

This method loads the ID's of all stations available in the relevant XML file and/or database. These ID's can then be used when searching through available stations for those with desired quantities, such as a commission time before the current "detector time". By doing it this way, we do not have to hardwire upper and lower bounds on the station ID's anyplace in the code - instead they are determined from the available data.

Definition at line 101 of file CDetector.cc.

References DEBUGLOG, det::VManager::GetData(), and INFO.

const Station & CDetector::GetStation ( const int  stationId) const
const Station & CDetector::GetStation ( const cevt::Station station) const

Get cdet::Station from a cevt::Station.

Definition at line 184 of file CDetector.cc.

References cevt::Station::GetId().

const StationGroups& cdet::CDetector::GetStationGroups ( ) const
inline

Definition at line 167 of file CDetector.h.

References fStationGroups.

StationIterator cdet::CDetector::GridStationsEnd ( ) const
inline

End of the collection of pointers to commissioned stations in a specific grid.

Use this iterator if you want to step through only those stations that were commissioned for the current detector time and belong to a certain grid

Definition at line 125 of file CDetector.h.

References StationsEnd().

bool cdet::CDetector::IsStationCommissioned ( const int  stationId) const
inline

Check if station with id is commisioned.

Definition at line 141 of file CDetector.h.

References fCommissionedStationList.

bool cdet::CDetector::IsStationDense ( const int  stationId) const
inline

Check if station is Dense.

Definition at line 145 of file CDetector.h.

References fDenseStationSubList.

CDetector& cdet::CDetector::operator= ( const CDetector cdetector)
private
StationIterator cdet::CDetector::StationsBegin ( ) const
inline

Beginning of the collection of pointers to commissioned stations.

Use this iterator if you want to step through only those stations that were commissioned for the current detector time

Definition at line 101 of file CDetector.h.

References fCommissionedStationList.

StationIterator cdet::CDetector::StationsEnd ( ) const
inline

End of the collection of pointers to commissioned stations.

Use this iterator if you want to step through only those stations that were commissioned for the current detector time

Definition at line 107 of file CDetector.h.

References fCommissionedStationList.

Referenced by GridStationsEnd().

void CDetector::Update ( )
private
void CDetector::UpdateDense ( )
private

Definition at line 32 of file CDetector.cc.

References Update().

Friends And Related Function Documentation

friend class det::Detector
friend

Definition at line 195 of file CDetector.h.

Member Data Documentation

StationIterator cdet::CDetector::const
Initial value:
{
return StationIterator(fCommissionedStationList.begin(),
index)

Beginning of the collection of pointers to commissioned stations in a specific grid.

Use this iterator if you want to step through only those stations that were commissioned for the current detector time and belong to a certain grid

Definition at line 116 of file CDetector.h.

InternalStationMap cdet::CDetector::fCommissionedStationList
mutableprivate

Definition at line 183 of file CDetector.h.

Referenced by IsStationCommissioned(), StationsBegin(), and StationsEnd().

std::vector<int> cdet::CDetector::fDenseStationSubList
mutableprivate

Definition at line 193 of file CDetector.h.

Referenced by GetDenseStationList(), and IsStationDense().

utl::Validated<std::vector<int> > cdet::CDetector::fFullStationList
mutableprivate

Definition at line 188 of file CDetector.h.

InternalStationMap cdet::CDetector::fFullStationMap
mutableprivate

Definition at line 189 of file CDetector.h.

Referenced by AllStationsBegin(), and AllStationsEnd().

StationGroups cdet::CDetector::fStationGroups
mutableprivate

Definition at line 190 of file CDetector.h.

Referenced by GetStationGroups().


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.