ATLAS Offline Software
|
#include <ChamberViewer.h>
Classes | |
struct | ref_trait |
Type trait to find the proper refernce type for the lambda function access. More... | |
Public Types | |
using | value_type = typename HitObjContainer::value_type |
using | element_type = typename std::remove_pointer_t< value_type > |
using | const_ref = ref_trait< value_type >::type |
using | ViewMode = ChamberView::Mode |
Public Member Functions | |
template<typename HitObjType > | |
requires (std::is_pointer_v< HitObjType >) struct ref_trait< HitObjType > | |
Branch if the input value type is a pointer. More... | |
template<typename HitObjType > | |
requires (!std::is_pointer_v< HitObjType >) struct ref_trait< HitObjType > | |
Branch if the input value is an object. More... | |
ChamberViewer (const HitObjContainer &container) noexcept | |
Standard constructor. More... | |
ChamberViewer (const HitObjContainer &container, const Muon::IMuonIdHelperSvc *idHelperSvc, const ViewMode mode=ViewMode::DetElement) noexcept | |
Standard constructor. More... | |
ChamberViewer (const ChamberViewer &other)=delete | |
Delete the copy constructor. More... | |
ChamberViewer & | operator= (const ChamberViewer &other)=delete |
Delete the copy assignment operator. More... | |
ChamberViewer (ChamberViewer &&other)=default | |
Standard move constructor. More... | |
ChamberViewer & | operator= (ChamberViewer &&other)=default |
Standard move operator. More... | |
HitObjContainer::const_iterator | begin () const noexcept |
Begin iterator of the current chamber view. More... | |
HitObjContainer::const_iterator | end () const noexcept |
End iterator of the current chamber view. More... | |
std::size_t | size () const noexcept |
Returns how many hits are in the current chamber. More... | |
HitObjContainer::const_iterator::reference | at (const std::size_t idx) const |
Returns the i-the measurement from the current chamber. More... | |
bool | next () noexcept |
Loads the hits from the next chamber. More... | |
bool | loadView (const Identifier &chamberId) |
Loads the view matching the parsed identifier. More... | |
bool | loadView (const IdentifierHash &idHash) |
Loads the view matching the parsed IdentifierHash. More... | |
bool | loadView (std::function< bool(const_ref)> selector) |
Private Member Functions | |
IdentifierHash | idHash (const Identifier &id) const |
Returns the IdentifierHash from an Identifier. More... | |
Private Attributes | |
const HitObjContainer & | m_container |
const Muon::IMuonIdHelperSvc * | m_idHelperSvc {nullptr} |
const ViewMode | m_mode {ViewMode::DetElement} |
DetectorIDHashType | m_currentHash {0} |
HitObjContainer::const_iterator | m_end {m_container.begin()} |
HitObjContainer::const_iterator | m_begin {m_container.begin()} |
Definition at line 65 of file ChamberViewer.h.
using xAOD::ChamberViewer< HitObjContainer >::const_ref = ref_trait<value_type>::type |
Definition at line 87 of file ChamberViewer.h.
using xAOD::ChamberViewer< HitObjContainer >::element_type = typename std::remove_pointer_t<value_type> |
Definition at line 68 of file ChamberViewer.h.
using xAOD::ChamberViewer< HitObjContainer >::value_type = typename HitObjContainer::value_type |
Definition at line 67 of file ChamberViewer.h.
using xAOD::ChamberViewer< HitObjContainer >::ViewMode = ChamberView::Mode |
Definition at line 88 of file ChamberViewer.h.
|
inlinenoexcept |
Standard constructor.
container | UncalibratedMeasurementContainer from which the views per chamber shall be generated |
Definition at line 92 of file ChamberViewer.h.
|
inlinenoexcept |
Standard constructor.
container | UncalibratedMeasurementContainer from which the views per chamber shall be generated |
Definition at line 99 of file ChamberViewer.h.
|
delete |
Delete the copy constructor.
|
default |
Standard move constructor.
|
inline |
Returns the i-the measurement from the current chamber.
Definition at line 129 of file ChamberViewer.h.
|
inlinenoexcept |
Begin iterator of the current chamber view.
Definition at line 117 of file ChamberViewer.h.
|
inlinenoexcept |
End iterator of the current chamber view.
Definition at line 121 of file ChamberViewer.h.
|
inlineprivate |
|
inline |
Loads the view matching the parsed identifier.
I.e. the collection of hits sharing the same IdentifierHash. Returns whether the view is empty or not
chamberId | Identifier from the chamber / detElement to consider |
Definition at line 162 of file ChamberViewer.h.
|
inline |
Loads the view matching the parsed IdentifierHash.
I.e. either the detector element hash or the chamber module hash. There's no cross-check whether the interpretion of both hashes is the same
idHash | IdentifierHash to search |
Definition at line 176 of file ChamberViewer.h.
|
inline |
Definition at line 187 of file ChamberViewer.h.
|
inlinenoexcept |
Loads the hits from the next chamber.
Returns false if all chambers have been traversed.
Definition at line 137 of file ChamberViewer.h.
|
default |
Standard move operator.
|
delete |
Delete the copy assignment operator.
|
inline |
Branch if the input value is an object.
Const type
Const reference type
Definition at line 81 of file ChamberViewer.h.
|
inline |
Branch if the input value type is a pointer.
Convert to the underlying object itself
Make the object to be const
Declare the type to be a const pointer
Definition at line 72 of file ChamberViewer.h.
|
inlinenoexcept |
Returns how many hits are in the current chamber.
Definition at line 125 of file ChamberViewer.h.
|
private |
Definition at line 207 of file ChamberViewer.h.
|
private |
Definition at line 202 of file ChamberViewer.h.
|
private |
Definition at line 205 of file ChamberViewer.h.
|
private |
Definition at line 206 of file ChamberViewer.h.
|
private |
Definition at line 203 of file ChamberViewer.h.
|
private |
Definition at line 204 of file ChamberViewer.h.