|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MuonCalibExtrTreeEvent_EventHandler_h
6 #define MuonCalibExtrTreeEvent_EventHandler_h
20 class MuonCalibExtendedTrack;
21 class MuonCalibExtendedSegment;
41 using TrackVec = std::vector<ExtendedTrackPtr>;
87 void setdbg(
const bool dbg_on);
118 std::shared_ptr<const MuonCalibEvent_E>
m_event;
129 template <
typename T>
void split_along_barcode(
const std::vector<T>& container, std::map<
int, std::set<T>>& barcode_map);
131 std::shared_ptr<MuonCalibTrack_E>
transform_to_trk(
const TruthPtr& truth_part,
const std::map<
int, std::set<TruthMdtPtr>>& mdt_hits,
132 const std::map<
int, std::set<TruthCscPtr>>& csc_hits,
133 const std::map<
int, std::set<TruthRpcPtr>>& rpc_hits,
134 const std::map<
int, std::set<TruthTgcPtr>>& tgc_hits);
JetConstituentVector::iterator iterator
std::shared_ptr< MuonCalibExtendedTrack > ExtendedTrkPtr
AuthorIndices m_mooreIndices
void match(const MuonCalibExtendedTrack &reference, TrackVec &tracks)
find best match of tracks with reference
void createExtendedTruthTracks()
create extended tracks for event
std::vector< ExtendedSegmentPtr > SegmentVec
void setEvent(std::shared_ptr< const MuonCalibEvent_E > event)
set a new event (will call clear on the previous)
const AuthorIndices & muonboyIndices() const
get author indices for Muonboy
std::shared_ptr< const MuonCalibRpcTruthHit > TruthRpcPtr
typedef of set of MuonCalibRpcTruthHit* s
const SegmentVec & extendedSegments(int author) const
get extended tracks
const MuonCalibEvent_E & event() const
get event
AuthorSegmentVecMap m_extendedSegments
void createExtendedTracks()
create extended tracks for event
MuonCalibTruthCollection::TruthTgcPtr TruthTgcPtr
void createExtendedRawHits()
create extend raw hits
MuonCalibExtendedRawHits::ExtendedTrkPtr ExtendedTrackPtr
void clear()
clear all buffers
~EventHandler()
default destructor
const AuthorIndices & mooreIndices() const
get author indices for Moore
AuthorTrackVecMap m_extendedTracks
std::string dumpEvent() const
std::shared_ptr< const MuonCalibTgcTruthHit > TruthTgcPtr
typedef of set of MuonCalibTgcTruthHit* s
MuonCalibTruthCollection::TruthCscPtr TruthCscPtr
std::map< int, SegmentVec > AuthorSegmentVecMap
std::map< int, TrackVec > AuthorTrackVecMap
const MuonCalibExtendedRawHits & extendedRawHits() const
get extended raw hits
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
int segmentOverlap(const MuonCalibExtendedSegment &segment1, const MuonCalibExtendedSegment &segment2)
check whether segments share the same hits
std::shared_ptr< const MuonCalibCscTruthHit > TruthCscPtr
typedef of set of MuonCalibCscTruthHit* s
void setdbg(const bool dbg_on)
int associateSegmentWithTrack(const MuonCalibExtendedSegment &segment, const MuonCalibExtendedTrack &track)
check whether segment and track share the same hits
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)
void linkTracks(int referenceIndex)
link tracks to the reference track using the hits on the track
AuthorIndices m_muonboyIndices
std::string dumpTracks() const
MuonCalibExtendedRawHits m_extendedRawHits
AuthorSegmentVecMap::const_iterator AuthorSegmentVecCit
std::shared_ptr< MuonCalibExtendedSegment > ExtendedSegPtr
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< const MuonCalibMdtTruthHit > TruthMdtPtr
typedef of set of MuonCalibMdtTruthHit* s
std::shared_ptr< const MuonCalibEvent_E > m_event
void associateSegmentsWithTracks(SegmentVec &segments, TrackVec &tracks)
create association between tracks and segments
std::vector< ExtendedTrackPtr > TrackVec
MuonCalibTruthCollection::TruthPtr TruthPtr
void createExtendedSegments()
create extended segments for event
std::shared_ptr< const MuonCalibTruth > TruthPtr
typedef of a set of MuonCalibTruth* s
std::string dumpSegments() const
std::string dumpRawHits() const
dump routines
EventHandler()
default constructor
const TrackVec & extendedTracks(int author) const
get extended tracks
MuonCalibTruthCollection::TruthMdtPtr TruthMdtPtr
AuthorSegmentVecMap::iterator AuthorSegmentVecIt
Define macros for attributes used to control the static checker.
MuonCalibTruthCollection::TruthRpcPtr TruthRpcPtr
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
AuthorIndices(int s, int t)
MuonCalibExtendedRawHits::ExtendedSegPtr ExtendedSegmentPtr