1 #ifndef _mdet_MDetector_h_
2 #define _mdet_MDetector_h_
4 #include <det/Detector.h>
5 #include <mdet/MComponentGroup.h>
6 #include <mdet/Counter.h>
7 #include <utl/ShadowPtr.h>
11 #include <boost/utility.hpp>
64 void Update(
bool invalidateData =
true,
bool invalidateComponents =
true);
182 #endif // _mdet_MDetector_h_
Defines within it the common (templated) type for muon detector hierarchy components groups...
Detector description interface for Station-related data.
CounterConstIterator CountersEnd() const
End iterator over the counters.
CounterGroup fCounters
The child components.
AssociationMap fAssociatedCountersIds
Cache of ids.
Detector associated to muon detector hierarchy.
std::map< int, utl::ShadowPtr< int > > AssociationMap
Typedef for ease of programming.
const int * LookUpAssociatedCounter(int tankId) const
Resolve a pointer to the counter id.
Top of the hierarchy of the detector description interface.
CounterConstIterator AllCountersBegin() const
Begin iterator over all the counters.
Root detector of the muon detector hierarchy.
bool ExistsAssociatedCounter(int tankId) const
Tells whether there's an associated counter for a sdet::Station.
CounterGroup::ConstIterator CounterConstIterator
Defines a more meaningful (and shorter) type for iterators.
MComponentGroup< MDetector, Counter, det::IdOnlyCreator >::Type CounterGroup
Type for the associated Counters group.
CounterConstIterator AllCountersEnd() const
End iterator over all the counters.
int GetAssociatedCounterId(int tankId) const
Resolve the associated counter given an id for a sdet::Station.
CounterConstIterator CountersBegin() const
Begin iterator over the counters.
const Counter & GetCounter(int id) const
Retrieve Counter by id.
bool ExistsCounter(int id) const
Check Counter existence by id.
void Update(bool invalidateData=true, bool invalidateComponents=true)
Perform detector update.