ATLAS Offline Software
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 
14 public:
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 
21 private:
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 
46 
47 
48 };
49 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
NswOccupancyAlg
Definition: NswOccupancyAlg.h:12
NswOccupancyAlg::execute
StatusCode execute() override
Definition: NswOccupancyAlg.cxx:33
NswOccupancyAlg::m_pairBinOccupancy
TH1 * m_pairBinOccupancy
Definition: NswOccupancyAlg.h:44
module_driven_slicing.layers
layers
Definition: module_driven_slicing.py:114
NswOccupancyAlg::fillHistograms
void fillHistograms(const Layer &layers)
Definition: NswOccupancyAlg.cxx:86
NswOccupancyAlg::m_patternCollKey
SG::ReadHandleKey< MuonPatternCombinationCollection > m_patternCollKey
Definition: NswOccupancyAlg.h:33
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
NswOccupancyAlg::m_singleBinOccupancy
TH1 * m_singleBinOccupancy
Definition: NswOccupancyAlg.h:43
AthHistogramAlgorithm.h
NswOccupancyAlg::LayerVec
std::vector< Layer > LayerVec
Definition: NswOccupancyAlg.h:26
NswOccupancyAlg::Layer
std::vector< Identifier > Layer
Definition: NswOccupancyAlg.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
NswOccupancyAlg::cardinality
unsigned int cardinality() const override final
Definition: NswOccupancyAlg.h:19
MuonPatternCombinationCollection.h
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
NswOccupancyAlg::sortByLayer
LayerVec sortByLayer(std::vector< Identifier > &micromegaHits) const
Definition: NswOccupancyAlg.cxx:65
NswOccupancyAlg::m_pairVsSingleOccupancy
TH1 * m_pairVsSingleOccupancy
Definition: NswOccupancyAlg.h:45
NswOccupancyAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: NswOccupancyAlg.h:22
TH1
Definition: rootspy.cxx:268
NswOccupancyAlg::initialize
StatusCode initialize() override
Definition: NswOccupancyAlg.cxx:14
NswOccupancyAlg::NswOccupancyAlg
NswOccupancyAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: NswOccupancyAlg.cxx:11
NswOccupancyAlg::m_fileStream
Gaudi::Property< std::string > m_fileStream
Definition: NswOccupancyAlg.h:40
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >
NswOccupancyAlg::m_binWidth
Gaudi::Property< unsigned int > m_binWidth
Definition: NswOccupancyAlg.h:41