ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MuonCalibEventBase
src
MuonCalibRawCscHit.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/MuonCalibRawCscHit.h
"
6
7
#include <iostream>
8
9
namespace
MuonCalib
{
10
MuonCalibRawCscHit::MuonCalibRawCscHit
(
const
MuonFixedId
&
id
,
const
Amg::Vector3D
&glob,
int
occ,
float
t
,
float
width
,
float
charge
) :
11
m_id
{id},
m_Gpos
{glob},
m_occupancy
{occ},
m_t
{
t
},
m_width
{
width
},
m_charge
{
charge
} {}
12
13
const
MuonFixedId
&
MuonCalibRawCscHit::identify
()
const
{
return
m_id
; }
14
const
Amg::Vector3D
&
MuonCalibRawCscHit::globalPosition
()
const
{
return
m_Gpos
; }
15
int
MuonCalibRawCscHit::occupancy
()
const
{
return
m_occupancy
; }
16
float
MuonCalibRawCscHit::t
()
const
{
return
m_t
; }
17
float
MuonCalibRawCscHit::width
()
const
{
return
m_width
; }
18
float
MuonCalibRawCscHit::charge
()
const
{
return
m_charge
; }
19
20
void
MuonCalibRawCscHit::setId
(
MuonFixedId
Id) {
m_id
= Id; }
21
void
MuonCalibRawCscHit::setGlobalPosition
(
const
Amg::Vector3D
&glob) {
m_Gpos
= glob; }
22
void
MuonCalibRawCscHit::setOccupancy
(
int
occ) {
m_occupancy
= occ; }
23
void
MuonCalibRawCscHit::setT
(
float
t
) {
m_t
=
t
; }
24
void
MuonCalibRawCscHit::setWidth
(
float
width
) {
m_width
=
width
; }
25
void
MuonCalibRawCscHit::setCharge
(
float
charge
) {
m_charge
=
charge
; }
26
27
std::ostream &
MuonCalibRawCscHit::dump
(std::ostream &stream)
const
{
28
stream <<
"MuonCalibRawCscHit with"
<< std::endl;
29
stream <<
" identifier "
<<
identify
() << std::endl;
30
stream <<
" global position "
<<
globalPosition
() << std::endl;
31
stream <<
" occupancy "
<<
occupancy
() << std::endl;
32
stream <<
" time "
<<
t
() << std::endl;
33
stream <<
" width "
<<
width
() << std::endl;
34
stream <<
" charge "
<<
charge
() << std::endl;
35
return
stream;
36
}
37
38
}
// namespace MuonCalib
39
40
std::ostream &
operator<<
(std::ostream &stream,
const
MuonCalib::MuonCalibRawCscHit
&
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::MuonCalibRawCscHit &hit)
Definition
MuonCalibRawCscHit.cxx:40
MuonCalibRawCscHit.h
MuonCalib::MuonCalibRawCscHit
Calib-EDM version of CscPrepData class, containing uncalibrated information.
Definition
MuonCalibRawCscHit.h:29
MuonCalib::MuonCalibRawCscHit::width
float width() const
retrieve the strip width
Definition
MuonCalibRawCscHit.cxx:17
MuonCalib::MuonCalibRawCscHit::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition
MuonCalibRawCscHit.cxx:20
MuonCalib::MuonCalibRawCscHit::m_Gpos
Amg::Vector3D m_Gpos
position of the hit in global coordinates
Definition
MuonCalibRawCscHit.h:58
MuonCalib::MuonCalibRawCscHit::charge
float charge() const
retrieve the charge
Definition
MuonCalibRawCscHit.cxx:18
MuonCalib::MuonCalibRawCscHit::setGlobalPosition
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Definition
MuonCalibRawCscHit.cxx:21
MuonCalib::MuonCalibRawCscHit::t
float t() const
retrieve the time
Definition
MuonCalibRawCscHit.cxx:16
MuonCalib::MuonCalibRawCscHit::m_occupancy
int m_occupancy
occupancy (-1 == not assigned to any segment)
Definition
MuonCalibRawCscHit.h:59
MuonCalib::MuonCalibRawCscHit::m_charge
float m_charge
charge
Definition
MuonCalibRawCscHit.h:62
MuonCalib::MuonCalibRawCscHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition
MuonCalibRawCscHit.cxx:22
MuonCalib::MuonCalibRawCscHit::MuonCalibRawCscHit
MuonCalibRawCscHit()=default
default constructor
MuonCalib::MuonCalibRawCscHit::setT
void setT(float t)
sets the time
Definition
MuonCalibRawCscHit.cxx:23
MuonCalib::MuonCalibRawCscHit::m_id
MuonFixedId m_id
identifier of the raw hit, (a MuonFixedId, not an Identifier)
Definition
MuonCalibRawCscHit.h:57
MuonCalib::MuonCalibRawCscHit::m_width
float m_width
strip width
Definition
MuonCalibRawCscHit.h:61
MuonCalib::MuonCalibRawCscHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawCscHit
Definition
MuonCalibRawCscHit.cxx:27
MuonCalib::MuonCalibRawCscHit::setWidth
void setWidth(float width)
sets the strip width
Definition
MuonCalibRawCscHit.cxx:24
MuonCalib::MuonCalibRawCscHit::setCharge
void setCharge(float charge)
sets the charge
Definition
MuonCalibRawCscHit.cxx:25
MuonCalib::MuonCalibRawCscHit::occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Definition
MuonCalibRawCscHit.cxx:15
MuonCalib::MuonCalibRawCscHit::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
Definition
MuonCalibRawCscHit.cxx:14
MuonCalib::MuonCalibRawCscHit::m_t
float m_t
time
Definition
MuonCalibRawCscHit.h:60
MuonCalib::MuonCalibRawCscHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition
MuonCalibRawCscHit.cxx:13
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
Generated on
for ATLAS Offline Software by
1.17.0