ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MuonCalibEventBase
src
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
5
#include "
MuonCalibEventBase/MuonCalibRawRpcHit.h
"
6
7
#include <iostream>
8
9
namespace
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; }
16
void
MuonCalibRawRpcHit::setId
(
MuonFixedId
Id) {
m_pars
.id = Id; }
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
; }
20
void
MuonCalibRawRpcHit::setWidth
(
float
width
) {
m_pars
.width =
width
; }
21
void
MuonCalibRawRpcHit::setLength
(
float
length
) {
m_pars
.length =
length
; }
22
MuonCalibRawRpcHit::MuonCalibRawRpcHit
(
const
MuonCalibRawRpcHit::defineParams
& pars) :
m_pars
{pars} {}
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
37
std::ostream&
operator<<
(std::ostream& stream,
const
MuonCalib::MuonCalibRawRpcHit
&
hit
) {
return
hit
.dump(stream); }
hit
bool hit(const Container &ids, int pdgId)
Definition
JetIRCSafeLabelTool.cxx:64
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawRpcHit &hit)
Definition
MuonCalibRawRpcHit.cxx:37
MuonCalibRawRpcHit.h
MuonCalib::MuonCalibRawRpcHit
Calib-EDM version of RpcPrepData class, containing uncalibrated information.
Definition
MuonCalibRawRpcHit.h:27
MuonCalib::MuonCalibRawRpcHit::setT
void setT(float t)
sets the time
Definition
MuonCalibRawRpcHit.cxx:19
MuonCalib::MuonCalibRawRpcHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition
MuonCalibRawRpcHit.cxx:18
MuonCalib::MuonCalibRawRpcHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition
MuonCalibRawRpcHit.cxx:10
MuonCalib::MuonCalibRawRpcHit::t
float t() const
retrieve the time
Definition
MuonCalibRawRpcHit.cxx:13
MuonCalib::MuonCalibRawRpcHit::setWidth
void setWidth(float width)
sets the strip width
Definition
MuonCalibRawRpcHit.cxx:20
MuonCalib::MuonCalibRawRpcHit::width
float width() const
retrieve the strip width
Definition
MuonCalibRawRpcHit.cxx:14
MuonCalib::MuonCalibRawRpcHit::setLength
void setLength(float length)
sets the strip length
Definition
MuonCalibRawRpcHit.cxx:21
MuonCalib::MuonCalibRawRpcHit::MuonCalibRawRpcHit
MuonCalibRawRpcHit()=default
default constructor
MuonCalib::MuonCalibRawRpcHit::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition
MuonCalibRawRpcHit.cxx:16
MuonCalib::MuonCalibRawRpcHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawRpcHit
Definition
MuonCalibRawRpcHit.cxx:24
MuonCalib::MuonCalibRawRpcHit::length
float length() const
retrieve the strip length
Definition
MuonCalibRawRpcHit.cxx:15
MuonCalib::MuonCalibRawRpcHit::m_pars
defineParams m_pars
Definition
MuonCalibRawRpcHit.h:62
MuonCalib::MuonCalibRawRpcHit::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
Definition
MuonCalibRawRpcHit.cxx:11
MuonCalib::MuonCalibRawRpcHit::setGlobalPosition
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Definition
MuonCalibRawRpcHit.cxx:17
MuonCalib::MuonCalibRawRpcHit::occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Definition
MuonCalibRawRpcHit.cxx:12
MuonCalib::MuonFixedId
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition
MuonFixedId.h:50
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:47
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition
CscCalcPed.cxx:21
MuonCalib::MuonCalibRawRpcHit::defineParams
Definition
MuonCalibRawRpcHit.h:34
Generated on
for ATLAS Offline Software by
1.17.0