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 Station & | GetAllStation (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 Station & | GetStation (const int stationId) const |
Get station by Station Id. More... | |
const Station & | GetStation (const cevt::Station &station) const |
Get cdet::Station from a cevt::Station. More... | |
const StationGroups & | GetStationGroups () 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 |
CDetector & | operator= (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 |
Detector description interface for CDetector-related data.
Definition at line 40 of file CDetector.h.
|
private |
Definition at line 44 of file CDetector.h.
|
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.
|
inlineprivate |
Definition at line 170 of file CDetector.h.
|
private |
Definition at line 23 of file CDetector.cc.
|
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.
|
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.
|
private |
Definition at line 150 of file CDetector.cc.
References det::VManager::GetData(), and WARNING.
Definition at line 288 of file CDetector.cc.
|
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.
Get station by Station Id.
Definition at line 192 of file CDetector.cc.
References det::Detector::GetCManagerRegister(), cdet::Station::GetCommissionTimeRange(), det::VManager::GetData(), det::Detector::GetTime(), cdet::Station::IsDense(), cdet::Station::Update(), and WARNING.
Referenced by RPCElectronicsSimulatorLX::RPCElectronicsSimulator::Run(), and RPCSimulatorLX::RPCSimulator::Run().
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().
|
inline |
Definition at line 167 of file CDetector.h.
References fStationGroups.
|
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().
|
inline |
Check if station with id is commisioned.
Definition at line 141 of file CDetector.h.
References fCommissionedStationList.
|
inline |
Check if station is Dense.
Definition at line 145 of file CDetector.h.
References fDenseStationSubList.
|
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.
|
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().
|
private |
Definition at line 43 of file CDetector.cc.
References cdet::Station::fDense, cdet::Station::fInGrid, cdet::Station::GetCommissionTimeRange(), and cdet::Station::Update().
|
private |
Definition at line 32 of file CDetector.cc.
References Update().
|
friend |
Definition at line 195 of file CDetector.h.
StationIterator cdet::CDetector::const |
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.
|
mutableprivate |
Definition at line 183 of file CDetector.h.
Referenced by IsStationCommissioned(), StationsBegin(), and StationsEnd().
|
mutableprivate |
Definition at line 193 of file CDetector.h.
Referenced by GetDenseStationList(), and IsStationDense().
|
mutableprivate |
Definition at line 188 of file CDetector.h.
|
mutableprivate |
Definition at line 189 of file CDetector.h.
Referenced by AllStationsBegin(), and AllStationsEnd().
|
mutableprivate |
Definition at line 190 of file CDetector.h.
Referenced by GetStationGroups().