ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include <TH1.h>
11
13
14public:
15 NswOccupancyAlg(const std::string& name, ISvcLocator* pSvcLocator);
16
17 StatusCode initialize() override;
18 StatusCode execute() override;
19 unsigned int cardinality() const override final { return 1; }
20
21private:
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
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};
46
47
48};
49#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
TH1 * m_pairVsSingleOccupancy
unsigned int cardinality() const override final
std::vector< Layer > LayerVec
void fillHistograms(const Layer &layers)
StatusCode initialize() override
Gaudi::Property< std::string > m_fileStream
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
std::vector< Identifier > Layer
Gaudi::Property< unsigned int > m_binWidth
LayerVec sortByLayer(std::vector< Identifier > &micromegaHits) const
StatusCode execute() override
NswOccupancyAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< MuonPatternCombinationCollection > m_patternCollKey
Property holding a SG store/key/clid from which a ReadHandle is made.