ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7#include <iostream>
8
9namespace 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
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
23 void MuonCalibRawCscHit::setT(float t) { m_t = t; }
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
40std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawCscHit &hit) { return hit.dump(stream); }
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawCscHit &hit)
Calib-EDM version of CscPrepData class, containing uncalibrated information.
float width() const
retrieve the strip width
void setId(MuonFixedId Id)
sets the MuonFixedId
Amg::Vector3D m_Gpos
position of the hit in global coordinates
float charge() const
retrieve the charge
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
float t() const
retrieve the time
int m_occupancy
occupancy (-1 == not assigned to any segment)
void setOccupancy(int occ)
sets the occupancy
MuonCalibRawCscHit()=default
default constructor
void setT(float t)
sets the time
MuonFixedId m_id
identifier of the raw hit, (a MuonFixedId, not an Identifier)
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawCscHit
void setWidth(float width)
sets the strip width
void setCharge(float charge)
sets the charge
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
const MuonFixedId & identify() const
retrieve the MuonFixedId
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.