ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MuonCalib::MuonCalibExtendedSegment Class Reference

#include <MuonCalibExtendedSegment.h>

Inheritance diagram for MuonCalib::MuonCalibExtendedSegment:
Collaboration diagram for MuonCalib::MuonCalibExtendedSegment:

Public Types

using MdtHitPtr = std::shared_ptr< MdtCalibHitBase >
 typedef for a collection of MdtCalibHitBase s More...
 
using MdtHitVec = std::vector< MdtHitPtr >
 
using CscHitPtr = std::shared_ptr< const CscCalibHitBase >
 typedef for a collection of CscCalibHitBase s More...
 
using CscHitVec = std::vector< CscHitPtr >
 
using RpcHitPtr = std::shared_ptr< const RpcCalibHitBase >
 typedef for a collection of RpcCalibHitBase s More...
 
using RpcHitVec = std::vector< RpcHitPtr >
 
using TgcHitPtr = std::shared_ptr< const TgcCalibHitBase >
 typedef for a collection of TgcCalibHitBase s More...
 
using TgcHitVec = std::vector< TgcHitPtr >
 

Public Member Functions

 MuonCalibExtendedSegment (const MuonCalibSegment &segment)
 Constructor taking input track. More...
 
const MuonCalibTrackSummarysummary () const
 access to hit counts More...
 
const IdSetidSet () const
 access hit identifier map (hits give the MuonFixedId More...
 
std::string dump () const
 dump all information to string More...
 
std::string dumpPars () const
 dump track parameters to string More...
 
std::string dumpSummary () const
 dump track summary to string More...
 
const MuonCalibRawHitAssociationMaprawHitAssociationMap () const
 access to list of tracks the segment was associated to More...
 
MuonCalibRawHitAssociationMaprawHitAssociationMap ()
 
void set (double chi2, const Amg::Vector3D &pos, const Amg::Vector3D &dir)
 
void setSegment (const Amg::Vector3D &pos, const Amg::Vector3D &dir)
 
void setErrors (double error_dy0, double error_dtheta)
 sets Local errors on MuonCalibSegment parameters More...
 
void setAuthor (int author)
 sets author field More...
 
void setFittedT0 (double t0)
 sets t0 field More...
 
unsigned int hitsOnTrack () const
 retrieve the sum of all XxxCalibHits assigned to the MuonCalibSegment More...
 
unsigned int closeHits () const
 retrieve the sum of all hits close to the MuonCalibSegment. More...
 
unsigned int mdtHitsOnTrack () const
 retrieve the number of MdtCalibHitBase s assigned to this segment More...
 
unsigned int mdtCloseHits () const
 retrieve the number of nearby mdt hits. More...
 
unsigned int cscHitsOnTrack () const
 retrieve the number of CscCalibHitBase s assigned to this segment More...
 
unsigned int cscCloseHits () const
 retrieve the number of nearby csc hits. More...
 
unsigned int rpcHitsOnTrack () const
 retrieve the number of RpcCalibHitBase s assigned to this segment More...
 
unsigned int rpcCloseHits () const
 retrieve the number of nearby rpc hits. More...
 
unsigned int tgcHitsOnTrack () const
 retrieve the number of TgcCalibHitBase s assigned to this segment More...
 
unsigned int tgcCloseHits () const
 retrieve the number of nearby tgc hits. More...
 
unsigned int hitsPerML (int ML) const
 number of hits per multilayer of this segment More...
 
unsigned int missedHits () const
 number of missed hits of this segment (out of time + empty tubes) More...
 
unsigned int deltaHits () const
 number of delta hits of this segment More...
 
unsigned int emptyTubes () const
 number of empty tubes of this segment More...
 
unsigned int outOfTimeHits () const
 number of hits out of time of this segment More...
 
const MdtHitVecmdtHOT () const
 retrieve the full set of MdtCalibHitBase s assigned to this segment More...
 
MdtHitVecmdtHOT ()
 retrieve the full set of MdtCalibHitBase s assigned to this segment More...
 
const MdtHitVecmdtClose () const
 retrieve the full set of nearby mdt hits of this segment. More...
 
MdtHitVecmdtClose ()
 retrieve the full set of nearby mdt hits of this segment. More...
 
const CscHitVeccscHOT () const
 retrieve the full set of CscCalibHitBase s assigned to this segment More...
 
CscHitVeccscHOT ()
 retrieve the full set of CscCalibHitBase s assigned to this segment More...
 
const CscHitVeccscClose () const
 retrieve the full set of nearby mdt hits of this segment. More...
 
CscHitVeccscClose ()
 retrieve the full set of nearby mdt hits of this segment. More...
 
const RpcHitVecrpcHOT () const
 retrieve the full set of RpcCalibHitBase s assigned to this segment More...
 
RpcHitVecrpcHOT ()
 retrieve the full set of RpcCalibHitBase s assigned to this segment More...
 
const RpcHitVecrpcClose () const
 retrieve the full set of nearby mdt hits of this segment. More...
 
RpcHitVecrpcClose ()
 retrieve the full set of nearby mdt hits of this segment. More...
 
const TgcHitVectgcHOT () const
 retrieve the full set of TgcCalibHitBase s assigned to this segment More...
 
TgcHitVectgcHOT ()
 retrieve the full set of TgcCalibHitBase s assigned to this segment More...
 
const TgcHitVectgcClose () const
 retrieve the full set of nearby mdt hits of this segment. More...
 
TgcHitVectgcClose ()
 retrieve the full set of nearby mdt hits of this segment. More...
 
double chi2 () const
 retrieve chi2 More...
 
double error_dy0 () const
 retrieve error position More...
 
double error_dtheta () const
 retrieve error angle More...
 
bool hasFittedT0 () const
 check whether t0 was fitted More...
 
double fittedT0 () const
 retrieve fitted T0, return -99999 if no fit was performed More...
 
const Amg::Vector3Dposition () const
 retrieve local position of segment (on station level) More...
 
const Amg::Vector3Ddirection () const
 retrieve local direction of segment (on station level) retrieve the transformation from local chamber coordinates into global coordinates More...
 
const Amg::Transform3DlocalToGlobal () const
 
Amg::Vector3D globalPosition () const
 retrieve global position More...
 
Amg::Vector3D globalDirection () const
 retrieve global direction More...
 
int author () const
 retrieve the segment author More...
 
unsigned int qualityFlag () const
 retrieve the Fit quality flag More...
 
void addHitOnTrack (MdtCalibHitBase *hit)
 add the MdtCalibHitBase to the set assigned to the segment More...
 
void addHitOnTrack (CscCalibHitBase *hit)
 add the CscCalibHitBase to the set assigned to the segment More...
 
void addHitOnTrack (RpcCalibHitBase *hit)
 add the CscCalibHitBase to the set assigned to the segment More...
 
void addHitOnTrack (TgcCalibHitBase *hit)
 add the TgcCalibHitBase to the set assigned to the segment More...
 
void addHitOnTrack (const MdtHitPtr &hit)
 add the MdtCalibHitBase to the set assigned to the segment More...
 
void addHitOnTrack (const CscHitPtr &hit)
 add the CscCalibHitBase to the set assigned to the segment More...
 
void addHitOnTrack (const RpcHitPtr &hit)
 add the CscCalibHitBase to the set assigned to the segment More...
 
void addHitOnTrack (const TgcHitPtr &hit)
 add the TgcCalibHitBase to the set assigned to the segment More...
 
void addCloseHit (MdtCalibHitBase *hit)
 add the mdt hit to the set nearby the segment More...
 
void addCloseHit (CscCalibHitBase *hit)
 add the csc hit to the set nearby the segment More...
 
void addCloseHit (RpcCalibHitBase *hit)
 add the csc hit to the set nearby the segment More...
 
void addCloseHit (TgcCalibHitBase *hit)
 add the tgc hit to the set nearby the segment More...
 
void addCloseHit (const MdtHitPtr &hit)
 add the mdt hit to the set nearby the segment More...
 
void addCloseHit (const CscHitPtr &hit)
 add the csc hit to the set nearby the segment More...
 
void addCloseHit (const RpcHitPtr &hit)
 add the csc hit to the set nearby the segment More...
 
void addCloseHit (const TgcHitPtr &hit)
 add the tgc hit to the set nearby the segment More...
 
void refineMdtSelection (const std::vector< unsigned int > &new_selection)
 move trck hits to close hits More...
 
std::ostream & dump (std::ostream &stream) const
 

Private Member Functions

void copy (const MuonCalibSegment &other)
 

Private Attributes

MuonCalibTrackSummary m_summary
 track summary More...
 
IdSet m_idSet
 set with Identifiers on segment More...
 
MuonCalibRawHitAssociationMap m_rawHitAssociationMap
 list of tracks to which the segment was associated More...
 
MdtHitVec m_mdtHitsOnTrack
 hits
More...
 
MdtHitVec m_mdtCloseHits
 set of mdt hits nearby the segment More...
 
CscHitVec m_cscHitsOnTrack
 set of CscCalibHitBase s assigned to the segment More...
 
CscHitVec m_cscCloseHits
 set of csc hits nearby the segment More...
 
RpcHitVec m_rpcHitsOnTrack
 set of RpcCalibHitBase s assigned to the segment More...
 
RpcHitVec m_rpcCloseHits
 set of rpc hits nearby the segment More...
 
TgcHitVec m_tgcHitsOnTrack
 set of TgcCalibHitBase s assigned to the segment More...
 
TgcHitVec m_tgcCloseHits
 set of tgc hits nearby the segment More...
 
double m_chi2 {FLT_MAX}
 goodness of (DC)fit More...
 
double m_dy0 {FLT_MAX}
 error on local position More...
 
double m_dtheta {FLT_MAX}
 error on local direction More...
 
Amg::Vector3D m_localPosition {0., 0., 0.}
 position in station (local) coordinates More...
 
Amg::Vector3D m_localDirection {0., 0., 0.}
 direction in station (local) coordinates More...
 
Amg::Transform3D m_localToGlobal {}
 transformation local->global More...
 
double m_fittedT0 {s_dummy_ctor_dbl}
 fitted t0 More...
 
unsigned int m_qualityFlag {0}
 flag describing the fit quality More...
 
int m_author {-1}
 author flag More...
 

Static Private Attributes

static constexpr double s_dummy_ctor_dbl {-99999.}
 

Detailed Description

A segment plus everything one can dream of knowing about it.

Definition at line 27 of file MuonCalibExtendedSegment.h.

Member Typedef Documentation

◆ CscHitPtr

using MuonCalib::MuonCalibSegment::CscHitPtr = std::shared_ptr<const CscCalibHitBase>
inherited

typedef for a collection of CscCalibHitBase s

Definition at line 47 of file MuonCalibSegment.h.

◆ CscHitVec

using MuonCalib::MuonCalibSegment::CscHitVec = std::vector<CscHitPtr>
inherited

Definition at line 49 of file MuonCalibSegment.h.

◆ MdtHitPtr

using MuonCalib::MuonCalibSegment::MdtHitPtr = std::shared_ptr<MdtCalibHitBase>
inherited

typedef for a collection of MdtCalibHitBase s

Definition at line 43 of file MuonCalibSegment.h.

◆ MdtHitVec

using MuonCalib::MuonCalibSegment::MdtHitVec = std::vector<MdtHitPtr>
inherited

Definition at line 45 of file MuonCalibSegment.h.

◆ RpcHitPtr

using MuonCalib::MuonCalibSegment::RpcHitPtr = std::shared_ptr<const RpcCalibHitBase>
inherited

typedef for a collection of RpcCalibHitBase s

Definition at line 51 of file MuonCalibSegment.h.

◆ RpcHitVec

using MuonCalib::MuonCalibSegment::RpcHitVec = std::vector<RpcHitPtr>
inherited

Definition at line 53 of file MuonCalibSegment.h.

◆ TgcHitPtr

using MuonCalib::MuonCalibSegment::TgcHitPtr = std::shared_ptr<const TgcCalibHitBase>
inherited

typedef for a collection of TgcCalibHitBase s

Definition at line 55 of file MuonCalibSegment.h.

◆ TgcHitVec

using MuonCalib::MuonCalibSegment::TgcHitVec = std::vector<TgcHitPtr>
inherited

Definition at line 57 of file MuonCalibSegment.h.

Constructor & Destructor Documentation

◆ MuonCalibExtendedSegment()

MuonCalib::MuonCalibExtendedSegment::MuonCalibExtendedSegment ( const MuonCalibSegment segment)

Constructor taking input track.

add associated track

Definition at line 28 of file MuonCalibExtendedSegment.cxx.

29  MuonFixedIdManipulator idManip;
30 
31  MuonCalibTrackSummary::ChamberHitSummary* currentChamberSummary = nullptr;
32 
33  for (const MdtHitPtr& mdt_hit : mdtHOT()) {
34  const MuonFixedId& id = mdt_hit->identify();
35  if (!id.isValid()) {
36  MsgStream log(Athena::getMessageSvc(), "MuonCalibExtendedSegment");
37  log << MSG::WARNING << "invalid MDT id!" << endmsg;
38  continue;
39  }
40 
41  m_idSet.insert(id);
42 
43  MuonFixedId chId = idManip.chamberIdentifier(id);
44 
45  bool measuresPhi = idManip.measuresPhi(id);
46  bool isMdt = id.is_mdt();
47  bool isFirst = isMdt ? id.mdtMultilayer() == 1 : !measuresPhi;
48 
49  // check whether first chamber or new chamber
50  if (!currentChamberSummary || currentChamberSummary->chId != chId) {
51  m_summary.chamberHitSummary.emplace_back(chId);
52  currentChamberSummary = &m_summary.chamberHitSummary.back();
53  }
54 
55  MuonCalibTrackSummary::ChamberHitSummary::Projection& proj =
56  isFirst ? currentChamberSummary->etaProjection() : currentChamberSummary->phiProjection();
57 
58  ++proj.nhits;
59 
60  ++m_summary.nhits;
62 
63  if (mdt_hit->adcCount() < adc_lower_threshold) ++m_summary.nmdtHitsBelowADCCut;
64 
65  MuonFixedIdManipulator::StationIndex stationIndex = idManip.stationLayerIndex(id);
66  if (idManip.isEndcap(id)) {
67  if (id.eta() < 0.)
68  m_summary.hasEndcapA = true;
69  else
70  m_summary.hasEndcapC = true;
71  if (stationIndex == MuonFixedIdManipulator::EIA || stationIndex == MuonFixedIdManipulator::EIC ||
72  stationIndex == MuonFixedIdManipulator::EMA || stationIndex == MuonFixedIdManipulator::EMC)
74  } else {
75  m_summary.hasBarrel = true;
76  if (stationIndex == MuonFixedIdManipulator::BM || stationIndex == MuonFixedIdManipulator::BO)
78  }
79 
80  m_summary.precisionStationLayers.insert(stationIndex);
81  if (currentChamberSummary->nMdtHitsMl1() > 0 && currentChamberSummary->nMdtHitsMl2() && currentChamberSummary->nhits() > 3) {
82  m_summary.goodPrecisionStationLayers.insert(stationIndex);
83  }
84  }
85  for (const RpcHitPtr& rpc_hit : rpcHOT()) {
86  MuonFixedId id = rpc_hit->identify();
87  if (!id.isValid()) {
88  MsgStream log(Athena::getMessageSvc(), "MuonCalibExtendedSegment");
89  log << MSG::WARNING << "invalid RPC id!" << endmsg;
90  continue;
91  }
92 
93  m_idSet.insert(id);
94 
95  MuonFixedId chId = idManip.chamberIdentifier(id);
96 
97  bool measuresPhi = idManip.measuresPhi(id);
98  bool isMdt = id.is_mdt();
99  bool isFirst = isMdt ? id.mdtMultilayer() == 1 : measuresPhi;
100 
101  // check whether first chamber or new chamber
102  if (!currentChamberSummary || currentChamberSummary->chId != chId) {
103  m_summary.chamberHitSummary.emplace_back(chId);
104  currentChamberSummary = &m_summary.chamberHitSummary.back();
105  }
106 
107  MuonCalibTrackSummary::ChamberHitSummary::Projection& proj =
108  isFirst ? currentChamberSummary->etaProjection() : currentChamberSummary->phiProjection();
109 
110  ++proj.nhits;
111 
112  ++m_summary.nhits;
113  if (measuresPhi)
115  else
117 
118  MuonFixedIdManipulator::PhiStationIndex phiStationIndex = idManip.phiStationLayerIndex(id);
119  if (measuresPhi) m_summary.phiStationLayers.insert(phiStationIndex);
120  if (currentChamberSummary->netaHits() > 0 && currentChamberSummary->nphiHits() > 0) {
121  m_summary.phiEtaStationLayers.insert(phiStationIndex);
122  }
123  }
124 
126  m_summary.hasBarrel = true;
128  }
129 
130  for (const TgcHitPtr& tgc_hit : tgcHOT()) {
131  const MuonFixedId& id = tgc_hit->identify();
132  if (!id.isValid()) {
133  MsgStream log(Athena::getMessageSvc(), "MuonCalibExtendedSegment");
134  log << MSG::WARNING << "invalid TGC id!" << endmsg;
135  continue;
136  }
137 
138  m_idSet.insert(id);
139 
140  MuonFixedId chId = idManip.chamberIdentifier(id);
141 
142  bool measuresPhi = idManip.measuresPhi(id);
143  bool isMdt = id.is_mdt();
144  bool isFirst = isMdt ? id.mdtMultilayer() == 1 : measuresPhi;
145 
146  // check whether first chamber or new chamber
147  if (!currentChamberSummary || currentChamberSummary->chId != chId) {
148  m_summary.chamberHitSummary.push_back(MuonCalibTrackSummary::ChamberHitSummary(chId));
149  currentChamberSummary = &m_summary.chamberHitSummary.back();
150  }
151 
152  MuonCalibTrackSummary::ChamberHitSummary::Projection& proj =
153  isFirst ? currentChamberSummary->etaProjection() : currentChamberSummary->phiProjection();
154 
155  ++proj.nhits;
156 
157  ++m_summary.nhits;
158  if (measuresPhi)
160  else
162 
163  if (id.eta() < 0)
164  m_summary.hasEndcapA = true;
165  else
166  m_summary.hasEndcapC = true;
167 
168  MuonFixedIdManipulator::PhiStationIndex phiStationIndex = idManip.phiStationLayerIndex(id);
169  if (measuresPhi) m_summary.phiStationLayers.insert(phiStationIndex);
170  if (currentChamberSummary->netaHits() > 0 && currentChamberSummary->nphiHits() > 0) {
171  m_summary.phiEtaStationLayers.insert(phiStationIndex);
172  }
173  }
174 
175  for (const CscHitPtr& csc_hit : cscHOT()) {
176  const MuonFixedId& id = csc_hit->identify();
177  if (!id.isValid()) {
178  MsgStream log(Athena::getMessageSvc(), "MuonCalibExtendedSegment");
179  log << MSG::WARNING << "invalid CSC id!" << endmsg;
180  continue;
181  }
182 
183  m_idSet.insert(id);
184 
185  MuonFixedId chId = idManip.chamberIdentifier(id);
186 
187  bool measuresPhi = idManip.measuresPhi(id);
188  bool isMdt = id.is_mdt();
189  bool isFirst = isMdt ? id.mdtMultilayer() == 1 : measuresPhi;
190 
191  // check whether first chamber or new chamber
192  if (!currentChamberSummary || currentChamberSummary->chId != chId) {
193  m_summary.chamberHitSummary.emplace_back(chId);
194  currentChamberSummary = &m_summary.chamberHitSummary.back();
195  }
196 
197  MuonCalibTrackSummary::ChamberHitSummary::Projection& proj =
198  isFirst ? currentChamberSummary->etaProjection() : currentChamberSummary->phiProjection();
199 
200  ++proj.nhits;
201 
202  ++m_summary.nhits;
203  if (measuresPhi)
205  else
207 
208  MuonFixedIdManipulator::PhiStationIndex phiStationIndex = idManip.phiStationLayerIndex(id);
209  if (measuresPhi) { m_summary.phiStationLayers.insert(phiStationIndex); }
210  MuonFixedIdManipulator::StationIndex stationIndex = idManip.stationLayerIndex(id);
211  m_summary.precisionStationLayers.insert(stationIndex);
212  if (currentChamberSummary->netaHits() > 2 && currentChamberSummary->nphiHits() > 2) {
213  m_summary.goodPrecisionStationLayers.insert(stationIndex);
214  m_summary.phiEtaStationLayers.insert(phiStationIndex);
215  }
216  }
217  }

Member Function Documentation

◆ addCloseHit() [1/8]

void MuonCalib::MuonCalibSegment::addCloseHit ( const CscHitPtr hit)
inherited

add the csc hit to the set nearby the segment

Definition at line 210 of file MuonCalibSegment.cxx.

210 { m_cscCloseHits.emplace_back(hit); }

◆ addCloseHit() [2/8]

void MuonCalib::MuonCalibSegment::addCloseHit ( const MdtHitPtr hit)
inherited

add the mdt hit to the set nearby the segment

Definition at line 207 of file MuonCalibSegment.cxx.

207 { m_mdtCloseHits.emplace_back(hit); }

◆ addCloseHit() [3/8]

void MuonCalib::MuonCalibSegment::addCloseHit ( const RpcHitPtr hit)
inherited

add the csc hit to the set nearby the segment

Definition at line 213 of file MuonCalibSegment.cxx.

213 { m_rpcCloseHits.emplace_back(hit); }

◆ addCloseHit() [4/8]

void MuonCalib::MuonCalibSegment::addCloseHit ( const TgcHitPtr hit)
inherited

add the tgc hit to the set nearby the segment

Definition at line 216 of file MuonCalibSegment.cxx.

216 { m_tgcCloseHits.emplace_back(hit); }

◆ addCloseHit() [5/8]

void MuonCalib::MuonCalibSegment::addCloseHit ( CscCalibHitBase hit)
inherited

add the csc hit to the set nearby the segment

Definition at line 198 of file MuonCalibSegment.cxx.

198 { m_cscCloseHits.emplace_back(hit); }

◆ addCloseHit() [6/8]

void MuonCalib::MuonCalibSegment::addCloseHit ( MdtCalibHitBase hit)
inherited

add the mdt hit to the set nearby the segment

Definition at line 195 of file MuonCalibSegment.cxx.

195 { m_mdtCloseHits.emplace_back(hit); }

◆ addCloseHit() [7/8]

void MuonCalib::MuonCalibSegment::addCloseHit ( RpcCalibHitBase hit)
inherited

add the csc hit to the set nearby the segment

Definition at line 201 of file MuonCalibSegment.cxx.

201 { m_rpcCloseHits.emplace_back(hit); }

◆ addCloseHit() [8/8]

void MuonCalib::MuonCalibSegment::addCloseHit ( TgcCalibHitBase hit)
inherited

add the tgc hit to the set nearby the segment

Version using the smart pointers

Definition at line 204 of file MuonCalibSegment.cxx.

204 { m_tgcCloseHits.emplace_back(hit); }

◆ addHitOnTrack() [1/8]

void MuonCalib::MuonCalibSegment::addHitOnTrack ( const CscHitPtr hit)
inherited

add the CscCalibHitBase to the set assigned to the segment

Definition at line 209 of file MuonCalibSegment.cxx.

209 { m_cscHitsOnTrack.emplace_back(hit); }

◆ addHitOnTrack() [2/8]

void MuonCalib::MuonCalibSegment::addHitOnTrack ( const MdtHitPtr hit)
inherited

add the MdtCalibHitBase to the set assigned to the segment

Definition at line 206 of file MuonCalibSegment.cxx.

206 { m_mdtHitsOnTrack.emplace_back(hit); }

◆ addHitOnTrack() [3/8]

void MuonCalib::MuonCalibSegment::addHitOnTrack ( const RpcHitPtr hit)
inherited

add the CscCalibHitBase to the set assigned to the segment

Definition at line 212 of file MuonCalibSegment.cxx.

212 { m_rpcHitsOnTrack.emplace_back(hit); }

◆ addHitOnTrack() [4/8]

void MuonCalib::MuonCalibSegment::addHitOnTrack ( const TgcHitPtr hit)
inherited

add the TgcCalibHitBase to the set assigned to the segment

Definition at line 215 of file MuonCalibSegment.cxx.

215 { m_tgcHitsOnTrack.emplace_back(hit); }

◆ addHitOnTrack() [5/8]

void MuonCalib::MuonCalibSegment::addHitOnTrack ( CscCalibHitBase hit)
inherited

add the CscCalibHitBase to the set assigned to the segment

Definition at line 197 of file MuonCalibSegment.cxx.

197 { m_cscHitsOnTrack.emplace_back(hit); }

◆ addHitOnTrack() [6/8]

void MuonCalib::MuonCalibSegment::addHitOnTrack ( MdtCalibHitBase hit)
inherited

add the MdtCalibHitBase to the set assigned to the segment

Definition at line 194 of file MuonCalibSegment.cxx.

194 { m_mdtHitsOnTrack.emplace_back(hit); }

◆ addHitOnTrack() [7/8]

void MuonCalib::MuonCalibSegment::addHitOnTrack ( RpcCalibHitBase hit)
inherited

add the CscCalibHitBase to the set assigned to the segment

Definition at line 200 of file MuonCalibSegment.cxx.

200 { m_rpcHitsOnTrack.emplace_back(hit); }

◆ addHitOnTrack() [8/8]

void MuonCalib::MuonCalibSegment::addHitOnTrack ( TgcCalibHitBase hit)
inherited

add the TgcCalibHitBase to the set assigned to the segment

Definition at line 203 of file MuonCalibSegment.cxx.

203 { m_tgcHitsOnTrack.emplace_back(hit); }

◆ author()

int MuonCalib::MuonCalibSegment::author ( ) const
inherited

retrieve the segment author

Definition at line 126 of file MuonCalibSegment.cxx.

126 { return m_author; }

◆ chi2()

double MuonCalib::MuonCalibSegment::chi2 ( ) const
inherited

retrieve chi2

Definition at line 183 of file MuonCalibSegment.cxx.

183 { return m_chi2; }

◆ closeHits()

unsigned int MuonCalib::MuonCalibSegment::closeHits ( ) const
inherited

retrieve the sum of all hits close to the MuonCalibSegment.

Definition at line 138 of file MuonCalibSegment.cxx.

138 { return m_mdtCloseHits.size(); }

◆ copy()

void MuonCalib::MuonCalibSegment::copy ( const MuonCalibSegment other)
privateinherited

Definition at line 21 of file MuonCalibSegment.cxx.

21  {
22  m_chi2 = other.chi2();
23  m_dy0 = other.error_dy0();
24  m_dtheta = other.error_dtheta();
25  m_localPosition = other.position();
26  m_localDirection = other.direction();
27  m_localToGlobal = other.localToGlobal();
28  m_qualityFlag = other.qualityFlag();
29  m_author = other.author();
30  m_fittedT0 = other.m_fittedT0; // don't use function as it would return 0 if m_fittedT0 == -99999.
31 
32  m_mdtHitsOnTrack.clear();
33  for (const MdtHitPtr& mdt_it : other.mdtHOT()) { addHitOnTrack(new MdtCalibHitBase(*mdt_it)); }
34 
35  m_mdtCloseHits.clear();
36  for (const MdtHitPtr& mdt_it : other.mdtClose()) { addCloseHit(new MdtCalibHitBase(*mdt_it)); }
37 
38  m_cscHitsOnTrack.clear();
39  for (const CscHitPtr& csc_it : other.cscHOT()) { addHitOnTrack(new CscCalibHitBase(*csc_it)); }
40  for (const CscHitPtr& csc_it : other.cscClose()) { addCloseHit(new CscCalibHitBase(*csc_it)); }
41 
42  m_rpcHitsOnTrack.clear();
43  for (const RpcHitPtr& rpc_it : other.rpcHOT()) { addHitOnTrack(new RpcCalibHitBase(*rpc_it)); }
44 
45  m_rpcCloseHits.clear();
46  for (const RpcHitPtr& rpc_it : other.rpcClose()) { addCloseHit(new RpcCalibHitBase(*rpc_it)); }
47 
48  m_tgcHitsOnTrack.clear();
49  for (const TgcHitPtr& tgc_it : other.tgcHOT()) { addHitOnTrack(new TgcCalibHitBase(*tgc_it)); }
50 
51  m_tgcCloseHits.clear();
52  for (const TgcHitPtr& tgc_it : other.tgcClose()) { addCloseHit(new TgcCalibHitBase(*tgc_it)); }
53  }

◆ cscClose() [1/2]

MuonCalibSegment::CscHitVec & MuonCalib::MuonCalibSegment::cscClose ( )
inherited

retrieve the full set of nearby mdt hits of this segment.

Definition at line 162 of file MuonCalibSegment.cxx.

162 { return m_cscCloseHits; }

◆ cscClose() [2/2]

const MuonCalibSegment::CscHitVec & MuonCalib::MuonCalibSegment::cscClose ( ) const
inherited

retrieve the full set of nearby mdt hits of this segment.

Definition at line 161 of file MuonCalibSegment.cxx.

161 { return m_cscCloseHits; }

◆ cscCloseHits()

unsigned int MuonCalib::MuonCalibSegment::cscCloseHits ( ) const
inherited

retrieve the number of nearby csc hits.

Definition at line 160 of file MuonCalibSegment.cxx.

160 { return m_cscCloseHits.size(); }

◆ cscHitsOnTrack()

unsigned int MuonCalib::MuonCalibSegment::cscHitsOnTrack ( ) const
inherited

retrieve the number of CscCalibHitBase s assigned to this segment

Definition at line 156 of file MuonCalibSegment.cxx.

156 { return m_cscHitsOnTrack.size(); }

◆ cscHOT() [1/2]

MuonCalibSegment::CscHitVec & MuonCalib::MuonCalibSegment::cscHOT ( )
inherited

retrieve the full set of CscCalibHitBase s assigned to this segment

Definition at line 158 of file MuonCalibSegment.cxx.

158 { return m_cscHitsOnTrack; }

◆ cscHOT() [2/2]

const MuonCalibSegment::CscHitVec & MuonCalib::MuonCalibSegment::cscHOT ( ) const
inherited

retrieve the full set of CscCalibHitBase s assigned to this segment

Definition at line 157 of file MuonCalibSegment.cxx.

157 { return m_cscHitsOnTrack; }

◆ deltaHits()

unsigned int MuonCalib::MuonCalibSegment::deltaHits ( ) const
inherited

number of delta hits of this segment

Definition at line 142 of file MuonCalibSegment.cxx.

142 { return m_qualityFlag % 10; }

◆ direction()

const Amg::Vector3D & MuonCalib::MuonCalibSegment::direction ( ) const
inherited

retrieve local direction of segment (on station level) retrieve the transformation from local chamber coordinates into global coordinates

Definition at line 187 of file MuonCalibSegment.cxx.

187 { return m_localDirection; }

◆ dump() [1/2]

std::string MuonCalib::MuonCalibExtendedSegment::dump ( ) const

dump all information to string

Definition at line 219 of file MuonCalibExtendedSegment.cxx.

219  {
220  std::ostringstream sout;
221  sout << dumpPars() << std::endl << dumpSummary();
222  return sout.str();
223  }

◆ dump() [2/2]

std::ostream & MuonCalib::MuonCalibSegment::dump ( std::ostream &  stream) const
inherited

Definition at line 66 of file MuonCalibSegment.cxx.

66  {
67  stream << "MuonCalibSegment with chi2 " << chi2() << std::endl;
68  stream << " -- local position " << position() << " direction " << direction() << std::endl;
69  stream << " -- HitsOnTrack " << hitsOnTrack() << std::endl;
70 
71  // Dump MdtCalibHit
72  for (const MdtHitPtr& mdt_it : mdtHOT()) { mdt_it->dump(stream); }
73  stream << " -- CloseHits " << mdtCloseHits() << std::endl;
74  for (const MdtHitPtr& mdt_it : mdtClose()) { mdt_it->dump(stream); }
75 
76  // Dump CscCalibHit
77  for (const CscHitPtr& csc_it : cscHOT()) { csc_it->dump(stream); }
78  stream << " -- CloseHits " << cscCloseHits() << std::endl;
79  for (const CscHitPtr& csc_it : cscClose()) { csc_it->dump(stream); }
80 
81  // Dump RpcCalibHit
82  for (const RpcHitPtr& rpc_it : rpcHOT()) { rpc_it->dump(stream); }
83  stream << " -- CloseHits " << rpcCloseHits() << std::endl;
84  for (const RpcHitPtr& rpc_it : rpcClose()) { rpc_it->dump(stream); }
85 
86  // Dump TgcCalibHit
87  for (const TgcHitPtr& tgc_it : tgcHOT()) { tgc_it->dump(stream); }
88  stream << " -- CloseHits " << tgcCloseHits() << std::endl;
89  for (const TgcHitPtr& tgc_it : tgcClose()) { tgc_it->dump(stream); }
90 
91  return stream;
92  } // end MuonCalibSegment::dump

◆ dumpPars()

std::string MuonCalib::MuonCalibExtendedSegment::dumpPars ( ) const

dump track parameters to string

Definition at line 225 of file MuonCalibExtendedSegment.cxx.

225  {
226  std::ostringstream sout;
227  sout << "Extended Segment: " << std::setprecision(4) << "chi2 " << chi2() << " r " << (int)globalPosition().perp() << " z "
228  << (int)globalPosition().z() << std::setprecision(5) << " phi " << globalDirection().phi() << " theta "
229  << globalDirection().theta(); // << " nassociatedTracks " << m_associatedTracks.size();
230  return sout.str();
231  }

◆ dumpSummary()

std::string MuonCalib::MuonCalibExtendedSegment::dumpSummary ( ) const

dump track summary to string

Definition at line 233 of file MuonCalibExtendedSegment.cxx.

233  {
234  std::ostringstream sout;
235  sout << m_summary.dump();
236  return sout.str();
237  }

◆ emptyTubes()

unsigned int MuonCalib::MuonCalibSegment::emptyTubes ( ) const
inherited

number of empty tubes of this segment

Definition at line 143 of file MuonCalibSegment.cxx.

143 { return (m_qualityFlag % 1000) / 100; }

◆ error_dtheta()

double MuonCalib::MuonCalibSegment::error_dtheta ( ) const
inherited

retrieve error angle

Definition at line 185 of file MuonCalibSegment.cxx.

185 { return m_dtheta; }

◆ error_dy0()

double MuonCalib::MuonCalibSegment::error_dy0 ( ) const
inherited

retrieve error position

Definition at line 184 of file MuonCalibSegment.cxx.

184 { return m_dy0; }

◆ fittedT0()

double MuonCalib::MuonCalibSegment::fittedT0 ( ) const
inherited

retrieve fitted T0, return -99999 if no fit was performed

Definition at line 113 of file MuonCalibSegment.cxx.

113 { return hasFittedT0() ? m_fittedT0 : 0; }

◆ globalDirection()

Amg::Vector3D MuonCalib::MuonCalibSegment::globalDirection ( ) const
inherited

retrieve global direction

Definition at line 191 of file MuonCalibSegment.cxx.

191 { return Amg::Vector3D(localToGlobal().linear() * direction()); }

◆ globalPosition()

Amg::Vector3D MuonCalib::MuonCalibSegment::globalPosition ( ) const
inherited

retrieve global position

Definition at line 190 of file MuonCalibSegment.cxx.

190 { return Amg::Vector3D(localToGlobal() * position()); }

◆ hasFittedT0()

bool MuonCalib::MuonCalibSegment::hasFittedT0 ( ) const
inherited

check whether t0 was fitted

Definition at line 112 of file MuonCalibSegment.cxx.

112 { return m_fittedT0 != s_dummy_ctor_dbl; }

◆ hitsOnTrack()

unsigned int MuonCalib::MuonCalibSegment::hitsOnTrack ( ) const
inherited

retrieve the sum of all XxxCalibHits assigned to the MuonCalibSegment

Definition at line 136 of file MuonCalibSegment.cxx.

136 { return m_mdtHitsOnTrack.size() + m_cscHitsOnTrack.size(); }

◆ hitsPerML()

unsigned int MuonCalib::MuonCalibSegment::hitsPerML ( int  ML) const
inherited

number of hits per multilayer of this segment

Definition at line 60 of file MuonCalibSegment.cxx.

60  {
61  int counter{0};
62  for (const MdtHitPtr& hit_it : mdtHOT()) { counter += (hit_it->identify().mdtMultilayer() == ML); }
63  return counter;
64  }

◆ idSet()

const IdSet& MuonCalib::MuonCalibExtendedSegment::idSet ( ) const
inline

access hit identifier map (hits give the MuonFixedId

Definition at line 36 of file MuonCalibExtendedSegment.h.

36 { return m_idSet; }

◆ localToGlobal()

const Amg::Transform3D & MuonCalib::MuonCalibSegment::localToGlobal ( ) const
inherited

Definition at line 188 of file MuonCalibSegment.cxx.

188 { return m_localToGlobal; }

◆ mdtClose() [1/2]

MuonCalibSegment::MdtHitVec & MuonCalib::MuonCalibSegment::mdtClose ( )
inherited

retrieve the full set of nearby mdt hits of this segment.

Definition at line 153 of file MuonCalibSegment.cxx.

153 { return m_mdtCloseHits; }

◆ mdtClose() [2/2]

const MuonCalibSegment::MdtHitVec & MuonCalib::MuonCalibSegment::mdtClose ( ) const
inherited

retrieve the full set of nearby mdt hits of this segment.

Definition at line 152 of file MuonCalibSegment.cxx.

152 { return m_mdtCloseHits; }

◆ mdtCloseHits()

unsigned int MuonCalib::MuonCalibSegment::mdtCloseHits ( ) const
inherited

retrieve the number of nearby mdt hits.

Definition at line 151 of file MuonCalibSegment.cxx.

151 { return m_mdtCloseHits.size(); }

◆ mdtHitsOnTrack()

unsigned int MuonCalib::MuonCalibSegment::mdtHitsOnTrack ( ) const
inherited

retrieve the number of MdtCalibHitBase s assigned to this segment

Definition at line 147 of file MuonCalibSegment.cxx.

147 { return m_mdtHitsOnTrack.size(); }

◆ mdtHOT() [1/2]

MuonCalibSegment::MdtHitVec & MuonCalib::MuonCalibSegment::mdtHOT ( )
inherited

retrieve the full set of MdtCalibHitBase s assigned to this segment

Definition at line 149 of file MuonCalibSegment.cxx.

149 { return m_mdtHitsOnTrack; }

◆ mdtHOT() [2/2]

const MuonCalibSegment::MdtHitVec & MuonCalib::MuonCalibSegment::mdtHOT ( ) const
inherited

retrieve the full set of MdtCalibHitBase s assigned to this segment

Definition at line 148 of file MuonCalibSegment.cxx.

148 { return m_mdtHitsOnTrack; }

◆ missedHits()

unsigned int MuonCalib::MuonCalibSegment::missedHits ( ) const
inherited

number of missed hits of this segment (out of time + empty tubes)

Definition at line 141 of file MuonCalibSegment.cxx.

141 { return outOfTimeHits() + emptyTubes(); }

◆ outOfTimeHits()

unsigned int MuonCalib::MuonCalibSegment::outOfTimeHits ( ) const
inherited

number of hits out of time of this segment

Definition at line 144 of file MuonCalibSegment.cxx.

144 { return (m_qualityFlag % 100) / 10; }

◆ position()

const Amg::Vector3D & MuonCalib::MuonCalibSegment::position ( ) const
inherited

retrieve local position of segment (on station level)

Definition at line 186 of file MuonCalibSegment.cxx.

186 { return m_localPosition; }

◆ qualityFlag()

unsigned int MuonCalib::MuonCalibSegment::qualityFlag ( ) const
inherited

retrieve the Fit quality flag

Definition at line 127 of file MuonCalibSegment.cxx.

127 { return m_qualityFlag; }

◆ rawHitAssociationMap() [1/2]

MuonCalibRawHitAssociationMap& MuonCalib::MuonCalibExtendedSegment::rawHitAssociationMap ( )
inline

Definition at line 55 of file MuonCalibExtendedSegment.h.

55 { return m_rawHitAssociationMap; }

◆ rawHitAssociationMap() [2/2]

const MuonCalibRawHitAssociationMap& MuonCalib::MuonCalibExtendedSegment::rawHitAssociationMap ( ) const
inline

access to list of tracks the segment was associated to

add associated track access raw hit assocation map

Definition at line 54 of file MuonCalibExtendedSegment.h.

54 { return m_rawHitAssociationMap; }

◆ refineMdtSelection()

void MuonCalib::MuonCalibSegment::refineMdtSelection ( const std::vector< unsigned int > &  new_selection)
inherited

move trck hits to close hits

Definition at line 94 of file MuonCalibSegment.cxx.

94  {
95  if (new_selection.size() != m_mdtHitsOnTrack.size()) {
96  MsgStream log(Athena::getMessageSvc(), "MuonCalibSegment");
97  log << MSG::WARNING << "MuonCalibSegment::refineMdtSelection: Wrong size of vector!" << endmsg;
98  return;
99  }
100  // copy old hit vector
101  MdtHitVec old_hit_vec(m_mdtHitsOnTrack);
102  m_mdtHitsOnTrack.clear();
103  for (unsigned int i = 0; i < old_hit_vec.size(); i++) {
104  if (!new_selection[i]) {
105  m_mdtHitsOnTrack.emplace_back(old_hit_vec[i]);
106  } else {
107  m_mdtCloseHits.emplace_back(old_hit_vec[i]);
108  }
109  }
110  } // end MuonCalibSegment::refineMdtSelection

◆ rpcClose() [1/2]

MuonCalibSegment::RpcHitVec & MuonCalib::MuonCalibSegment::rpcClose ( )
inherited

retrieve the full set of nearby mdt hits of this segment.

Definition at line 171 of file MuonCalibSegment.cxx.

171 { return m_rpcCloseHits; }

◆ rpcClose() [2/2]

const MuonCalibSegment::RpcHitVec & MuonCalib::MuonCalibSegment::rpcClose ( ) const
inherited

retrieve the full set of nearby mdt hits of this segment.

Definition at line 170 of file MuonCalibSegment.cxx.

170 { return m_rpcCloseHits; }

◆ rpcCloseHits()

unsigned int MuonCalib::MuonCalibSegment::rpcCloseHits ( ) const
inherited

retrieve the number of nearby rpc hits.

Definition at line 169 of file MuonCalibSegment.cxx.

169 { return m_rpcCloseHits.size(); }

◆ rpcHitsOnTrack()

unsigned int MuonCalib::MuonCalibSegment::rpcHitsOnTrack ( ) const
inherited

retrieve the number of RpcCalibHitBase s assigned to this segment

Definition at line 165 of file MuonCalibSegment.cxx.

165 { return m_rpcHitsOnTrack.size(); }

◆ rpcHOT() [1/2]

MuonCalibSegment::RpcHitVec & MuonCalib::MuonCalibSegment::rpcHOT ( )
inherited

retrieve the full set of RpcCalibHitBase s assigned to this segment

Definition at line 167 of file MuonCalibSegment.cxx.

167 { return m_rpcHitsOnTrack; }

◆ rpcHOT() [2/2]

const MuonCalibSegment::RpcHitVec & MuonCalib::MuonCalibSegment::rpcHOT ( ) const
inherited

retrieve the full set of RpcCalibHitBase s assigned to this segment

Definition at line 166 of file MuonCalibSegment.cxx.

166 { return m_rpcHitsOnTrack; }

◆ set()

void MuonCalib::MuonCalibSegment::set ( double  chi2,
const Amg::Vector3D pos,
const Amg::Vector3D dir 
)
inherited

Definition at line 129 of file MuonCalibSegment.cxx.

129  {
130  m_chi2 = chi2;
133  }

◆ setAuthor()

void MuonCalib::MuonCalibSegment::setAuthor ( int  author)
inherited

sets author field

Definition at line 123 of file MuonCalibSegment.cxx.

123 { m_author = author; }

◆ setErrors()

void MuonCalib::MuonCalibSegment::setErrors ( double  error_dy0,
double  error_dtheta 
)
inherited

sets Local errors on MuonCalibSegment parameters

Definition at line 119 of file MuonCalibSegment.cxx.

119  {
120  m_dy0 = error_dy0;
122  }

◆ setFittedT0()

void MuonCalib::MuonCalibSegment::setFittedT0 ( double  t0)
inherited

sets t0 field

Definition at line 124 of file MuonCalibSegment.cxx.

124 { m_fittedT0 = t0; }

◆ setSegment()

void MuonCalib::MuonCalibSegment::setSegment ( const Amg::Vector3D pos,
const Amg::Vector3D dir 
)
inherited

Definition at line 115 of file MuonCalibSegment.cxx.

115  {
118  }

◆ summary()

const MuonCalibTrackSummary& MuonCalib::MuonCalibExtendedSegment::summary ( ) const
inline

access to hit counts

Definition at line 33 of file MuonCalibExtendedSegment.h.

33 { return m_summary; }

◆ tgcClose() [1/2]

MuonCalibSegment::TgcHitVec & MuonCalib::MuonCalibSegment::tgcClose ( )
inherited

retrieve the full set of nearby mdt hits of this segment.

Definition at line 180 of file MuonCalibSegment.cxx.

180 { return m_tgcCloseHits; }

◆ tgcClose() [2/2]

const MuonCalibSegment::TgcHitVec & MuonCalib::MuonCalibSegment::tgcClose ( ) const
inherited

retrieve the full set of nearby mdt hits of this segment.

Definition at line 179 of file MuonCalibSegment.cxx.

179 { return m_tgcCloseHits; }

◆ tgcCloseHits()

unsigned int MuonCalib::MuonCalibSegment::tgcCloseHits ( ) const
inherited

retrieve the number of nearby tgc hits.

Definition at line 178 of file MuonCalibSegment.cxx.

178 { return m_tgcCloseHits.size(); }

◆ tgcHitsOnTrack()

unsigned int MuonCalib::MuonCalibSegment::tgcHitsOnTrack ( ) const
inherited

retrieve the number of TgcCalibHitBase s assigned to this segment

Definition at line 174 of file MuonCalibSegment.cxx.

174 { return m_tgcHitsOnTrack.size(); }

◆ tgcHOT() [1/2]

MuonCalibSegment::TgcHitVec & MuonCalib::MuonCalibSegment::tgcHOT ( )
inherited

retrieve the full set of TgcCalibHitBase s assigned to this segment

Definition at line 176 of file MuonCalibSegment.cxx.

176 { return m_tgcHitsOnTrack; }

◆ tgcHOT() [2/2]

const MuonCalibSegment::TgcHitVec & MuonCalib::MuonCalibSegment::tgcHOT ( ) const
inherited

retrieve the full set of TgcCalibHitBase s assigned to this segment

Definition at line 175 of file MuonCalibSegment.cxx.

175 { return m_tgcHitsOnTrack; }

Member Data Documentation

◆ m_author

int MuonCalib::MuonCalibSegment::m_author {-1}
privateinherited

author flag

Definition at line 195 of file MuonCalibSegment.h.

◆ m_chi2

double MuonCalib::MuonCalibSegment::m_chi2 {FLT_MAX}
privateinherited

goodness of (DC)fit

Definition at line 187 of file MuonCalibSegment.h.

◆ m_cscCloseHits

CscHitVec MuonCalib::MuonCalibSegment::m_cscCloseHits
privateinherited

set of csc hits nearby the segment

Definition at line 178 of file MuonCalibSegment.h.

◆ m_cscHitsOnTrack

CscHitVec MuonCalib::MuonCalibSegment::m_cscHitsOnTrack
privateinherited

set of CscCalibHitBase s assigned to the segment

Definition at line 177 of file MuonCalibSegment.h.

◆ m_dtheta

double MuonCalib::MuonCalibSegment::m_dtheta {FLT_MAX}
privateinherited

error on local direction

Definition at line 189 of file MuonCalibSegment.h.

◆ m_dy0

double MuonCalib::MuonCalibSegment::m_dy0 {FLT_MAX}
privateinherited

error on local position

Definition at line 188 of file MuonCalibSegment.h.

◆ m_fittedT0

double MuonCalib::MuonCalibSegment::m_fittedT0 {s_dummy_ctor_dbl}
privateinherited

fitted t0

Definition at line 193 of file MuonCalibSegment.h.

◆ m_idSet

IdSet MuonCalib::MuonCalibExtendedSegment::m_idSet
private

set with Identifiers on segment

Definition at line 62 of file MuonCalibExtendedSegment.h.

◆ m_localDirection

Amg::Vector3D MuonCalib::MuonCalibSegment::m_localDirection {0., 0., 0.}
privateinherited

direction in station (local) coordinates

Definition at line 191 of file MuonCalibSegment.h.

◆ m_localPosition

Amg::Vector3D MuonCalib::MuonCalibSegment::m_localPosition {0., 0., 0.}
privateinherited

position in station (local) coordinates

Definition at line 190 of file MuonCalibSegment.h.

◆ m_localToGlobal

Amg::Transform3D MuonCalib::MuonCalibSegment::m_localToGlobal {}
privateinherited

transformation local->global

Definition at line 192 of file MuonCalibSegment.h.

◆ m_mdtCloseHits

MdtHitVec MuonCalib::MuonCalibSegment::m_mdtCloseHits
privateinherited

set of mdt hits nearby the segment

Definition at line 175 of file MuonCalibSegment.h.

◆ m_mdtHitsOnTrack

MdtHitVec MuonCalib::MuonCalibSegment::m_mdtHitsOnTrack
privateinherited

hits

set of MdtCalibHitBase s assigned to the segment

Definition at line 174 of file MuonCalibSegment.h.

◆ m_qualityFlag

unsigned int MuonCalib::MuonCalibSegment::m_qualityFlag {0}
privateinherited

flag describing the fit quality

Definition at line 194 of file MuonCalibSegment.h.

◆ m_rawHitAssociationMap

MuonCalibRawHitAssociationMap MuonCalib::MuonCalibExtendedSegment::m_rawHitAssociationMap
private

list of tracks to which the segment was associated

raw hit association map

Definition at line 68 of file MuonCalibExtendedSegment.h.

◆ m_rpcCloseHits

RpcHitVec MuonCalib::MuonCalibSegment::m_rpcCloseHits
privateinherited

set of rpc hits nearby the segment

Definition at line 181 of file MuonCalibSegment.h.

◆ m_rpcHitsOnTrack

RpcHitVec MuonCalib::MuonCalibSegment::m_rpcHitsOnTrack
privateinherited

set of RpcCalibHitBase s assigned to the segment

Definition at line 180 of file MuonCalibSegment.h.

◆ m_summary

MuonCalibTrackSummary MuonCalib::MuonCalibExtendedSegment::m_summary
private

track summary

Definition at line 59 of file MuonCalibExtendedSegment.h.

◆ m_tgcCloseHits

TgcHitVec MuonCalib::MuonCalibSegment::m_tgcCloseHits
privateinherited

set of tgc hits nearby the segment

Definition at line 184 of file MuonCalibSegment.h.

◆ m_tgcHitsOnTrack

TgcHitVec MuonCalib::MuonCalibSegment::m_tgcHitsOnTrack
privateinherited

set of TgcCalibHitBase s assigned to the segment

Definition at line 183 of file MuonCalibSegment.h.

◆ s_dummy_ctor_dbl

constexpr double MuonCalib::MuonCalibSegment::s_dummy_ctor_dbl {-99999.}
staticconstexprprivateinherited

Definition at line 171 of file MuonCalibSegment.h.


The documentation for this class was generated from the following files:
MuonCalib::MuonCalibSegment::addCloseHit
void addCloseHit(MdtCalibHitBase *hit)
add the mdt hit to the set nearby the segment
Definition: MuonCalibSegment.cxx:195
MuonCalib::MuonFixedIdManipulator::EMA
@ EMA
Definition: MuonFixedIdManipulator.h:17
MuonCalib::MuonCalibSegment::hitsOnTrack
unsigned int hitsOnTrack() const
retrieve the sum of all XxxCalibHits assigned to the MuonCalibSegment
Definition: MuonCalibSegment.cxx:136
MuonCalib::MuonCalibSegment::m_cscHitsOnTrack
CscHitVec m_cscHitsOnTrack
set of CscCalibHitBase s assigned to the segment
Definition: MuonCalibSegment.h:177
MuonCalib::MuonCalibTrackSummary::phiStationLayers
std::set< MuonFixedIdManipulator::PhiStationIndex > phiStationLayers
set of phi layers on the track
Definition: MuonCalibTrackSummary.h:110
MuonCalib::MuonCalibSegment::m_mdtHitsOnTrack
MdtHitVec m_mdtHitsOnTrack
hits
Definition: MuonCalibSegment.h:174
MuonCalib::MuonCalibSegment::m_dtheta
double m_dtheta
error on local direction
Definition: MuonCalibSegment.h:189
MuonCalib::MuonFixedIdManipulator::StationIndex
StationIndex
enum defining station layers
Definition: MuonFixedIdManipulator.h:17
MuonCalib::MuonCalibTrackSummary::ntgcPhiHits
unsigned int ntgcPhiHits
Definition: MuonCalibTrackSummary.h:70
MuonCalib::MuonCalibSegment::cscHOT
const CscHitVec & cscHOT() const
retrieve the full set of CscCalibHitBase s assigned to this segment
Definition: MuonCalibSegment.cxx:157
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
MuonCalib::MuonCalibSegment::emptyTubes
unsigned int emptyTubes() const
number of empty tubes of this segment
Definition: MuonCalibSegment.cxx:143
MuonCalib::MuonCalibSegment::s_dummy_ctor_dbl
static constexpr double s_dummy_ctor_dbl
Definition: MuonCalibSegment.h:171
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
MuonCalib::MuonCalibTrackSummary::hasEndcapC
bool hasEndcapC
Definition: MuonCalibTrackSummary.h:76
MuonCalib::MuonCalibSegment::MdtHitVec
std::vector< MdtHitPtr > MdtHitVec
Definition: MuonCalibSegment.h:45
ALFA_EventTPCnv_Dict::t0
std::vector< ALFA_RawData_p1 > t0
Definition: ALFA_EventTPCnvDict.h:42
MuonCalib::MuonFixedIdManipulator::PhiStationIndex
PhiStationIndex
enum defining trigger phi layers
Definition: MuonFixedIdManipulator.h:19
MuonCalib::MuonFixedIdManipulator::BM
@ BM
Definition: MuonFixedIdManipulator.h:17
MuonCalib::MuonCalibTrackSummary::nmdtHits
unsigned int nmdtHits
Definition: MuonCalibTrackSummary.h:66
MuonCalib::MuonCalibSegment::outOfTimeHits
unsigned int outOfTimeHits() const
number of hits out of time of this segment
Definition: MuonCalibSegment.cxx:144
MuonCalib::MuonCalibSegment::m_tgcCloseHits
TgcHitVec m_tgcCloseHits
set of tgc hits nearby the segment
Definition: MuonCalibSegment.h:184
MuonCalib::MuonCalibSegment::hasFittedT0
bool hasFittedT0() const
check whether t0 was fitted
Definition: MuonCalibSegment.cxx:112
MuonCalib::MuonCalibSegment::position
const Amg::Vector3D & position() const
retrieve local position of segment (on station level)
Definition: MuonCalibSegment.cxx:186
MuonCalib::MuonCalibExtendedSegment::m_summary
MuonCalibTrackSummary m_summary
track summary
Definition: MuonCalibExtendedSegment.h:59
MuonCalib::MuonCalibSegment::RpcHitPtr
std::shared_ptr< const RpcCalibHitBase > RpcHitPtr
typedef for a collection of RpcCalibHitBase s
Definition: MuonCalibSegment.h:52
MuonCalib::MuonFixedIdManipulator::BO
@ BO
Definition: MuonFixedIdManipulator.h:17
MuonCalib::MuonCalibSegment::globalPosition
Amg::Vector3D globalPosition() const
retrieve global position
Definition: MuonCalibSegment.cxx:190
MuonCalib::MuonCalibSegment::m_mdtCloseHits
MdtHitVec m_mdtCloseHits
set of mdt hits nearby the segment
Definition: MuonCalibSegment.h:175
isValid
bool isValid(const T &p)
Definition: AtlasPID.h:214
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibTrackSummary::nrpcEtaHits
unsigned int nrpcEtaHits
Definition: MuonCalibTrackSummary.h:69
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
MuonCalib::MuonCalibSegment::rpcHOT
const RpcHitVec & rpcHOT() const
retrieve the full set of RpcCalibHitBase s assigned to this segment
Definition: MuonCalibSegment.cxx:166
MuonCalib::MuonFixedIdManipulator::EMC
@ EMC
Definition: MuonFixedIdManipulator.h:17
MuonCalib::MuonCalibSegment::direction
const Amg::Vector3D & direction() const
retrieve local direction of segment (on station level) retrieve the transformation from local chamber...
Definition: MuonCalibSegment.cxx:187
MuonCalib::MuonCalibTrackSummary::dump
std::string dump() const
dump counts to string
Definition: MuonCalibTrackSummary.cxx:14
MuonCalib::MuonCalibSegment::MuonCalibSegment
MuonCalibSegment(double chi2, const Amg::Vector3D &pos, const Amg::Vector3D &dir, const Amg::Transform3D &locToGlo, unsigned int qualityFlag=0)
constructor fully initializing the segment-parameters, do we need default constructor?
Definition: MuonCalibSegment.cxx:16
MuonCalib::MuonCalibSegment::mdtCloseHits
unsigned int mdtCloseHits() const
retrieve the number of nearby mdt hits.
Definition: MuonCalibSegment.cxx:151
MuonCalib::MuonCalibTrackSummary::phiEtaStationLayers
std::set< MuonFixedIdManipulator::PhiStationIndex > phiEtaStationLayers
set of phi layers which also have eta hits on the track
Definition: MuonCalibTrackSummary.h:116
MuonCalib::MuonCalibSegment::tgcHOT
const TgcHitVec & tgcHOT() const
retrieve the full set of TgcCalibHitBase s assigned to this segment
Definition: MuonCalibSegment.cxx:175
MuonCalib::MuonCalibExtendedSegment::dumpSummary
std::string dumpSummary() const
dump track summary to string
Definition: MuonCalibExtendedSegment.cxx:233
MuonCalib::MuonCalibSegment::cscCloseHits
unsigned int cscCloseHits() const
retrieve the number of nearby csc hits.
Definition: MuonCalibSegment.cxx:160
MuonCalib::MuonCalibSegment::m_rpcHitsOnTrack
RpcHitVec m_rpcHitsOnTrack
set of RpcCalibHitBase s assigned to the segment
Definition: MuonCalibSegment.h:180
lumiFormat.i
int i
Definition: lumiFormat.py:92
MuonCalib::MuonCalibSegment::tgcCloseHits
unsigned int tgcCloseHits() const
retrieve the number of nearby tgc hits.
Definition: MuonCalibSegment.cxx:178
MuonCalib::MuonCalibSegment::cscClose
const CscHitVec & cscClose() const
retrieve the full set of nearby mdt hits of this segment.
Definition: MuonCalibSegment.cxx:161
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuonCalib::MuonCalibTrackSummary::ncscEtaHits
unsigned int ncscEtaHits
Definition: MuonCalibTrackSummary.h:73
MuonCalib::MuonFixedIdManipulator::EIA
@ EIA
Definition: MuonFixedIdManipulator.h:17
MuonCalib::MuonCalibTrackSummary::ntgcEtaHits
unsigned int ntgcEtaHits
Definition: MuonCalibTrackSummary.h:71
MuonCalib::MuonCalibSegment::m_dy0
double m_dy0
error on local position
Definition: MuonCalibSegment.h:188
dumpNswErrorDb.linear
def linear
Definition: dumpNswErrorDb.py:23
MuonCalib::MuonCalibSegment::m_fittedT0
double m_fittedT0
fitted t0
Definition: MuonCalibSegment.h:193
MuonCalib::MuonCalibTrackSummary::chamberHitSummary
std::vector< ChamberHitSummary > chamberHitSummary
Definition: MuonCalibTrackSummary.h:107
MuonCalib::MuonCalibSegment::rpcCloseHits
unsigned int rpcCloseHits() const
retrieve the number of nearby rpc hits.
Definition: MuonCalibSegment.cxx:169
MuonCalib::MuonCalibTrackSummary::ncscPhiHits
unsigned int ncscPhiHits
Definition: MuonCalibTrackSummary.h:72
MuonCalib::MuonCalibTrackSummary::hasBarrel
bool hasBarrel
Definition: MuonCalibTrackSummary.h:77
make_coralServer_rep.proj
proj
Definition: make_coralServer_rep.py:48
MuonCalib::MuonCalibSegment::CscHitPtr
std::shared_ptr< const CscCalibHitBase > CscHitPtr
typedef for a collection of CscCalibHitBase s
Definition: MuonCalibSegment.h:48
beamspotman.dir
string dir
Definition: beamspotman.py:623
MuonCalib::MuonCalibSegment::author
int author() const
retrieve the segment author
Definition: MuonCalibSegment.cxx:126
MuonCalib::MuonCalibSegment::m_rpcCloseHits
RpcHitVec m_rpcCloseHits
set of rpc hits nearby the segment
Definition: MuonCalibSegment.h:181
MuonCalib::MuonCalibTrackSummary::nrpcPhiHits
unsigned int nrpcPhiHits
Definition: MuonCalibTrackSummary.h:68
MuonCalib::MuonCalibTrackSummary::precisionStationLayers
std::set< MuonFixedIdManipulator::StationIndex > precisionStationLayers
set of precision layers on the track
Definition: MuonCalibTrackSummary.h:113
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
MuonCalib::MuonCalibSegment::m_tgcHitsOnTrack
TgcHitVec m_tgcHitsOnTrack
set of TgcCalibHitBase s assigned to the segment
Definition: MuonCalibSegment.h:183
MuonCalib::MuonCalibExtendedSegment::dumpPars
std::string dumpPars() const
dump track parameters to string
Definition: MuonCalibExtendedSegment.cxx:225
MuonCalib::MuonCalibSegment::tgcClose
const TgcHitVec & tgcClose() const
retrieve the full set of nearby mdt hits of this segment.
Definition: MuonCalibSegment.cxx:179
MuonCalib::MuonCalibSegment::error_dtheta
double error_dtheta() const
retrieve error angle
Definition: MuonCalibSegment.cxx:185
MuonCalib::MuonCalibSegment::addHitOnTrack
void addHitOnTrack(MdtCalibHitBase *hit)
add the MdtCalibHitBase to the set assigned to the segment
Definition: MuonCalibSegment.cxx:194
MuonCalib::MuonCalibSegment::m_localPosition
Amg::Vector3D m_localPosition
position in station (local) coordinates
Definition: MuonCalibSegment.h:190
MuonCalib::MuonCalibSegment::globalDirection
Amg::Vector3D globalDirection() const
retrieve global direction
Definition: MuonCalibSegment.cxx:191
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::MuonCalibExtendedSegment::m_rawHitAssociationMap
MuonCalibRawHitAssociationMap m_rawHitAssociationMap
list of tracks to which the segment was associated
Definition: MuonCalibExtendedSegment.h:68
MuonCalib::MuonCalibTrackSummary::goodPrecisionStationLayers
std::set< MuonFixedIdManipulator::StationIndex > goodPrecisionStationLayers
set of precision layers with (MDT: two multi layers, CSC: at least 2 eta and phi hits) on the track
Definition: MuonCalibTrackSummary.h:119
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonCalib::MuonCalibSegment::rpcClose
const RpcHitVec & rpcClose() const
retrieve the full set of nearby mdt hits of this segment.
Definition: MuonCalibSegment.cxx:170
MuonCalib::MuonCalibSegment::m_cscCloseHits
CscHitVec m_cscCloseHits
set of csc hits nearby the segment
Definition: MuonCalibSegment.h:178
MuonCalib::MuonCalibTrackSummary::nmdtHitsBelowADCCut
unsigned int nmdtHitsBelowADCCut
Definition: MuonCalibTrackSummary.h:67
MuonCalib::MuonCalibSegment::error_dy0
double error_dy0() const
retrieve error position
Definition: MuonCalibSegment.cxx:184
MuonCalib::MuonFixedIdManipulator::EIC
@ EIC
Definition: MuonFixedIdManipulator.h:17
MuonCalib::MuonCalibSegment::chi2
double chi2() const
retrieve chi2
Definition: MuonCalibSegment.cxx:183
MuonCalib::MuonCalibSegment::TgcHitPtr
std::shared_ptr< const TgcCalibHitBase > TgcHitPtr
typedef for a collection of TgcCalibHitBase s
Definition: MuonCalibSegment.h:56
MuonCalib::MuonCalibSegment::mdtHOT
const MdtHitVec & mdtHOT() const
retrieve the full set of MdtCalibHitBase s assigned to this segment
Definition: MuonCalibSegment.cxx:148
MuonCalib::MuonCalibExtendedSegment::m_idSet
IdSet m_idSet
set with Identifiers on segment
Definition: MuonCalibExtendedSegment.h:62
MuonCalib::MuonCalibTrackSummary::nhits
unsigned int nhits
Definition: MuonCalibTrackSummary.h:54
MuonCalib::MuonCalibSegment::m_localToGlobal
Amg::Transform3D m_localToGlobal
transformation local->global
Definition: MuonCalibSegment.h:192
test_pyathena.counter
counter
Definition: test_pyathena.py:15
MuonCalib::MuonCalibSegment::m_qualityFlag
unsigned int m_qualityFlag
flag describing the fit quality
Definition: MuonCalibSegment.h:194
MuonCalib::MuonCalibTrackSummary::hasBarrelLayersWithRPC
bool hasBarrelLayersWithRPC
Definition: MuonCalibTrackSummary.h:80
MuonCalib::MuonCalibTrackSummary::hasEndcapA
bool hasEndcapA
Definition: MuonCalibTrackSummary.h:75
MuonCalib::MuonCalibTrackSummary::hasEndcapLayersWithTGC
bool hasEndcapLayersWithTGC
Definition: MuonCalibTrackSummary.h:79
MuonCalib::MuonCalibSegment::m_localDirection
Amg::Vector3D m_localDirection
direction in station (local) coordinates
Definition: MuonCalibSegment.h:191
MuonCalib::MuonCalibSegment::localToGlobal
const Amg::Transform3D & localToGlobal() const
Definition: MuonCalibSegment.cxx:188
MuonCalib::MuonCalibSegment::mdtClose
const MdtHitVec & mdtClose() const
retrieve the full set of nearby mdt hits of this segment.
Definition: MuonCalibSegment.cxx:152
MuonCalib::MuonCalibSegment::MdtHitPtr
std::shared_ptr< MdtCalibHitBase > MdtHitPtr
typedef for a collection of MdtCalibHitBase s
Definition: MuonCalibSegment.h:44
MuonCalib::MuonCalibSegment::m_author
int m_author
author flag
Definition: MuonCalibSegment.h:195
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5
MuonCalib::MuonCalibSegment::m_chi2
double m_chi2
goodness of (DC)fit
Definition: MuonCalibSegment.h:187