ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MdtCalib
MdtCalibUtils
MdtCalibUtils
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
10
#include "
AthenaKernel/getMessageSvc.h
"
11
#include "GaudiKernel/MsgStream.h"
12
#include "MdtCalibInterfaces/IRtRelation.h"
13
#include "
MuonCalibEvent/MdtCalibHit.h
"
14
15
namespace
MuonCalib
{
16
22
23
class
UpdateCalibHit
{
24
public
:
25
UpdateCalibHit
(
const
IRtRelation
* rt) :
m_rt
(rt) {}
26
27
void
operator()
(
MdtCalibHit
*
hit
) {
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
:
38
const
IRtRelation
*
m_rt
;
39
};
40
41
}
// namespace MuonCalib
42
43
#endif
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
hit
bool hit(const Container &ids, int pdgId)
Definition
JetIRCSafeLabelTool.cxx:64
MdtCalibHit.h
MdtCalibHit
An MdtCalibHit is an object containing all the intermediate information needed in the conversion of r...
Definition
MdtCalibHit.h:50
MuonCalib::IRtRelation
generic interface for a rt-relation
Definition
IRtRelation.h:19
MuonCalib::UpdateCalibHit::UpdateCalibHit
UpdateCalibHit(const IRtRelation *rt)
Definition
UpdateCalibHit.h:25
MuonCalib::UpdateCalibHit::m_rt
const IRtRelation * m_rt
Definition
UpdateCalibHit.h:38
MuonCalib::UpdateCalibHit::operator()
void operator()(MdtCalibHit *hit)
Definition
UpdateCalibHit.h:27
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition
getMessageSvc.cxx:20
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