ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibRawMdtHit.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <iostream>
8
9namespace MuonCalib {
10
14 int MuonCalibRawMdtHit::adcCount() const { return m_adc; }
15 int MuonCalibRawMdtHit::tdcCount() const { return m_tdc; }
17 double MuonCalibRawMdtHit::driftTime() const { return m_t; }
18 double MuonCalibRawMdtHit::driftRadius() const { return m_r; }
19 double MuonCalibRawMdtHit::driftRadiusError() const { return m_dr; }
23 void MuonCalibRawMdtHit::setAdc(int adc) { m_adc = adc; }
24 void MuonCalibRawMdtHit::setTdc(int tdc) { m_tdc = tdc; }
26 void MuonCalibRawMdtHit::setDriftTime(double t) { m_t = t; }
29
31 m_id{id}, m_Lpos{loc}, m_Gpos{glob}, m_occupancy{occ} {}
32
33 std::ostream &MuonCalibRawMdtHit::dump(std::ostream &stream) const {
34 stream << "MuonCalibRawMdtHit with" << std::endl;
35 stream << " identifier " << identify() << std::endl;
36 stream << " local position " << localPosition() << std::endl;
37 stream << " global position " << globalPosition() << std::endl;
38 stream << " adc " << adcCount() << std::endl;
39 stream << " tdc " << tdcCount() << std::endl;
40 stream << " occupancy " << occupancy() << std::endl;
41 stream << " driftTime " << driftTime() << std::endl;
42 stream << " driftRadius " << driftRadius() << std::endl;
43 stream << " driftRadiusError " << driftRadiusError() << std::endl;
44 return stream;
45 }
46
47} // namespace MuonCalib
48
49std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawMdtHit &hit) { return hit.dump(stream); }
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawMdtHit &hit)
Calib-EDM version of MdtPrepData class, containing uncalibrated information.
double driftTime() const
retrieve the drift time
void setDriftRadiusError(double dr)
sets the error on the drift radius
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawMdtHit
int tdcCount() const
retrieve tdc counts
double driftRadius() const
retrieve the drift radius
const Amg::Vector3D & localPosition() const
retrieve the position expressed in local (station) coordinates
MuonCalibRawMdtHit()=default
default constructor
void setLocalPosition(const Amg::Vector3D &loc)
sets the position expressed in local (station) coordinates
int adcCount() const
retrieve adc counts
double driftRadiusError() const
retrieve the error on the drift radius
void setDriftTime(double t)
sets the drift time
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
void setOccupancy(int occ)
sets the occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
void setDriftRadius(double r)
sets the drift radius
const MuonFixedId & identify() const
retrieve the MuonFixedId
int m_occupancy
occupancy (-1 == not assigned to any segment)
double m_dr
error on the drift radius
void setTdc(int tdc)
sets tdc counts
Amg::Vector3D m_Lpos
position of the hit in local (station) coordinates
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Amg::Vector3D m_Gpos
position of the hit in global coordinates
MuonFixedId m_id
identifier of the raw hit, (is a MuonFixedId, not an Identifier)
void setAdc(int adc)
sets adc counts
void setId(MuonFixedId Id)
sets the MuonFixedId
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
int r
Definition globals.cxx:22
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.