ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibRawRpcHit.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <iostream>
8
9namespace MuonCalib {
10 const MuonFixedId& MuonCalibRawRpcHit::identify() const { return m_pars.id; }
11 const Amg::Vector3D& MuonCalibRawRpcHit::globalPosition() const { return m_pars.glob_pos; }
12 int MuonCalibRawRpcHit::occupancy() const { return m_pars.occupancy; }
13 float MuonCalibRawRpcHit::t() const { return m_pars.t; }
14 float MuonCalibRawRpcHit::width() const { return m_pars.width; }
15 float MuonCalibRawRpcHit::length() const { return m_pars.length; }
17 void MuonCalibRawRpcHit::setGlobalPosition(const Amg::Vector3D& glob) { m_pars.glob_pos = glob; }
18 void MuonCalibRawRpcHit::setOccupancy(int occ) { m_pars.occupancy = occ; }
19 void MuonCalibRawRpcHit::setT(float t) { m_pars.t = t; }
23
24 std::ostream& MuonCalibRawRpcHit::dump(std::ostream& stream) const {
25 stream << "MuonCalibRawRpcHit with" << std::endl;
26 stream << " identifier " << identify() << std::endl;
27 stream << " global position " << globalPosition() << std::endl;
28 stream << " occupancy " << occupancy() << std::endl;
29 stream << " time " << t() << std::endl;
30 stream << " width " << width() << std::endl;
31 stream << " length " << length() << std::endl;
32 return stream;
33 }
34
35} // namespace MuonCalib
36
37std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawRpcHit& hit) { return hit.dump(stream); }
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawRpcHit &hit)
Calib-EDM version of RpcPrepData class, containing uncalibrated information.
void setT(float t)
sets the time
void setOccupancy(int occ)
sets the occupancy
const MuonFixedId & identify() const
retrieve the MuonFixedId
float t() const
retrieve the time
void setWidth(float width)
sets the strip width
float width() const
retrieve the strip width
void setLength(float length)
sets the strip length
MuonCalibRawRpcHit()=default
default constructor
void setId(MuonFixedId Id)
sets the MuonFixedId
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawRpcHit
float length() const
retrieve the strip length
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.