ATLAS Offline Software
CompareMuonSegmentKeys.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUON_COMPAREMUONSEGMENTKEYS_H
6 #define MUON_COMPAREMUONSEGMENTKEYS_H
7 
8 #include <string>
9 
10 namespace Muon {
11 
12  class MuonSegmentKey;
13 
17  Identical = 0, //<! segments are identical
18  SubSet = 1, //<! the first segment is a subset of the second
19  SuperSet = 2, //<! the first segment is a superset of the second
20  PartialOverlap = 3, //<! some hits of the segment overlap
21  NoOverlap = 4, //<! there is no overlap between the segments
22  Unknown = 5 //<! unknown overlap tyep, this should not happen
23  };
24 
27  OverlapResult operator()(const MuonSegmentKey& sk1, const MuonSegmentKey& sk2, bool ignoreTriggerHits = false);
28 
30  std::string print(const OverlapResult& result) const;
31 
32  unsigned int intersectionSize;
33  unsigned int segment1Size;
34  unsigned int segment2Size;
35 
36  unsigned int segment1SizeTrigger;
37  unsigned int segment2SizeTrigger;
39  };
40 
41 } // namespace Muon
42 
43 #endif
get_generator_info.result
result
Definition: get_generator_info.py:21
Muon::CompareMuonSegmentKeys::PartialOverlap
@ PartialOverlap
Definition: CompareMuonSegmentKeys.h:20
Muon::CompareMuonSegmentKeys::SubSet
@ SubSet
Definition: CompareMuonSegmentKeys.h:18
Muon::CompareMuonSegmentKeys::operator()
OverlapResult operator()(const MuonSegmentKey &sk1, const MuonSegmentKey &sk2, bool ignoreTriggerHits=false)
calculate overlap between two SegmentKey2s, if ignoreTriggerHits == true trigger hits will not be inc...
Definition: CompareMuonSegmentKeys.cxx:14
Muon::MuonSegmentKey
Class to cache the identifiers on a segment in sets that can later be used to perform an overlap remo...
Definition: MuonSegmentKey.h:24
Muon::CompareMuonSegmentKeys::segment1SizeTrigger
unsigned int segment1SizeTrigger
Definition: CompareMuonSegmentKeys.h:36
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::CompareMuonSegmentKeys::segment1Size
unsigned int segment1Size
Definition: CompareMuonSegmentKeys.h:33
Muon::CompareMuonSegmentKeys::intersectionSizeTrigger
unsigned int intersectionSizeTrigger
Definition: CompareMuonSegmentKeys.h:38
Muon::CompareMuonSegmentKeys::segment2SizeTrigger
unsigned int segment2SizeTrigger
Definition: CompareMuonSegmentKeys.h:37
Muon::CompareMuonSegmentKeys::OverlapResult
OverlapResult
enum for the overlap result
Definition: CompareMuonSegmentKeys.h:16
Muon::CompareMuonSegmentKeys::Identical
@ Identical
Definition: CompareMuonSegmentKeys.h:17
Muon::CompareMuonSegmentKeys::segment2Size
unsigned int segment2Size
Definition: CompareMuonSegmentKeys.h:34
Muon::CompareMuonSegmentKeys::Unknown
@ Unknown
Definition: CompareMuonSegmentKeys.h:22
Muon::CompareMuonSegmentKeys::NoOverlap
@ NoOverlap
Definition: CompareMuonSegmentKeys.h:21
Muon::CompareMuonSegmentKeys::intersectionSize
unsigned int intersectionSize
Definition: CompareMuonSegmentKeys.h:32
Muon::CompareMuonSegmentKeys::print
std::string print(const OverlapResult &result) const
print result to string
Definition: CompareMuonSegmentKeys.cxx:87
Muon::CompareMuonSegmentKeys::SuperSet
@ SuperSet
Definition: CompareMuonSegmentKeys.h:19
Muon::CompareMuonSegmentKeys
Definition: CompareMuonSegmentKeys.h:14