ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDetDescr
MuonGeoModelTest
src
GeoModelCscTest.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONGEOMODELTESTR4_GEOMODELRCSCTEST_H
5
#define MUONGEOMODELTESTR4_GEOMODELRCSCTEST_H
6
7
#include <
AthenaBaseComps/AthHistogramAlgorithm.h
>
8
#include <
MuonIdHelpers/IMuonIdHelperSvc.h
>
9
#include <set>
10
#include "
MuonReadoutGeometry/MuonDetectorManager.h
"
11
#include "
MuonReadoutGeometry/CscReadoutElement.h
"
12
#include "
StoreGate/ReadCondHandleKey.h
"
13
#include "
MuonTesterTree/MuonTesterTree.h
"
14
#include "
MuonTesterTree/IdentifierBranch.h
"
15
#include "
MuonTesterTree/ThreeVectorBranch.h
"
16
#include "
MuonTesterTree/CoordTransformBranch.h
"
17
namespace
MuonGM
{
18
19
class
GeoModelCscTest
:
public
AthHistogramAlgorithm
{
20
public
:
21
22
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
23
24
StatusCode
initialize
()
override
;
25
StatusCode
execute
(
const
EventContext& ctx)
override
;
26
StatusCode
finalize
()
override
;
27
unsigned
int
cardinality
()
const
override final {
return
1; }
28
29
private
:
30
31
StatusCode
dumpToTree
(
const
EventContext& ctx,
const
CscReadoutElement
* readoutEle);
32
34
SG::ReadCondHandleKey<MuonGM::MuonDetectorManager>
m_detMgrKey
{
35
this
,
"DetectorManagerKey"
,
"MuonDetectorManager"
,
36
"Key of input MuonDetectorManager condition data"
};
37
38
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
39
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
40
42
std::set<Identifier>
m_testStations
{};
43
46
Gaudi::Property<std::vector<std::string>>
m_selectStat
{
47
this
,
"TestStations"
, {},
"Constrain the stations to be tested"
};
48
49
Gaudi::Property<std::vector<std::string>>
m_excludeStat
{
this
,
"ExcludeStations"
, {}};
50
MuonVal::MuonTesterTree
m_tree
{
"CscGeoModelTree"
,
"GEOMODELTESTER"
};
51
53
MuonVal::ScalarBranch<unsigned short>
&
m_stIndex
{
m_tree
.newScalar<
unsigned
short
>(
"stationIndex"
)};
54
MuonVal::ScalarBranch<short>
&
m_stEta
{
m_tree
.newScalar<
short
>(
"stationEta"
)};
55
MuonVal::ScalarBranch<short>
&
m_stPhi
{
m_tree
.newScalar<
short
>(
"stationPhi"
)};
56
MuonVal::ScalarBranch<short>
&
m_stMultiLayer
{
m_tree
.newScalar<
short
>(
"stationMultiLayer"
)};
57
59
MuonVal::CoordTransformBranch
m_readoutTransform
{
m_tree
,
"ElementTransform"
};
60
62
MuonVal::ScalarBranch<float>
&
m_ALineTransS
{
m_tree
.newScalar<
float
>(
"ALineTransS"
, 0.)};
63
MuonVal::ScalarBranch<float>
&
m_ALineTransT
{
m_tree
.newScalar<
float
>(
"ALineTransT"
, 0.)};
64
MuonVal::ScalarBranch<float>
&
m_ALineTransZ
{
m_tree
.newScalar<
float
>(
"ALineTransZ"
, 0.)};
65
MuonVal::ScalarBranch<float>
&
m_ALineRotS
{
m_tree
.newScalar<
float
>(
"ALineRotS"
, 0.)};
66
MuonVal::ScalarBranch<float>
&
m_ALineRotT
{
m_tree
.newScalar<
float
>(
"ALineRotT"
, 0.)};
67
MuonVal::ScalarBranch<float>
&
m_ALineRotZ
{
m_tree
.newScalar<
float
>(
"ALineRotZ"
, 0.)};
68
69
70
MuonVal::CoordSystemsBranch
m_layerTrans
{
m_tree
,
"Layer"
};
71
MuonVal::VectorBranch<bool>
&
m_layMeasPhi
{
m_tree
.newVector<
bool
>(
"LayerMeasPhi"
)};
72
MuonVal::VectorBranch<uint8_t>
&
m_layNumber
{
m_tree
.newVector<uint8_t>(
"LayerNumber"
)};
73
74
};
75
76
}
77
#endif
AthHistogramAlgorithm.h
CoordTransformBranch.h
CscReadoutElement.h
IMuonIdHelperSvc.h
IdentifierBranch.h
MuonDetectorManager.h
MuonTesterTree.h
ReadCondHandleKey.h
ThreeVectorBranch.h
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonGM::CscReadoutElement
Definition
CscReadoutElement.h:56
MuonGM::GeoModelCscTest
Definition
GeoModelCscTest.h:19
MuonGM::GeoModelCscTest::m_layerTrans
MuonVal::CoordSystemsBranch m_layerTrans
Definition
GeoModelCscTest.h:70
MuonGM::GeoModelCscTest::m_ALineTransT
MuonVal::ScalarBranch< float > & m_ALineTransT
Definition
GeoModelCscTest.h:63
MuonGM::GeoModelCscTest::dumpToTree
StatusCode dumpToTree(const EventContext &ctx, const CscReadoutElement *readoutEle)
Definition
GeoModelCscTest.cxx:114
MuonGM::GeoModelCscTest::cardinality
unsigned int cardinality() const override final
Definition
GeoModelCscTest.h:27
MuonGM::GeoModelCscTest::m_layMeasPhi
MuonVal::VectorBranch< bool > & m_layMeasPhi
Definition
GeoModelCscTest.h:71
MuonGM::GeoModelCscTest::m_detMgrKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
MuonDetectorManager from the conditions store.
Definition
GeoModelCscTest.h:34
MuonGM::GeoModelCscTest::m_ALineRotZ
MuonVal::ScalarBranch< float > & m_ALineRotZ
Definition
GeoModelCscTest.h:67
MuonGM::GeoModelCscTest::m_stEta
MuonVal::ScalarBranch< short > & m_stEta
Definition
GeoModelCscTest.h:54
MuonGM::GeoModelCscTest::m_ALineRotT
MuonVal::ScalarBranch< float > & m_ALineRotT
Definition
GeoModelCscTest.h:66
MuonGM::GeoModelCscTest::finalize
StatusCode finalize() override
Definition
GeoModelCscTest.cxx:17
MuonGM::GeoModelCscTest::m_excludeStat
Gaudi::Property< std::vector< std::string > > m_excludeStat
Definition
GeoModelCscTest.h:49
MuonGM::GeoModelCscTest::initialize
StatusCode initialize() override
Definition
GeoModelCscTest.cxx:21
MuonGM::GeoModelCscTest::m_ALineTransS
MuonVal::ScalarBranch< float > & m_ALineTransS
Alignment parameters.
Definition
GeoModelCscTest.h:62
MuonGM::GeoModelCscTest::m_ALineTransZ
MuonVal::ScalarBranch< float > & m_ALineTransZ
Definition
GeoModelCscTest.h:64
MuonGM::GeoModelCscTest::m_selectStat
Gaudi::Property< std::vector< std::string > > m_selectStat
String should be formated like <stationName><stationEta><A/C><stationPhi>.
Definition
GeoModelCscTest.h:46
MuonGM::GeoModelCscTest::m_ALineRotS
MuonVal::ScalarBranch< float > & m_ALineRotS
Definition
GeoModelCscTest.h:65
MuonGM::GeoModelCscTest::m_stMultiLayer
MuonVal::ScalarBranch< short > & m_stMultiLayer
Definition
GeoModelCscTest.h:56
MuonGM::GeoModelCscTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
GeoModelCscTest.h:38
MuonGM::GeoModelCscTest::m_testStations
std::set< Identifier > m_testStations
Set of stations to be tested.
Definition
GeoModelCscTest.h:42
MuonGM::GeoModelCscTest::m_readoutTransform
MuonVal::CoordTransformBranch m_readoutTransform
Transformation of the readout element (Translation, ColX, ColY, ColZ).
Definition
GeoModelCscTest.h:59
MuonGM::GeoModelCscTest::m_stIndex
MuonVal::ScalarBranch< unsigned short > & m_stIndex
Identifier of the readout element.
Definition
GeoModelCscTest.h:53
MuonGM::GeoModelCscTest::m_tree
MuonVal::MuonTesterTree m_tree
Definition
GeoModelCscTest.h:50
MuonGM::GeoModelCscTest::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonGM::GeoModelCscTest::m_layNumber
MuonVal::VectorBranch< uint8_t > & m_layNumber
Definition
GeoModelCscTest.h:72
MuonGM::GeoModelCscTest::m_stPhi
MuonVal::ScalarBranch< short > & m_stPhi
Definition
GeoModelCscTest.h:55
MuonGM::GeoModelCscTest::execute
StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
GeoModelCscTest.cxx:88
MuonVal::CoordSystemsBranch
Helper class to dump the Amg::Transformations into 4 three vector branches.
Definition
CoordTransformBranch.h:28
MuonVal::CoordTransformBranch
Helper class to dump the Amg::Transformations into a single three vector branch The first entry is th...
Definition
CoordTransformBranch.h:15
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal::VectorBranch
Definition
VectorBranch.h:14
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
const
MuonGM
Ensure that the Athena extensions are properly loaded.
Definition
GeoMuonHits.h:27
Generated on
for ATLAS Offline Software by
1.17.0