 |
ATLAS Offline Software
|
Go to the documentation of this file.
19 declareInterface<IMuonSegmentHitSummaryTool>(
this);
21 "Cut on distance from tube end used for holes, negative value means in the tube");
32 return StatusCode::SUCCESS;
44 ATH_MSG_ERROR(
"Null pointer to the read MuonDetectorManager conditions object");
49 double shortestTube {FLT_MAX};
51 bool transformIsSet =
false;
57 using namespace MuonStationIndex;
82 int layIndex = 4 * (ml - 1) + (lay - 1);
97 if (!transformIsSet) {
101 dxdy = std::abs(ldir.y()) > 0.001 ? ldir.x() / ldir.y() : 1000.;
102 transformIsSet =
true;
104 if (!mdtShortest || tubeLen < shortestTube) {
106 shortestTube = tubeLen;
109 const bool first_layer = (
m_idHelperSvc->mdtIdHelper().multilayer(
id) == 1);
135 const bool isStereo =
m_idHelperSvc->mmIdHelper().isStereo(
id);
148 int layIndex = 4 * (ml - 1) + (lay - 1);
152 if (transformIsSet) {
159 double ytube = (gToAMDB * detEl->
center(
id)).
y();
160 double xint = dxdy * (ytube - lpos.y()) + lpos.x();
174 if (
counts.netaHits != 0) {
182 int currentEnclosedHoles = 0;
183 bool firstLayerWithHits =
false;
186 hitCounts.
nmdtHoles += lit.second.nholes;
187 if (lit.second.nhits == 0) {
188 ++currentEnclosedHoles;
194 currentEnclosedHoles = 0;
195 firstLayerWithHits =
true;
201 if (0.5 * shortestTube - std::abs(posAlongTube) < 100.) hitCounts.
closeToChamberEdge =
true;
virtual const MdtPrepData * prepRawData() const override final
Returns the PrepRawData used to create this corrected measurement.
virtual const Amg::Vector3D & center(const Identifier &) const override final
Return the center of the surface associated with this identifier In the case of silicon it returns th...
virtual Amg::Transform3D GlobalToAmdbLRSTransform() const
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
int adc() const
Returns the ADC (typically range is 0 to 250)
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
double getActiveTubeLength(const int tubeLayer, const int tube) const
Eigen::Affine3d Transform3D
const std::vector< const Trk::MeasurementBase * > & containedMeasurements() const
returns the vector of Trk::MeasurementBase objects
StIndex
enum to classify the different station layers in the muon spectrometer
This class represents the corrected MDT measurements, where the corrections include the effects of wi...
StatusCode initialize(bool used=true)
Eigen::Matrix< double, 3, 1 > Vector3D
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
#define ATH_MSG_WARNING(x)
virtual const Trk::StraightLineSurface & associatedSurface() const override final
Returns the surface on which this measurement was taken.
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
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
virtual const Amg::Vector3D & globalPosition() const override final
global position
const FitQuality * fitQuality() const
return the FitQuality object, returns NULL if no FitQuality is defined
const Amg::Transform3D & transform() const
Returns HepGeom::Transform3D by reference.
virtual const MuonGM::MdtReadoutElement * detectorElement() const override
Returns the detector element corresponding to this PRD.
const Amg::Vector3D & globalDirection() const
global direction