ATLAS Offline Software
MuonCalibExtendedRawHits.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCALIBEXTENDEDRAWHITS_H
6 #define MUONCALIBEXTENDEDRAWHITS_H
7 
13 
14 namespace MuonCalib {
15 
16  class MuonCalibExtendedSegment;
17  class MuonCalibPattern;
18  class MuonCalibExtendedTrack;
19  class MuonCalibRawHitCollection;
20 
29  public:
32 
35 
36  using ExtendedSegPtr = std::shared_ptr<MuonCalibExtendedSegment>;
37  using ExtendedTrkPtr = std::shared_ptr<MuonCalibExtendedTrack>;
39  std::vector<MdtCalibRawHitPtr> hits;
40  std::vector<ExtendedSegPtr> associatedSegments;
41  std::vector<ExtendedTrkPtr> associatedTracks;
42  };
43 
44  typedef std::map<MuonFixedId, ExtendedChannelInfo> MdtHitInfoMap;
46  typedef MdtHitInfoMap::const_iterator MdtHitInfoCit;
47 
48  struct MdtRegionInfo {
49  unsigned int nhitsAboveAdcThreshold{0};
50  unsigned int nhitsOnSegment{0};
51  unsigned int nhitsOnTrack{0};
53  };
54 
55  typedef std::map<MuonFixedId, MdtRegionInfo> MdtHitChamberIdMap;
56  typedef std::map<MuonFixedIdManipulator::StationIndex, MdtRegionInfo> MdtHitStationIndexMap;
57 
58  struct ExtendedInfo {
59  std::vector<ExtendedSegPtr> associatedSegments;
60  std::vector<ExtendedTrkPtr> associatedTracks;
61  };
62 
63  typedef std::pair<RpcCalibRawHitPtr, ExtendedInfo> RpcHitInfo;
64  typedef std::vector<RpcHitInfo> RpcHitInfoVec;
65  typedef std::map<MuonFixedId, RpcHitInfo> RpcHitChamberIdMap;
66  typedef std::map<MuonFixedIdManipulator::StationIndex, RpcHitInfoVec> RpcHitStationIndexMap;
67 
68  typedef std::pair<TgcCalibRawHitPtr, ExtendedInfo> TgcHitInfo;
69  typedef std::vector<TgcHitInfo> TgcHitInfoVec;
70  typedef std::map<MuonFixedId, TgcHitInfo> TgcHitChamberIdMap;
71  typedef std::map<MuonFixedIdManipulator::StationIndex, TgcHitInfoVec> TgcHitStationIndexMap;
72 
73  typedef std::pair<CscCalibRawHitPtr, ExtendedInfo> CscHitInfo;
74 
75  typedef std::vector<CscHitInfo> CscHitInfoVec;
76  typedef std::map<MuonFixedId, CscHitInfo> CscHitChamberIdMap;
77  typedef std::map<MuonFixedIdManipulator::StationIndex, CscHitInfoVec> CscHitStationIndexMap;
78 
79  public:
82 
83  MuonCalibExtendedRawHits(const MuonCalibRawHitCollection& rawHits, const std::vector<ExtendedSegPtr>& segments,
84  const std::vector<ExtendedTrkPtr>& tracks);
85 
86  std::string dumpMdtHits() const;
87 
91 
95 
99 
103 
104  private:
105  double m_adcThreshold{50.};
106 
109 
112 
115 
118  };
119 
120 } // namespace MuonCalib
121 
122 #endif
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MuonCalib::MuonCalibExtendedRawHits::ExtendedTrkPtr
std::shared_ptr< MuonCalibExtendedTrack > ExtendedTrkPtr
Definition: MuonCalibExtendedRawHits.h:37
MuonCalib::MuonCalibExtendedRawHits::ExtendedInfo::associatedSegments
std::vector< ExtendedSegPtr > associatedSegments
Definition: MuonCalibExtendedRawHits.h:59
MuonCalib::MuonCalibExtendedRawHits::m_cscChamberIndexMap
CscHitStationIndexMap m_cscChamberIndexMap
Definition: MuonCalibExtendedRawHits.h:117
MuonCalib::MuonCalibExtendedRawHits::tgcHitChamberIdMap
const TgcHitChamberIdMap & tgcHitChamberIdMap() const
access to the tgc hits per chamber and station
Definition: MuonCalibExtendedRawHits.h:97
MuonCalib::MuonCalibExtendedRawHits::ExtendedInfo::associatedTracks
std::vector< ExtendedTrkPtr > associatedTracks
Definition: MuonCalibExtendedRawHits.h:60
MuonCalib::MuonCalibExtendedRawHits::MdtRegionInfo::nhitsOnTrack
unsigned int nhitsOnTrack
Definition: MuonCalibExtendedRawHits.h:51
MuonCalib::MuonCalibExtendedRawHits::TgcHitChamberIdMap
std::map< MuonFixedId, TgcHitInfo > TgcHitChamberIdMap
Definition: MuonCalibExtendedRawHits.h:70
MuonCalib::MuonCalibRawHitCollection::MdtCalibRawHitPtr
std::shared_ptr< MuonCalibRawMdtHit > MdtCalibRawHitPtr
typedef of a set of MuonCalibRawMdtHit s
Definition: MuonCalibRawHitCollection.h:46
MuonCalib::MuonCalibExtendedRawHits::TgcCalibRawHitPtr
MuonCalibRawHitCollection::TgcCalibRawHitPtr TgcCalibRawHitPtr
Definition: MuonCalibExtendedRawHits.h:34
MuonCalib::MuonCalibExtendedRawHits::RpcCalibRawHitPtr
MuonCalibRawHitCollection::RpcCalibRawHitPtr RpcCalibRawHitPtr
Definition: MuonCalibExtendedRawHits.h:33
MuonCalib::MuonCalibExtendedRawHits::cscHitChamberIdMap
const CscHitChamberIdMap & cscHitChamberIdMap() const
access to the csc hits per chamber and station
Definition: MuonCalibExtendedRawHits.h:101
MuonCalib::MuonCalibExtendedRawHits
Definition: MuonCalibExtendedRawHits.h:28
MuonCalib::MuonCalibExtendedRawHits::MdtCalibRawHitPtr
MuonCalibRawHitCollection::MdtCalibRawHitPtr MdtCalibRawHitPtr
Definition: MuonCalibExtendedRawHits.h:30
MuonCalib::MuonCalibRawHitCollection::CscCalibRawHitPtr
std::shared_ptr< const MuonCalibRawCscHit > CscCalibRawHitPtr
typedef of a set of MuonCalibRawCscHit s
Definition: MuonCalibRawHitCollection.h:63
MuonCalib::MuonCalibExtendedRawHits::rpcHitChamberIdMap
const RpcHitChamberIdMap & rpcHitChamberIdMap() const
access to the rpc hits per chamber and station
Definition: MuonCalibExtendedRawHits.h:93
MuonCalib::MuonCalibExtendedRawHits::MdtRegionInfo
Definition: MuonCalibExtendedRawHits.h:48
MuonCalibLayerMapping.h
MuonCalib::MuonCalibExtendedRawHits::MdtHitInfoMap
std::map< MuonFixedId, ExtendedChannelInfo > MdtHitInfoMap
Definition: MuonCalibExtendedRawHits.h:44
MuonCalib::MuonCalibExtendedRawHits::m_rpcChamberIdMap
RpcHitChamberIdMap m_rpcChamberIdMap
Definition: MuonCalibExtendedRawHits.h:110
MuonCalib::MuonCalibExtendedRawHits::MdtRegionInfo::nhitsAboveAdcThreshold
unsigned int nhitsAboveAdcThreshold
Definition: MuonCalibExtendedRawHits.h:49
MuonCalib::MuonCalibExtendedRawHits::m_tgcChamberIdMap
TgcHitChamberIdMap m_tgcChamberIdMap
Definition: MuonCalibExtendedRawHits.h:113
MuonCalib::MuonCalibExtendedRawHits::ExtendedChannelInfo
Definition: MuonCalibExtendedRawHits.h:38
MuonCalib::MuonCalibRawHitCollection::RpcCalibRawHitPtr
std::shared_ptr< const MuonCalibRawRpcHit > RpcCalibRawHitPtr
typedef of a set of MuonCalibRawRpcHit s
Definition: MuonCalibRawHitCollection.h:51
MuonCalib::MuonCalibExtendedRawHits::MdtHitInfoCit
MdtHitInfoMap::const_iterator MdtHitInfoCit
Definition: MuonCalibExtendedRawHits.h:46
MuonCalib::MuonCalibExtendedRawHits::TgcHitInfoVec
std::vector< TgcHitInfo > TgcHitInfoVec
Definition: MuonCalibExtendedRawHits.h:69
MuonCalib::MuonCalibExtendedRawHits::m_adcThreshold
double m_adcThreshold
Definition: MuonCalibExtendedRawHits.h:105
MuonCalib::MuonCalibExtendedRawHits::mdtHitChamberIdMap
const MdtHitChamberIdMap & mdtHitChamberIdMap() const
access to the mdt hits per chamber and station
Definition: MuonCalibExtendedRawHits.h:89
MuonCalib::MuonCalibExtendedRawHits::m_tgcChamberIndexMap
TgcHitStationIndexMap m_tgcChamberIndexMap
Definition: MuonCalibExtendedRawHits.h:114
MuonCalib::MuonCalibExtendedRawHits::RpcHitStationIndexMap
std::map< MuonFixedIdManipulator::StationIndex, RpcHitInfoVec > RpcHitStationIndexMap
Definition: MuonCalibExtendedRawHits.h:66
MuonCalib::MuonCalibExtendedRawHits::ExtendedChannelInfo::associatedTracks
std::vector< ExtendedTrkPtr > associatedTracks
Definition: MuonCalibExtendedRawHits.h:41
MuonCalib::MuonCalibExtendedRawHits::CscHitStationIndexMap
std::map< MuonFixedIdManipulator::StationIndex, CscHitInfoVec > CscHitStationIndexMap
Definition: MuonCalibExtendedRawHits.h:77
MuonCalib::MuonCalibExtendedRawHits::MdtHitChamberIdMap
std::map< MuonFixedId, MdtRegionInfo > MdtHitChamberIdMap
Definition: MuonCalibExtendedRawHits.h:55
MuonCalib::MuonCalibExtendedRawHits::CscCalibRawHitPtr
MuonCalibRawHitCollection::CscCalibRawHitPtr CscCalibRawHitPtr
Definition: MuonCalibExtendedRawHits.h:31
MuonCalib::MuonCalibExtendedRawHits::MuonCalibExtendedRawHits
MuonCalibExtendedRawHits()
Default constructor .
Definition: MuonCalibExtendedRawHits.cxx:24
MuonCalib::MuonCalibExtendedRawHits::RpcHitInfoVec
std::vector< RpcHitInfo > RpcHitInfoVec
Definition: MuonCalibExtendedRawHits.h:64
MuonCalib::MuonCalibExtendedRawHits::ExtendedInfo
Definition: MuonCalibExtendedRawHits.h:58
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibExtendedRawHits::ExtendedChannelInfo::associatedSegments
std::vector< ExtendedSegPtr > associatedSegments
Definition: MuonCalibExtendedRawHits.h:40
MuonCalib::MuonCalibExtendedRawHits::m_mdtChamberIdMap
MdtHitChamberIdMap m_mdtChamberIdMap
Definition: MuonCalibExtendedRawHits.h:107
MuonCalib::MuonCalibExtendedRawHits::tgcChamberIndexMap
const TgcHitStationIndexMap & tgcChamberIndexMap() const
Definition: MuonCalibExtendedRawHits.h:98
MuonCalib::MuonCalibExtendedRawHits::CscHitInfo
std::pair< CscCalibRawHitPtr, ExtendedInfo > CscHitInfo
Definition: MuonCalibExtendedRawHits.h:73
MuonCalib::MuonCalibExtendedRawHits::rpcChamberIndexMap
const RpcHitStationIndexMap & rpcChamberIndexMap() const
Definition: MuonCalibExtendedRawHits.h:94
MuonCalib::MuonCalibExtendedRawHits::m_cscChamberIdMap
CscHitChamberIdMap m_cscChamberIdMap
Definition: MuonCalibExtendedRawHits.h:116
MuonCalib::MuonCalibExtendedRawHits::MdtRegionInfo::nhitsOnSegment
unsigned int nhitsOnSegment
Definition: MuonCalibExtendedRawHits.h:50
MuonCalib::MuonCalibExtendedRawHits::MdtHitStationIndexMap
std::map< MuonFixedIdManipulator::StationIndex, MdtRegionInfo > MdtHitStationIndexMap
Definition: MuonCalibExtendedRawHits.h:56
MuonCalib::MuonCalibExtendedRawHits::mdtChamberIndexMap
const MdtHitStationIndexMap & mdtChamberIndexMap() const
Definition: MuonCalibExtendedRawHits.h:90
MuonCalib::MuonCalibRawHitCollection
Definition: MuonCalibRawHitCollection.h:42
MuonCalib::MuonCalibExtendedRawHits::ExtendedSegPtr
std::shared_ptr< MuonCalibExtendedSegment > ExtendedSegPtr
Definition: MuonCalibExtendedRawHits.h:36
MuonCalib::MuonCalibExtendedRawHits::ExtendedChannelInfo::hits
std::vector< MdtCalibRawHitPtr > hits
Definition: MuonCalibExtendedRawHits.h:39
MuonCalib::MuonCalibExtendedRawHits::MdtRegionInfo::hits
MdtHitInfoMap hits
Definition: MuonCalibExtendedRawHits.h:52
MuonCalib::MuonCalibExtendedRawHits::m_rpcChamberIndexMap
RpcHitStationIndexMap m_rpcChamberIndexMap
Definition: MuonCalibExtendedRawHits.h:111
MuonCalib::MuonCalibExtendedRawHits::m_mdtChamberIndexMap
MdtHitStationIndexMap m_mdtChamberIndexMap
Definition: MuonCalibExtendedRawHits.h:108
MuonCalib::MuonCalibExtendedRawHits::dumpMdtHits
std::string dumpMdtHits() const
Definition: MuonCalibExtendedRawHits.cxx:92
MuonCalib::MuonCalibExtendedRawHits::RpcHitChamberIdMap
std::map< MuonFixedId, RpcHitInfo > RpcHitChamberIdMap
Definition: MuonCalibExtendedRawHits.h:65
MuonCalibRawHitCollection.h
MuonCalib::MuonCalibExtendedRawHits::TgcHitInfo
std::pair< TgcCalibRawHitPtr, ExtendedInfo > TgcHitInfo
Definition: MuonCalibExtendedRawHits.h:68
MuonCalib::MuonCalibExtendedRawHits::TgcHitStationIndexMap
std::map< MuonFixedIdManipulator::StationIndex, TgcHitInfoVec > TgcHitStationIndexMap
Definition: MuonCalibExtendedRawHits.h:71
MuonCalib::MuonCalibExtendedRawHits::CscHitInfoVec
std::vector< CscHitInfo > CscHitInfoVec
Definition: MuonCalibExtendedRawHits.h:75
MuonCalib::MuonCalibExtendedRawHits::cscChamberIndexMap
const CscHitStationIndexMap & cscChamberIndexMap() const
Definition: MuonCalibExtendedRawHits.h:102
MuonFixedIdManipulator.h
checker_macros.h
Define macros for attributes used to control the static checker.
MuonCalib::MuonCalibRawHitCollection::TgcCalibRawHitPtr
std::shared_ptr< const MuonCalibRawTgcHit > TgcCalibRawHitPtr
typedef of a set of MuonCalibRawTgcHit s
Definition: MuonCalibRawHitCollection.h:55
MuonFixedId.h
MuonCalib::MuonCalibExtendedRawHits::RpcHitInfo
std::pair< RpcCalibRawHitPtr, ExtendedInfo > RpcHitInfo
Definition: MuonCalibExtendedRawHits.h:63
MuonCalib::MuonCalibExtendedRawHits::MdtHitInfoIt
MdtHitInfoMap::iterator MdtHitInfoIt
Definition: MuonCalibExtendedRawHits.h:45
MuonCalib::MuonCalibExtendedRawHits::CscHitChamberIdMap
std::map< MuonFixedId, CscHitInfo > CscHitChamberIdMap
Definition: MuonCalibExtendedRawHits.h:76