8#ifndef MUONCALIB_MUONCALIBSEGMENT_H
9#define MUONCALIB_MUONCALIBSEGMENT_H
47 using CscHitPtr = std::shared_ptr<const CscCalibHitBase>;
51 using RpcHitPtr = std::shared_ptr<const RpcCalibHitBase>;
55 using TgcHitPtr = std::shared_ptr<const TgcCalibHitBase>;
168 std::ostream&
dump(std::ostream& stream)
const;
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibSegment &seg)
Athena-independent part of the CscCalibHit.
Athena-independent part of the MdtCalibHit.
A MuonCalibSegment is a reconstructed three dimensional track segment in the MuonSpectrometer.
unsigned int qualityFlag() const
retrieve the Fit quality flag
Amg::Vector3D m_localDirection
direction in station (local) coordinates
double m_chi2
goodness of (DC)fit
double error_dy0() const
retrieve error position
void addCloseHit(MdtCalibHitBase *hit)
add the mdt hit to the set nearby the segment
unsigned int missedHits() const
number of missed hits of this segment (out of time + empty tubes)
unsigned int mdtHitsOnTrack() const
retrieve the number of MdtCalibHitBase s assigned to this segment
const CscHitVec & cscClose() const
retrieve the full set of nearby mdt hits of this segment.
unsigned int tgcCloseHits() const
retrieve the number of nearby tgc hits.
TgcHitVec m_tgcHitsOnTrack
set of TgcCalibHitBase s assigned to the segment
void refineMdtSelection(const std::vector< unsigned int > &new_selection)
move trck hits to close hits
RpcHitVec m_rpcHitsOnTrack
set of RpcCalibHitBase s assigned to the segment
const MdtHitVec & mdtClose() const
retrieve the full set of nearby mdt hits of this segment.
std::vector< RpcHitPtr > RpcHitVec
double error_dtheta() const
retrieve error angle
const Amg::Transform3D & localToGlobal() const
CscHitVec m_cscHitsOnTrack
set of CscCalibHitBase s assigned to the segment
const Amg::Vector3D & direction() const
retrieve local direction of segment (on station level) retrieve the transformation from local chamber...
unsigned int emptyTubes() const
number of empty tubes of this segment
const RpcHitVec & rpcClose() const
retrieve the full set of nearby mdt hits of this segment.
unsigned int rpcCloseHits() const
retrieve the number of nearby rpc hits.
unsigned int deltaHits() const
number of delta hits of this segment
std::shared_ptr< MdtCalibHitBase > MdtHitPtr
typedef for a collection of MdtCalibHitBase s
unsigned int rpcHitsOnTrack() const
retrieve the number of RpcCalibHitBase s assigned to this segment
std::shared_ptr< const RpcCalibHitBase > RpcHitPtr
typedef for a collection of RpcCalibHitBase s
RpcHitVec m_rpcCloseHits
set of rpc hits nearby the segment
void setAuthor(int author)
sets author field
void setErrors(double error_dy0, double error_dtheta)
sets Local errors on MuonCalibSegment parameters
bool hasFittedT0() const
check whether t0 was fitted
const CscHitVec & cscHOT() const
retrieve the full set of CscCalibHitBase s assigned to this segment
MdtHitVec m_mdtCloseHits
set of mdt hits nearby the segment
std::vector< MdtHitPtr > MdtHitVec
void copy(const MuonCalibSegment &other)
unsigned int m_qualityFlag
flag describing the fit quality
unsigned int hitsPerML(int ML) const
number of hits per multilayer of this segment
std::shared_ptr< const TgcCalibHitBase > TgcHitPtr
typedef for a collection of TgcCalibHitBase s
TgcHitVec m_tgcCloseHits
set of tgc hits nearby the segment
std::shared_ptr< const CscCalibHitBase > CscHitPtr
typedef for a collection of CscCalibHitBase s
int author() const
retrieve the segment author
unsigned int hitsOnTrack() const
retrieve the sum of all XxxCalibHits assigned to the MuonCalibSegment
Amg::Vector3D m_localPosition
position in station (local) coordinates
double m_dy0
error on local position
std::vector< TgcHitPtr > TgcHitVec
double m_dtheta
error on local direction
unsigned int mdtCloseHits() const
retrieve the number of nearby mdt hits.
double chi2() const
retrieve chi2
const MdtHitVec & mdtHOT() const
retrieve the full set of MdtCalibHitBase s assigned to this segment
CscHitVec m_cscCloseHits
set of csc hits nearby the segment
std::vector< CscHitPtr > CscHitVec
const TgcHitVec & tgcClose() const
retrieve the full set of nearby mdt hits of this segment.
Amg::Vector3D globalPosition() const
retrieve global position
MuonCalibSegment & operator=(const MuonCalibSegment &seg)
assignment operator
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?
double m_fittedT0
fitted t0
void addHitOnTrack(MdtCalibHitBase *hit)
add the MdtCalibHitBase to the set assigned to the segment
void set(double chi2, const Amg::Vector3D &pos, const Amg::Vector3D &dir)
double fittedT0() const
retrieve fitted T0, return -99999 if no fit was performed
unsigned int closeHits() const
retrieve the sum of all hits close to the MuonCalibSegment.
const TgcHitVec & tgcHOT() const
retrieve the full set of TgcCalibHitBase s assigned to this segment
void setFittedT0(double t0)
sets t0 field
Amg::Vector3D globalDirection() const
retrieve global direction
unsigned int cscHitsOnTrack() const
retrieve the number of CscCalibHitBase s assigned to this segment
static constexpr double s_dummy_ctor_dbl
const RpcHitVec & rpcHOT() const
retrieve the full set of RpcCalibHitBase s assigned to this segment
const Amg::Vector3D & position() const
retrieve local position of segment (on station level)
unsigned int cscCloseHits() const
retrieve the number of nearby csc hits.
void setSegment(const Amg::Vector3D &pos, const Amg::Vector3D &dir)
unsigned int outOfTimeHits() const
number of hits out of time of this segment
unsigned int tgcHitsOnTrack() const
retrieve the number of TgcCalibHitBase s assigned to this segment
virtual ~MuonCalibSegment()
destructor
Amg::Transform3D m_localToGlobal
transformation local->global
MdtHitVec m_mdtHitsOnTrack
hits
Athena independent part of the RpcCalibHit.
Athena independent part of the TgcCalibHit.
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.