|
ATLAS Offline Software
|
#include <MuonSegmentConverterTool.h>
Definition at line 25 of file MuonSegmentConverterTool.h.
◆ MuonSegmentConverterTool()
Muon::MuonSegmentConverterTool::MuonSegmentConverterTool |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~MuonSegmentConverterTool()
Muon::MuonSegmentConverterTool::~MuonSegmentConverterTool |
( |
| ) |
|
|
default |
◆ addClusterTiming()
helper function to dress output segment with cluster hit timing information
Definition at line 62 of file MuonSegmentConverterTool.cxx.
66 std::vector<const MuonClusterOnTrack*>
clusters;
71 if (!
id.is_valid() || !
m_idHelperSvc->isTrigger(
id))
continue;
74 const MuonClusterOnTrack* clus =
dynamic_cast<const MuonClusterOnTrack*
>(meas);
78 const CompetingMuonClustersOnTrack* crot =
dynamic_cast<const CompetingMuonClustersOnTrack*
>(meas);
79 if (!crot || crot->containedROTs().empty())
continue;
80 clusters.insert(
clusters.end(), crot->containedROTs().begin(), crot->containedROTs().end());
91 ATH_MSG_WARNING(
"Unphysical time returned by tool - ignoring. result.valid = "
95 acc_clusterTimeValid(xaodSeg) = 0;
97 acc_clusterTime(xaodSeg) =
result.time;
98 acc_clusterTimeError(xaodSeg) =
result.error;
99 acc_clusterTimeValid(xaodSeg) =
result.valid;
◆ convert() [1/2]
◆ convert() [2/2]
convert a Muon::MuonSegment to a xAOD::MuonSegment, the segment is add to the container if provided so the caller should not delete it
NSW
Definition at line 105 of file MuonSegmentConverterTool.cxx.
116 xaodSeg->
setPosition(seg.globalPosition().x(), seg.globalPosition().y(), seg.globalPosition().z());
117 xaodSeg->
setDirection(seg.globalDirection().x(), seg.globalDirection().y(), seg.globalDirection().z());
132 IMuonSegmentHitSummaryTool::HitCounts hitCounts =
m_hitSummaryTool->getHitCounts(seg);
133 xaodSeg->
setNHits(hitCounts.nmdtHits()+ hitCounts.nmmHits() + hitCounts.nstgcHits.netaHits + hitCounts.ncscHits.netaHits,
134 hitCounts.nphiTrigHitLayers + hitCounts.nstgcHits.nphiHits, hitCounts.netaTrigHitLayers);
137 if (seg.hasFittedT0()) xaodSeg->
setT0Error(seg.time(), seg.errorTime());
141 acc_mmStereoHits(*xaodSeg) = hitCounts.nmmStereoHits;
142 acc_mmEtaHits(*xaodSeg) = hitCounts.nmmEtaHits;
145 acc_stgcEtaHits(*xaodSeg) = hitCounts.nstgcHits.netaHits;
146 acc_stgcPhiHits(*xaodSeg) = hitCounts.nstgcHits.nphiHits;
◆ initialize()
StatusCode Muon::MuonSegmentConverterTool::initialize |
( |
| ) |
|
◆ m_edmHelper
Initial value:{
this,
"edmHelper",
"Muon::MuonEDMHelperSvc/MuonEDMHelperSvc",
"Handle to the service providing the IMuonEDMHelperSvc interface",
}
Definition at line 64 of file MuonSegmentConverterTool.h.
◆ m_hitSummaryTool
Initial value:{
this,
"MuonSegmentHitSummaryTool",
"Muon::MuonSegmentHitSummaryTool/MuonSegmentHitSummaryTool",
}
Definition at line 49 of file MuonSegmentConverterTool.h.
◆ m_hitTimingTool
Initial value:{
this,
"MuonHitTimingTool",
"Muon::MuonHitTimingTool/MuonHitTimingTool",
}
Definition at line 54 of file MuonSegmentConverterTool.h.
◆ m_idHelperSvc
Initial value:{
this,
"MuonIdHelperSvc",
"Muon::MuonIdHelperSvc/MuonIdHelperSvc",
}
Definition at line 59 of file MuonSegmentConverterTool.h.
The documentation for this class was generated from the following files:
void setPosition(float x, float y, float z)
Sets the global position.
Class describing a MuonSegment.
MuonSegment_v1 MuonSegment
Reference the current persistent version:
bool isValid() const
Test to see if the link can be dereferenced.
void setT0Error(float t0, float t0Error)
Sets the time error.
void setNHits(int nPrecisionHits, int nPhiLayers, int nTrigEtaLayers)
Set the number of hits/layers.
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
void setMuonSegment(const ElementLink< ::Trk::SegmentCollection > &segment)
std::string to_string(const DetectorType &type)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void makePrivateStore()
Create a new (empty) private store for this object.
#define ATH_MSG_WARNING(x)
void setIdentifier(int sector, ::Muon::MuonStationIndex::ChIndex chamberIndex, int etaIndex, ::Muon::MuonStationIndex::TechnologyIndex technology)
Set the identifier.
void setDirection(float px, float py, float pz)
Sets the direction.
ChIndex
enum to classify the different chamber layers in the muon spectrometer
double chiSquared() const
returns the of the overall track fit
int numberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as integer
TechnologyIndex
enum to classify the different layers in the muon spectrometer
void setFitQuality(float chiSquared, float numberDoF)
Set the 'Fit Quality' information.