ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Tools
RDOAnalysis
src
TgcRDOAnalysis.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#ifndef TGC_RDO_ANALYSIS_H
7
#define TGC_RDO_ANALYSIS_H
8
9
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
10
#include "
StoreGate/ReadHandleKey.h
"
11
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
12
13
#include "
MuonRDO/TgcRdoContainer.h
"
14
15
#include "TH1.h"
16
17
18
namespace
MuonVal
{
19
class
TgcRDOAnalysis
:
public
AthHistogramAlgorithm
{
20
21
public
:
22
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
23
virtual
~TgcRDOAnalysis
()=
default
;
24
virtual
StatusCode
initialize
() override final;
25
virtual StatusCode
execute
(
const
EventContext& ctx) override final;
26
27
private
:
28
SG
::ReadHandleKey<
TgcRdoContainer
>
m_inputKey
{
this
,
"InputKey"
,
"TGCRDO"
};
29
31
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
32
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
33
34
Gaudi::Property<std::string>
m_path
{
this
,
"HistPath"
,
"RpcRDOAnalysis"
};
35
36
struct
HistoSet
{
37
42
HistoSet
(
const
TgcIdHelper
& idHelper,
43
const
ServiceHandle<ITHistSvc>
&
histSvc
,
44
const
std::string& basePath,
45
const
int
stName
);
46
47
48
int
stationName
{-1};
49
TH1*
h_tgcID
{
nullptr
};
50
TH1*
h_tgcSubDetID
{
nullptr
};
51
TH1*
h_tgcRodID
{
nullptr
};
52
TH1*
h_tgcTrigType
{
nullptr
};
53
TH1*
h_tgcBcID
{
nullptr
};
54
TH1*
h_tgcL1ID
{
nullptr
};
55
TH1*
h_bcTag
{
nullptr
};
56
TH1*
h_subDetID
{
nullptr
};
57
TH1*
h_rodID
{
nullptr
};
58
TH1*
h_sswID
{
nullptr
};
59
TH1*
h_slbID
{
nullptr
};
60
TH1*
h_bcID
{
nullptr
};
61
TH1*
h_l1ID
{
nullptr
};
62
TH1*
h_type
{
nullptr
};
63
TH1*
h_slbType
{
nullptr
};
64
TH1*
h_bitPos
{
nullptr
};
65
TH1*
h_track
{
nullptr
};
66
TH1*
h_adj
{
nullptr
};
67
};
68
std::vector<HistoSet>
m_histos
{};
69
70
71
};
72
}
73
#endif
// TGC_RDO_ANALYSIS_H
AthHistogramAlgorithm.h
IMuonIdHelperSvc.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TgcRdoContainer.h
AthHistogramAlgorithm::histSvc
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
Definition
AthHistogramAlgorithm.h:113
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonVal::TgcRDOAnalysis
Definition
TgcRDOAnalysis.h:19
MuonVal::TgcRDOAnalysis::m_path
Gaudi::Property< std::string > m_path
Definition
TgcRDOAnalysis.h:34
MuonVal::TgcRDOAnalysis::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
TgcRDOAnalysis.cxx:68
MuonVal::TgcRDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition
TgcRDOAnalysis.cxx:51
MuonVal::TgcRDOAnalysis::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Service handle of the IdHelperSvc.
Definition
TgcRDOAnalysis.h:31
MuonVal::TgcRDOAnalysis::~TgcRDOAnalysis
virtual ~TgcRDOAnalysis()=default
MuonVal::TgcRDOAnalysis::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonVal::TgcRDOAnalysis::m_inputKey
SG::ReadHandleKey< TgcRdoContainer > m_inputKey
Definition
TgcRDOAnalysis.h:28
MuonVal::TgcRDOAnalysis::m_histos
std::vector< HistoSet > m_histos
Definition
TgcRDOAnalysis.h:68
ServiceHandle
Definition
ClusterMakerTool.h:36
TgcIdHelper
Definition
TgcIdHelper.h:50
TgcRdoContainer
Definition
TgcRdoContainer.h:25
const
MuonVal
Class to store array like branches into the n-tuples.
Definition
HitValAlg.cxx:19
Muon::MuonStationIndex::stName
const std::string & stName(StIndex index)
convert StIndex into a string
Definition
MuonStationIndex.cxx:105
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
MuonVal::TgcRDOAnalysis::HistoSet::h_bcTag
TH1 * h_bcTag
Definition
TgcRDOAnalysis.h:55
MuonVal::TgcRDOAnalysis::HistoSet::h_tgcSubDetID
TH1 * h_tgcSubDetID
Definition
TgcRDOAnalysis.h:50
MuonVal::TgcRDOAnalysis::HistoSet::h_tgcBcID
TH1 * h_tgcBcID
Definition
TgcRDOAnalysis.h:53
MuonVal::TgcRDOAnalysis::HistoSet::h_tgcTrigType
TH1 * h_tgcTrigType
Definition
TgcRDOAnalysis.h:52
MuonVal::TgcRDOAnalysis::HistoSet::h_l1ID
TH1 * h_l1ID
Definition
TgcRDOAnalysis.h:61
MuonVal::TgcRDOAnalysis::HistoSet::h_tgcID
TH1 * h_tgcID
Definition
TgcRDOAnalysis.h:49
MuonVal::TgcRDOAnalysis::HistoSet::h_tgcL1ID
TH1 * h_tgcL1ID
Definition
TgcRDOAnalysis.h:54
MuonVal::TgcRDOAnalysis::HistoSet::h_sswID
TH1 * h_sswID
Definition
TgcRDOAnalysis.h:58
MuonVal::TgcRDOAnalysis::HistoSet::h_type
TH1 * h_type
Definition
TgcRDOAnalysis.h:62
MuonVal::TgcRDOAnalysis::HistoSet::h_rodID
TH1 * h_rodID
Definition
TgcRDOAnalysis.h:57
MuonVal::TgcRDOAnalysis::HistoSet::h_slbID
TH1 * h_slbID
Definition
TgcRDOAnalysis.h:59
MuonVal::TgcRDOAnalysis::HistoSet::h_track
TH1 * h_track
Definition
TgcRDOAnalysis.h:65
MuonVal::TgcRDOAnalysis::HistoSet::h_bcID
TH1 * h_bcID
Definition
TgcRDOAnalysis.h:60
MuonVal::TgcRDOAnalysis::HistoSet::h_subDetID
TH1 * h_subDetID
Definition
TgcRDOAnalysis.h:56
MuonVal::TgcRDOAnalysis::HistoSet::stationName
int stationName
Definition
TgcRDOAnalysis.h:48
MuonVal::TgcRDOAnalysis::HistoSet::h_adj
TH1 * h_adj
Definition
TgcRDOAnalysis.h:66
MuonVal::TgcRDOAnalysis::HistoSet::HistoSet
HistoSet(const TgcIdHelper &idHelper, const ServiceHandle< ITHistSvc > &histSvc, const std::string &basePath, const int stName)
Constructor instantiating the monitoring histograms.
Definition
TgcRDOAnalysis.cxx:12
MuonVal::TgcRDOAnalysis::HistoSet::h_bitPos
TH1 * h_bitPos
Definition
TgcRDOAnalysis.h:64
MuonVal::TgcRDOAnalysis::HistoSet::h_slbType
TH1 * h_slbType
Definition
TgcRDOAnalysis.h:63
MuonVal::TgcRDOAnalysis::HistoSet::h_tgcRodID
TH1 * h_tgcRodID
Definition
TgcRDOAnalysis.h:51
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0