ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonDataPrep
STgcClusterization
src
STgcClusterPosition.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef STgcClusterPosition_h
6
#define STgcClusterPosition_h
7
8
#include "Identifier/Identifier.h"
9
10
namespace
Muon
11
{
12
class
STgcClusterPosition
{
13
public
:
14
STgcClusterPosition
() =
default
;
15
STgcClusterPosition
(
const
Identifier
&
id
,
double
pos,
double
err);
16
17
void
setClusterId
(
const
Identifier
&
id
) {
m_clusterId
= id;}
18
void
setMeanPosition
(
double
pos) {
m_meanPosition
= pos;}
19
void
setErrorSquared
(
double
err) {
m_errorSquared
= err;}
20
Identifier
getClusterId
()
const
{
return
m_clusterId
;}
21
double
getMeanPosition
()
const
{
return
m_meanPosition
;}
22
double
getErrorSquared
()
const
{
return
m_errorSquared
;}
23
24
private
:
25
// Id of the channel with maximum charge
26
Identifier
m_clusterId
{};
27
// Mean local position of the cluster
28
double
m_meanPosition
{0.};
29
// Error squared of the mean position, negative value indicates nonexistent/invalid cluster
30
double
m_errorSquared
{-1.};
31
};
32
}
33
34
inline
Muon::STgcClusterPosition::STgcClusterPosition
(
const
Identifier
&
id
,
double
pos,
double
err)
35
:
m_clusterId
(id),
36
m_meanPosition
(pos),
37
m_errorSquared
(err)
38
{
39
}
40
41
#endif
Muon::STgcClusterPosition::m_errorSquared
double m_errorSquared
Definition
STgcClusterPosition.h:30
Muon::STgcClusterPosition::setClusterId
void setClusterId(const Identifier &id)
Definition
STgcClusterPosition.h:17
Muon::STgcClusterPosition::getErrorSquared
double getErrorSquared() const
Definition
STgcClusterPosition.h:22
Muon::STgcClusterPosition::m_clusterId
Identifier m_clusterId
Definition
STgcClusterPosition.h:26
Muon::STgcClusterPosition::setMeanPosition
void setMeanPosition(double pos)
Definition
STgcClusterPosition.h:18
Muon::STgcClusterPosition::getClusterId
Identifier getClusterId() const
Definition
STgcClusterPosition.h:20
Muon::STgcClusterPosition::setErrorSquared
void setErrorSquared(double err)
Definition
STgcClusterPosition.h:19
Muon::STgcClusterPosition::m_meanPosition
double m_meanPosition
Definition
STgcClusterPosition.h:28
Muon::STgcClusterPosition::getMeanPosition
double getMeanPosition() const
Definition
STgcClusterPosition.h:21
Muon::STgcClusterPosition::STgcClusterPosition
STgcClusterPosition()=default
Identifier
Definition
IdentifierFieldParser.cxx:14
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Generated on
for ATLAS Offline Software by
1.17.0