ATLAS Offline Software
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 {
13  public:
14  STgcClusterPosition() = default;
15  STgcClusterPosition(const Identifier& id, double pos, double err);
16 
17  void setClusterId(const Identifier& id) {m_clusterId = id;}
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 
35  : m_clusterId(id),
36  m_meanPosition(pos),
37  m_errorSquared(err)
38 {
39 }
40 
41 #endif
Muon::STgcClusterPosition::setErrorSquared
void setErrorSquared(double err)
Definition: STgcClusterPosition.h:19
Muon::STgcClusterPosition
Definition: STgcClusterPosition.h:12
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::STgcClusterPosition::setClusterId
void setClusterId(const Identifier &id)
Definition: STgcClusterPosition.h:17
Muon::STgcClusterPosition::getMeanPosition
double getMeanPosition() const
Definition: STgcClusterPosition.h:21
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
Muon::STgcClusterPosition::m_clusterId
Identifier m_clusterId
Definition: STgcClusterPosition.h:26
Muon::STgcClusterPosition::getErrorSquared
double getErrorSquared() const
Definition: STgcClusterPosition.h:22
Muon::STgcClusterPosition::setMeanPosition
void setMeanPosition(double pos)
Definition: STgcClusterPosition.h:18
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
Muon::STgcClusterPosition::STgcClusterPosition
STgcClusterPosition()=default
Muon::STgcClusterPosition::m_meanPosition
double m_meanPosition
Definition: STgcClusterPosition.h:28
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
Muon::STgcClusterPosition::m_errorSquared
double m_errorSquared
Definition: STgcClusterPosition.h:30
Muon::STgcClusterPosition::getClusterId
Identifier getClusterId() const
Definition: STgcClusterPosition.h:20
Identifier
Definition: IdentifierFieldParser.cxx:14