ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace Muon
11{
13 public:
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;}
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
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
34inline Muon::STgcClusterPosition::STgcClusterPosition(const Identifier& id, double pos, double err)
35 : m_clusterId(id),
36 m_meanPosition(pos),
38{
39}
40
41#endif
void setClusterId(const Identifier &id)
Identifier getClusterId() const
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.