ATLAS Offline Software
Loading...
Searching...
No Matches
UpdateCalibHit.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCALIB_UPDATECALIBHIT_H
6#define MUONCALIB_UPDATECALIBHIT_H
7
8#include <iostream>
9
11#include "GaudiKernel/MsgStream.h"
12#include "MdtCalibInterfaces/IRtRelation.h"
14
15namespace MuonCalib {
16
22
24 public:
25 UpdateCalibHit(const IRtRelation* rt) : m_rt(rt) {}
26
28 if (m_rt) {
29 double t = hit->driftTime();
30 hit->setDriftRadius(m_rt->radius(t), m_rt->sigmaR(t));
31 } else {
32 MsgStream log(Athena::getMessageSvc(), "UpdateCalibHit");
33 log << MSG::WARNING << "UpdateCalibHit failed, invalid rt" << endmsg;
34 }
35 }
36
37 private:
39 };
40
41} // namespace MuonCalib
42
43#endif
#define endmsg
An MdtCalibHit is an object containing all the intermediate information needed in the conversion of r...
Definition MdtCalibHit.h:50
double driftTime() const
retrieve drift time
void setDriftRadius(double r, double sigmaR)
sets drift radius and drift radius error
generic interface for a rt-relation
Definition IRtRelation.h:19
UpdateCalibHit(const IRtRelation *rt)
const IRtRelation * m_rt
void operator()(MdtCalibHit *hit)
singleton-like access to IMessageSvc via open function and helper
IMessageSvc * getMessageSvc(bool quiet=false)
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.