![]() |
ATLAS Offline Software
|
#include <EventHandler.h>
Classes | |
| struct | AuthorIndices |
Public Types | |
| using | ExtendedTrackPtr = MuonCalibExtendedRawHits::ExtendedTrkPtr |
| using | ExtendedSegmentPtr = MuonCalibExtendedRawHits::ExtendedSegPtr |
| using | TruthPtr = MuonCalibTruthCollection::TruthPtr |
| using | TruthMdtPtr = MuonCalibTruthCollection::TruthMdtPtr |
| using | TruthRpcPtr = MuonCalibTruthCollection::TruthRpcPtr |
| using | TruthTgcPtr = MuonCalibTruthCollection::TruthTgcPtr |
| using | TruthCscPtr = MuonCalibTruthCollection::TruthCscPtr |
| using | TrackVec = std::vector<ExtendedTrackPtr> |
| using | AuthorTrackVecMap = std::map<int, TrackVec> |
| using | SegmentVec = std::vector<ExtendedSegmentPtr> |
| using | AuthorSegmentVecMap = std::map<int, SegmentVec> |
| using | AuthorSegmentVecIt = AuthorSegmentVecMap::iterator |
| using | AuthorSegmentVecCit = AuthorSegmentVecMap::const_iterator |
Public Member Functions | |
| EventHandler () | |
| default constructor | |
| ~EventHandler () | |
| default destructor | |
| void | clear () |
| clear all buffers | |
| void | setEvent (std::shared_ptr< const MuonCalibEvent_E > event) |
| set a new event (will call clear on the previous) | |
| const TrackVec & | extendedTracks (int author) const |
| get extended tracks | |
| const SegmentVec & | extendedSegments (int author) const |
| get extended tracks | |
| const MuonCalibExtendedRawHits & | extendedRawHits () const |
| get extended raw hits | |
| const MuonCalibEvent_E & | event () const |
| get event | |
| const AuthorIndices & | mooreIndices () const |
| get author indices for Moore | |
| const AuthorIndices & | muonboyIndices () const |
| get author indices for Muonboy | |
| std::string | dumpRawHits () const |
| dump routines | |
| std::string | dumpTracks () const |
| std::string | dumpTracks (const TrackVec &tracks) const |
| std::string | dumpSegments (const SegmentVec &segments) const |
| std::string | dumpSegments () const |
| std::string | dumpEvent () const |
| void | setdbg (const bool dbg_on) |
Private Member Functions | |
| void | createExtendedTracks () |
| create extended tracks for event | |
| void | createExtendedTruthTracks () |
| create extended tracks for event | |
| void | createExtendedSegments () |
| create extended segments for event | |
| void | createExtendedRawHits () |
| create extend raw hits | |
| void | associateSegmentsWithTracks (SegmentVec &segments, TrackVec &tracks) |
| create association between tracks and segments | |
| int | associateSegmentWithTrack (const MuonCalibExtendedSegment &segment, const MuonCalibExtendedTrack &track) |
| check whether segment and track share the same hits | |
| int | segmentOverlap (const MuonCalibExtendedSegment &segment1, const MuonCalibExtendedSegment &segment2) |
| check whether segments share the same hits | |
| void | linkTracks (int referenceIndex) |
| link tracks to the reference track using the hits on the track | |
| void | match (const MuonCalibExtendedTrack &reference, TrackVec &tracks) |
| find best match of tracks with reference | |
| template<typename T> | |
| void | split_along_barcode (const std::vector< T > &container, std::map< int, std::set< T > > &barcode_map) |
| Spltis the truth hit container into a map having the barcode of the particle as key. | |
| std::shared_ptr< MuonCalibTrack_E > | transform_to_trk (const TruthPtr &truth_part, const std::map< int, std::set< TruthMdtPtr > > &mdt_hits, const std::map< int, std::set< TruthCscPtr > > &csc_hits, const std::map< int, std::set< TruthRpcPtr > > &rpc_hits, const std::map< int, std::set< TruthTgcPtr > > &tgc_hits) |
Private Attributes | |
| std::shared_ptr< const MuonCalibEvent_E > | m_event |
| AuthorTrackVecMap | m_extendedTracks |
| AuthorSegmentVecMap | m_extendedSegments |
| MuonCalibExtendedRawHits | m_extendedRawHits |
| AuthorIndices | m_mooreIndices |
| AuthorIndices | m_muonboyIndices |
| bool | m_debug |
Definition at line 23 of file EventHandler.h.
| using MuonCalib::EventHandler::AuthorSegmentVecCit = AuthorSegmentVecMap::const_iterator |
Definition at line 47 of file EventHandler.h.
| using MuonCalib::EventHandler::AuthorSegmentVecIt = AuthorSegmentVecMap::iterator |
Definition at line 46 of file EventHandler.h.
| using MuonCalib::EventHandler::AuthorSegmentVecMap = std::map<int, SegmentVec> |
Definition at line 45 of file EventHandler.h.
| using MuonCalib::EventHandler::AuthorTrackVecMap = std::map<int, TrackVec> |
Definition at line 42 of file EventHandler.h.
Definition at line 33 of file EventHandler.h.
Definition at line 32 of file EventHandler.h.
| using MuonCalib::EventHandler::SegmentVec = std::vector<ExtendedSegmentPtr> |
Definition at line 44 of file EventHandler.h.
| using MuonCalib::EventHandler::TrackVec = std::vector<ExtendedTrackPtr> |
Definition at line 41 of file EventHandler.h.
Definition at line 39 of file EventHandler.h.
Definition at line 36 of file EventHandler.h.
Definition at line 35 of file EventHandler.h.
Definition at line 37 of file EventHandler.h.
Definition at line 38 of file EventHandler.h.
| MuonCalib::EventHandler::EventHandler | ( | ) |
default constructor
Definition at line 35 of file EventHandler.cxx.
| MuonCalib::EventHandler::~EventHandler | ( | ) |
|
private |
create association between tracks and segments
helper struct to evaluate the segment match quality
Definition at line 405 of file EventHandler.cxx.
|
private |
check whether segment and track share the same hits
Definition at line 487 of file EventHandler.cxx.
| void MuonCalib::EventHandler::clear | ( | ) |
clear all buffers
Definition at line 68 of file EventHandler.cxx.
|
private |
create extend raw hits
Definition at line 167 of file EventHandler.cxx.
|
private |
create extended segments for event
Definition at line 388 of file EventHandler.cxx.
|
private |
create extended tracks for event
Definition at line 181 of file EventHandler.cxx.
|
private |
create extended tracks for event
Definition at line 245 of file EventHandler.cxx.
| std::string MuonCalib::EventHandler::dumpEvent | ( | ) | const |
Definition at line 147 of file EventHandler.cxx.
| std::string MuonCalib::EventHandler::dumpRawHits | ( | ) | const |
dump routines
Definition at line 103 of file EventHandler.cxx.
| std::string MuonCalib::EventHandler::dumpSegments | ( | ) | const |
Definition at line 133 of file EventHandler.cxx.
| std::string MuonCalib::EventHandler::dumpSegments | ( | const SegmentVec & | segments | ) | const |
Definition at line 121 of file EventHandler.cxx.
| std::string MuonCalib::EventHandler::dumpTracks | ( | ) | const |
Definition at line 153 of file EventHandler.cxx.
| std::string MuonCalib::EventHandler::dumpTracks | ( | const TrackVec & | tracks | ) | const |
Definition at line 109 of file EventHandler.cxx.
| const MuonCalibEvent_E & MuonCalib::EventHandler::event | ( | ) | const |
| const MuonCalibExtendedRawHits & MuonCalib::EventHandler::extendedRawHits | ( | ) | const |
| const EventHandler::SegmentVec & MuonCalib::EventHandler::extendedSegments | ( | int | author | ) | const |
get extended tracks
Definition at line 47 of file EventHandler.cxx.
| const EventHandler::TrackVec & MuonCalib::EventHandler::extendedTracks | ( | int | author | ) | const |
get extended tracks
Definition at line 39 of file EventHandler.cxx.
|
private |
link tracks to the reference track using the hits on the track
Definition at line 532 of file EventHandler.cxx.
|
private |
find best match of tracks with reference
Definition at line 557 of file EventHandler.cxx.
| const EventHandler::AuthorIndices & MuonCalib::EventHandler::mooreIndices | ( | ) | const |
| const EventHandler::AuthorIndices & MuonCalib::EventHandler::muonboyIndices | ( | ) | const |
|
private |
check whether segments share the same hits
Definition at line 441 of file EventHandler.cxx.
| void MuonCalib::EventHandler::setdbg | ( | const bool | dbg_on | ) |
Definition at line 66 of file EventHandler.cxx.
| void MuonCalib::EventHandler::setEvent | ( | std::shared_ptr< const MuonCalibEvent_E > | event | ) |
set a new event (will call clear on the previous)
Definition at line 73 of file EventHandler.cxx.
|
private |
Spltis the truth hit container into a map having the barcode of the particle as key.
Definition at line 237 of file EventHandler.cxx.
|
private |
Definition at line 334 of file EventHandler.cxx.
|
private |
Definition at line 126 of file EventHandler.h.
|
private |
Definition at line 118 of file EventHandler.h.
|
private |
Definition at line 121 of file EventHandler.h.
|
private |
Definition at line 120 of file EventHandler.h.
|
private |
Definition at line 119 of file EventHandler.h.
|
private |
Definition at line 124 of file EventHandler.h.
|
private |
Definition at line 125 of file EventHandler.h.