Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
3 #include "GaudiKernel/SystemOfUnits.h"
11 m_idHelperSvc{idHelperSvc} {}
20 return StatusCode::FAILURE;
24 if (newConstants.pars().size() < 2) {
30 " are incomplete. 2 parameters are required!");
32 return StatusCode::FAILURE;
36 m_database[gasGapIdentifier] = std::move(newConstants);
38 return StatusCode::SUCCESS;
54 double trf_theta_in_degrees = (theta > 90) ? (180 - theta) : theta;
56 double tan_theta =
std::tan(trf_theta_in_radians);
63 double vDrift =
m_database.at(gasGapIdentifier).pars()[0] + ((
m_database.at(gasGapIdentifier).pars()[1])*trf_theta_in_degrees);
67 vDrift = (tan_theta != 0 ) ? std::fabs(vDrift/tan_theta) : std::fabs(vDrift);
70 ATH_MSG_VERBOSE(
"New drift velocity: " << vDrift <<
" for theta: " << trf_theta_in_degrees <<
" degrees" );
StatusCode storeConstants(const Identifier &gasGapId, CTPParameters &&newConstants)
int stationName(const Identifier &id) const
#define ATH_MSG_VERBOSE(x)
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
virtual const MmIdHelper & mmIdHelper() const =0
access to CscIdHelper
const Muon::IMuonIdHelperSvc * m_idHelperSvc
int multilayer(const Identifier &id) const
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual std::string toStringGasGap(const Identifier &id) const =0
print all fields up to gas gap to string
Class to provide easy MsgStream access and capabilities.
int stationPhi(const Identifier &id) const
double getCTPCorrectedDriftVelocity(const Identifier &identifier, const double theta) const
int stationEta(const Identifier &id) const
int gasGap(const Identifier &id) const override
get the hashes
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
mmCTPClusterCalibData(const Muon::IMuonIdHelperSvc *idHelperSvc)