ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonPRDTest
src
NswOccupancyAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef NSWOCCUPANCYALG_H
5
#define NSWOCCUPANCYALG_H
6
#include <
AthenaBaseComps/AthHistogramAlgorithm.h
>
7
#include <
StoreGate/ReadHandleKey.h
>
8
#include <
MuonPattern/MuonPatternCombinationCollection.h
>
9
#include <TH1.h>
10
#include <
MuonIdHelpers/IMuonIdHelperSvc.h
>
11
12
class
NswOccupancyAlg
:
public
AthHistogramAlgorithm
{
13
14
public
:
15
NswOccupancyAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
16
17
StatusCode
initialize
()
override
;
18
StatusCode
execute
(
const
EventContext& ctx)
override
;
19
unsigned
int
cardinality
()
const
override final {
return
1; }
20
21
private
:
22
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
23
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
24
25
using
Layer
= std::vector<Identifier>;
26
using
LayerVec
= std::vector<Layer>;
27
LayerVec
sortByLayer
(std::vector<Identifier>& micromegaHits)
const
;
28
29
void
fillHistograms
(
const
Layer
& layers);
30
31
32
33
SG::ReadHandleKey<MuonPatternCombinationCollection>
m_patternCollKey
{
34
this
,
35
"MuonLayerHoughCombisKey"
,
36
"MuonLayerHoughCombis"
,
37
"Hough combinations"
,
38
};
39
40
Gaudi::Property<std::string>
m_fileStream
{
this
,
"FileStream"
,
"NSWSTORIES"
};
41
Gaudi::Property<unsigned int>
m_binWidth
{
this
,
"BinWidth"
, 100};
42
43
TH1*
m_singleBinOccupancy
{
nullptr
};
44
TH1*
m_pairBinOccupancy
{
nullptr
};
45
TH1*
m_pairVsSingleOccupancy
{
nullptr
};
46
47
48
};
49
#endif
AthHistogramAlgorithm.h
IMuonIdHelperSvc.h
MuonPatternCombinationCollection.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
NswOccupancyAlg::m_pairVsSingleOccupancy
TH1 * m_pairVsSingleOccupancy
Definition
NswOccupancyAlg.h:45
NswOccupancyAlg::cardinality
unsigned int cardinality() const override final
Definition
NswOccupancyAlg.h:19
NswOccupancyAlg::LayerVec
std::vector< Layer > LayerVec
Definition
NswOccupancyAlg.h:26
NswOccupancyAlg::fillHistograms
void fillHistograms(const Layer &layers)
Definition
NswOccupancyAlg.cxx:85
NswOccupancyAlg::initialize
StatusCode initialize() override
Definition
NswOccupancyAlg.cxx:14
NswOccupancyAlg::m_fileStream
Gaudi::Property< std::string > m_fileStream
Definition
NswOccupancyAlg.h:40
NswOccupancyAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
NswOccupancyAlg.h:22
NswOccupancyAlg::Layer
std::vector< Identifier > Layer
Definition
NswOccupancyAlg.h:25
NswOccupancyAlg::m_binWidth
Gaudi::Property< unsigned int > m_binWidth
Definition
NswOccupancyAlg.h:41
NswOccupancyAlg::sortByLayer
LayerVec sortByLayer(std::vector< Identifier > µmegaHits) const
Definition
NswOccupancyAlg.cxx:64
NswOccupancyAlg::m_singleBinOccupancy
TH1 * m_singleBinOccupancy
Definition
NswOccupancyAlg.h:43
NswOccupancyAlg::NswOccupancyAlg
NswOccupancyAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
NswOccupancyAlg.cxx:11
NswOccupancyAlg::execute
StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
NswOccupancyAlg.cxx:33
NswOccupancyAlg::m_patternCollKey
SG::ReadHandleKey< MuonPatternCombinationCollection > m_patternCollKey
Definition
NswOccupancyAlg.h:33
NswOccupancyAlg::m_pairBinOccupancy
TH1 * m_pairBinOccupancy
Definition
NswOccupancyAlg.h:44
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Generated on
for ATLAS Offline Software by
1.17.0