ATLAS Offline Software
RpcLv1RawDataValAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
5 // Package : RpcRawDataMonitoring
6 // Author: N. Benekos(Illinois) - M. Bianco(INFN-Lecce) - G.
7 // Chiodini(INFN-Lecce) Sept. 2007
8 //
9 // DESCRIPTION:
10 // Subject: RPCLV1-->Offline Muon Data Quality
12 
13 #ifndef RpcLv1RawDataValAlg_H
14 #define RpcLv1RawDataValAlg_H
15 
16 #include <map>
17 #include <sstream>
18 #include <vector>
19 
22 #include "GaudiKernel/Algorithm.h"
23 #include "GaudiKernel/NTuple.h"
28 #include "MuonRDO/RpcCoinMatrix.h"
30 #include "MuonRDO/RpcPad.h"
36 #include "RpcGlobalUtilities.h"
40 
41 class TFile;
43 
45  public:
46  RpcLv1RawDataValAlg(const std::string& type, const std::string& name,
47  const IInterface* parent);
48  virtual ~RpcLv1RawDataValAlg() = default;
50 
52  virtual StatusCode fillHistograms();
53  virtual StatusCode procHistograms();
54 
55  private:
56  // Function for histogram booking and parameterd for fitting
58  const std::string& m_sectorlogic_name, const std::string& m_tower_name,
59  const std::string& m_cma_name);
61  const std::string& m_sectorlogic_name, const std::string& m_tower_name,
62  const std::string& m_cma_name, const std::string& m_thr_name);
64  int m_i_sector, const std::string& m_sectorlogic_name,
65  const std::string& m_cma_name, int m_i_ijk,
66  const std::string& m_ijk_name);
67 
69 
71  int GetTriggerType() const { return m_trigtype; }
72  int m_trigtype{0};
73 
74  int m_sector{0};
75  int m_side{0};
76 
78  "EventInfo", "event info"};
80  "RPC RDO"};
81 
82  std::vector<std::string> m_sectorlogicTowerCma_name_list{};
83  std::vector<std::string> m_sectorlogicTowerCma_name_list2{};
84  std::vector<std::string> m_profile_list{};
85 
86  bool m_doClusters{false};
87  bool m_checkCabling{false};
88  bool m_rpclv1file{false};
89  bool m_rpclv1hist{false};
90  bool m_rpclv1prof{false};
91  int m_rpclv1reducenbins{false};
92 
93  // MuonDetectorManager from the conditions store
95  this, "DetectorManagerKey", "MuonDetectorManager",
96  "Key of input MuonDetectorManager condition data"};
97 
99  this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
100 
102  this, "ReadKey", "RpcCablingCondData", "Key of RpcCablingCondData"};
103 
104  void bookRPCCoolHistograms(std::vector<std::string>::const_iterator& m_iter,
105  int, int, const std::string& m_layer);
106  bool m_doCoolDB{false};
107 
108  std::string m_chamberName{};
109  std::string m_StationSize{};
110  int m_StationEta{0};
111  int m_StationPhi{0};
112  int m_lastEvent{0};
114 };
115 
116 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
RpcLv1RawDataValAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: RpcLv1RawDataValAlg.h:94
RpcSectorLogicContainer.h
RpcLv1RawDataValAlg::m_sector
int m_sector
Definition: RpcLv1RawDataValAlg.h:74
RpcLv1RawDataValAlg::StoreTriggerType
StatusCode StoreTriggerType()
Definition: RpcLv1RawDataValAlg.cxx:94
RpcLv1RawDataValAlg::m_rpclv1file
bool m_rpclv1file
Definition: RpcLv1RawDataValAlg.h:88
ManagedMonitorToolBase
Provides functionality for users to implement and save histograms, ntuples, and summary data,...
Definition: ManagedMonitorToolBase.h:74
RpcLv1RawDataValAlg::m_doCoolDB
bool m_doCoolDB
Definition: RpcLv1RawDataValAlg.h:106
RpcLv1RawDataValAlg::bookHistogramsRecurrent
virtual StatusCode bookHistogramsRecurrent()
An inheriting class should either override this function, bookHists() or bookHistograms().
Definition: RpcLv1RawDataValAlg.cxx:1060
RpcLv1RawDataValAlg::m_doClusters
bool m_doClusters
Definition: RpcLv1RawDataValAlg.h:86
MuonDQAHistMap
Definition: MuonDQAHistMap.h:108
RpcLv1RawDataValAlg::RpcLv1RawDataValAlg
RpcLv1RawDataValAlg(const std::string &type, const std::string &name, const IInterface *parent)
Definition: RpcLv1RawDataValAlg.cxx:31
RpcFiredChannel.h
RpcLv1RawDataValAlg::m_rpclv1hist
bool m_rpclv1hist
Definition: RpcLv1RawDataValAlg.h:89
MuonPrepDataContainer.h
SG::ReadHandleKey< xAOD::EventInfo >
RpcLv1RawDataValAlg::procHistograms
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
Definition: RpcLv1RawDataValAlg.cxx:2563
RpcLv1RawDataValAlg::m_rpcRdoKey
SG::ReadHandleKey< RpcPadContainer > m_rpcRdoKey
Definition: RpcLv1RawDataValAlg.h:79
RpcLv1RawDataValAlg
Definition: RpcLv1RawDataValAlg.h:44
RpcLv1RawDataValAlg::bookRPCLV1cmatimevschHistograms
StatusCode bookRPCLV1cmatimevschHistograms(const std::string &m_sectorlogic_name, const std::string &m_tower_name, const std::string &m_cma_name)
Definition: RpcLv1RawDataValAlg.cxx:2107
RpcLv1RawDataValAlg::m_checkCabling
bool m_checkCabling
Definition: RpcLv1RawDataValAlg.h:87
RpcLv1RawDataValAlg::m_rpclv1reducenbins
int m_rpclv1reducenbins
Definition: RpcLv1RawDataValAlg.h:91
RpcPad.h
GeoPrimitives.h
ManagedMonitorToolBase.h
RpcLv1RawDataValAlg::~RpcLv1RawDataValAlg
virtual ~RpcLv1RawDataValAlg()=default
RpcLv1RawDataValAlg::initialize
StatusCode initialize()
Definition: RpcLv1RawDataValAlg.cxx:55
RpcLv1RawDataValAlg::m_side
int m_side
Definition: RpcLv1RawDataValAlg.h:75
RpcLv1RawDataValAlg::m_trigtype
int m_trigtype
Definition: RpcLv1RawDataValAlg.h:72
RpcLv1RawDataValAlg::m_stationHists
MuonDQAHistMap m_stationHists
Definition: RpcLv1RawDataValAlg.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
RpcLv1RawDataValAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RpcLv1RawDataValAlg.h:98
RpcLv1RawDataValAlg::GetTriggerType
int GetTriggerType() const
Definition: RpcLv1RawDataValAlg.h:71
RpcLv1RawDataValAlg::m_lastEvent
int m_lastEvent
Definition: RpcLv1RawDataValAlg.h:112
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AthenaMonManager.h
RpcLv1RawDataValAlg::m_profile_list
std::vector< std::string > m_profile_list
Definition: RpcLv1RawDataValAlg.h:84
MuonDQAHistMap.h
RpcLv1RawDataValAlg::m_cosmicStation
int m_cosmicStation
Definition: RpcLv1RawDataValAlg.h:113
RpcLv1RawDataValAlg::m_sectorlogicTowerCma_name_list2
std::vector< std::string > m_sectorlogicTowerCma_name_list2
Definition: RpcLv1RawDataValAlg.h:83
ReadCondHandleKey.h
RpcLv1RawDataValAlg::m_StationEta
int m_StationEta
Definition: RpcLv1RawDataValAlg.h:110
RpcLv1RawDataValAlg::bookRPCLV1TriggerRoadHistograms
StatusCode bookRPCLV1TriggerRoadHistograms(const std::string &m_sectorlogic_name, const std::string &m_tower_name, const std::string &m_cma_name, const std::string &m_thr_name)
Definition: RpcLv1RawDataValAlg.cxx:2188
RpcLv1RawDataValAlg::m_StationPhi
int m_StationPhi
Definition: RpcLv1RawDataValAlg.h:111
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
RpcLv1RawDataValAlg::bookRPCLV1ProfilesHistograms
StatusCode bookRPCLV1ProfilesHistograms(int m_i_sector, const std::string &m_sectorlogic_name, const std::string &m_cma_name, int m_i_ijk, const std::string &m_ijk_name)
profile cabling
Definition: RpcLv1RawDataValAlg.cxx:2242
RpcLv1RawDataValAlg::m_StationSize
std::string m_StationSize
Definition: RpcLv1RawDataValAlg.h:109
RpcLv1RawDataValAlg::bookRPCCoolHistograms
void bookRPCCoolHistograms(std::vector< std::string >::const_iterator &m_iter, int, int, const std::string &m_layer)
Definition: RpcLv1RawDataValAlg.cxx:2319
RpcLv1RawDataValAlg::m_rpclv1prof
bool m_rpclv1prof
Definition: RpcLv1RawDataValAlg.h:90
MuonDetectorManager.h
EventInfo.h
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
RpcLv1RawDataValAlg::m_readKey
SG::ReadCondHandleKey< RpcCablingCondData > m_readKey
Definition: RpcLv1RawDataValAlg.h:101
RpcLv1RawDataValAlg::m_chamberName
std::string m_chamberName
Definition: RpcLv1RawDataValAlg.h:108
RpcGlobalUtilities.h
RpcCablingCondData.h
RpcLv1RawDataValAlg::m_sectorlogicTowerCma_name_list
std::vector< std::string > m_sectorlogicTowerCma_name_list
Definition: RpcLv1RawDataValAlg.h:82
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RpcLv1RawDataValAlg::fillHistograms
virtual StatusCode fillHistograms()
An inheriting class should either override this function or fillHists().
Definition: RpcLv1RawDataValAlg.cxx:103
RpcPadContainer.h
RpcLv1RawDataValAlg::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition: RpcLv1RawDataValAlg.h:77
IMuonIdHelperSvc.h
RpcCoinMatrix.h
ServiceHandle< Muon::IMuonIdHelperSvc >
RpcReadoutElement.h