ATLAS Offline Software
MdtVsRpcRawDataValAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Package : MdtVsRpcRawDataMonitoring
7 // Author: N. Benekos(Illinois) - G. Chiodini(INFN-Lecce)
8 // Sept. 2007
9 //
10 // DESCRIPTION:
11 // Subject: MDTvsRPC-->Offline Muon Data Quality
13 
14 #ifndef MdtVsRpcRawDataValAlg_H
15 #define MdtVsRpcRawDataValAlg_H
16 
17 #include <string.h>
18 
19 #include <map>
20 #include <sstream>
21 #include <vector>
22 
24 #include "GaudiKernel/ServiceHandle.h"
31 
32 class TH1;
33 class TH2;
34 
36 
38  public:
39  MdtVsRpcRawDataValAlg(const std::string& type, const std::string& name,
40  const IInterface* parent);
41 
42  virtual ~MdtVsRpcRawDataValAlg() = default;
45  virtual StatusCode fillHistograms();
46 
47  private:
48  // Private function to add the clusters to the ntuple
49  StatusCode addClusters(std::string clusterContainerName);
50 
51  // m_chambersIdmdt;
53 
54  int m_sector;
55  int m_side;
56  std::vector<std::string> m_layer_name_list;
57  std::vector<std::string> m_layerSector_name_list;
59 
60  // MuonDetectorManager from the conditions store
62  this, "DetectorManagerKey", "MuonDetectorManager",
63  "Key of input MuonDetectorManager condition data"};
64 
66  this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
67 
68  void bookMDTvsRPCHistograms(const std::string& m_hardware_name,
69  const std::string& m_layer_name, int binz,
70  int binminz, int binmaxz, int binx, int binminx,
71  int binmaxx);
72  void bookMDTvsRPCsectorHistograms(const std::string& m_sector_name,
73  const std::string& m_layer_name,
74  float stripzmin, float stripzmax,
75  float wirezmin, float wirezmax);
76 
78 
81  bool m_checkCabling = false;
84 
88 
90 
91  std::string m_chamberName;
92  std::string m_StationSize;
94  this, "RpcPrepDataContainer", "RPC_Measurements", "RPC PRDs"};
96  this, "MdtPrepDataContainer", "MDT_DriftCircles", "MDT PRDs"};
101 
104  int m_BMEid{-1};
105  int m_BISid{-1};
106  int m_BMLid{-1};
107  int m_BOLid{-1};
108  int m_BMFid{-1};
109 
110  TH1* m_MdtRpcZdiff = nullptr;
111  TH2* m_MdtNHitsvsRpcNHits = nullptr;
112 };
113 
114 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MdtVsRpcRawDataValAlg::m_StationPhi
int m_StationPhi
Definition: MdtVsRpcRawDataValAlg.h:98
MdtVsRpcRawDataValAlg::bookMDTvsRPCHistograms
void bookMDTvsRPCHistograms(const std::string &m_hardware_name, const std::string &m_layer_name, int binz, int binminz, int binmaxz, int binx, int binminx, int binmaxx)
Definition: MdtVsRpcRawDataValAlg.cxx:602
ManagedMonitorToolBase
Provides functionality for users to implement and save histograms, ntuples, and summary data,...
Definition: ManagedMonitorToolBase.h:73
MdtVsRpcRawDataValAlg::m_StationEta
int m_StationEta
Definition: MdtVsRpcRawDataValAlg.h:97
MdtVsRpcRawDataValAlg::m_mdtvsrpcsectorhist
bool m_mdtvsrpcsectorhist
Definition: MdtVsRpcRawDataValAlg.h:83
MdtVsRpcRawDataValAlg::m_BMLid
int m_BMLid
Definition: MdtVsRpcRawDataValAlg.h:106
MdtVsRpcRawDataValAlg::~MdtVsRpcRawDataValAlg
virtual ~MdtVsRpcRawDataValAlg()=default
MdtVsRpcRawDataValAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MdtVsRpcRawDataValAlg.h:65
MuonDQAHistMap
Definition: MuonDQAHistMap.h:68
MdtVsRpcRawDataValAlg::m_MdtRpcZdiff
TH1 * m_MdtRpcZdiff
Definition: MdtVsRpcRawDataValAlg.h:110
RpcPrepDataContainer.h
MdtVsRpcRawDataValAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: MdtVsRpcRawDataValAlg.h:61
MdtVsRpcRawDataValAlg::m_clusterContainerName
std::string m_clusterContainerName
Definition: MdtVsRpcRawDataValAlg.h:80
MdtVsRpcRawDataValAlg::addClusters
StatusCode addClusters(std::string clusterContainerName)
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
MdtVsRpcRawDataValAlg::m_BOLid
int m_BOLid
Definition: MdtVsRpcRawDataValAlg.h:107
MdtVsRpcRawDataValAlg::m_key_mdt
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_key_mdt
Definition: MdtVsRpcRawDataValAlg.h:95
MdtVsRpcRawDataValAlg::m_mdtvsrpcreducerpcnbins
int m_mdtvsrpcreducerpcnbins
Definition: MdtVsRpcRawDataValAlg.h:85
MdtVsRpcRawDataValAlg::m_layerSector_name_list
std::vector< std::string > m_layerSector_name_list
Definition: MdtVsRpcRawDataValAlg.h:57
MdtVsRpcRawDataValAlg::m_mdtvsrpcchamberhist
bool m_mdtvsrpcchamberhist
Definition: MdtVsRpcRawDataValAlg.h:82
MdtVsRpcRawDataValAlg::m_doClusters
bool m_doClusters
Definition: MdtVsRpcRawDataValAlg.h:79
MdtVsRpcRawDataValAlg::m_chamberName
std::string m_chamberName
Definition: MdtVsRpcRawDataValAlg.h:91
MdtVsRpcRawDataValAlg::m_sector
int m_sector
Definition: MdtVsRpcRawDataValAlg.h:54
ManagedMonitorToolBase.h
MdtVsRpcRawDataValAlg::initialize
StatusCode initialize()
Definition: MdtVsRpcRawDataValAlg.cxx:70
MdtVsRpcRawDataValAlg::m_mdt_eventstotal
int m_mdt_eventstotal
Definition: MdtVsRpcRawDataValAlg.h:52
MdtVsRpcRawDataValAlg::m_doMdtvsRpcESD
bool m_doMdtvsRpcESD
Definition: MdtVsRpcRawDataValAlg.h:89
MdtVsRpcRawDataValAlg::m_stationHists
MuonDQAHistMap m_stationHists
Definition: MdtVsRpcRawDataValAlg.h:77
MdtVsRpcRawDataValAlg::bookHistogramsRecurrent
virtual StatusCode bookHistogramsRecurrent()
An inheriting class should either override this function, bookHists() or bookHistograms().
Definition: MdtVsRpcRawDataValAlg.cxx:534
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MdtVsRpcRawDataValAlg::m_rpc_eventstotal
int m_rpc_eventstotal
Definition: MdtVsRpcRawDataValAlg.h:58
test_pyathena.parent
parent
Definition: test_pyathena.py:15
MdtVsRpcRawDataValAlg::m_BMEid
int m_BMEid
BME have special treatment in the code.
Definition: MdtVsRpcRawDataValAlg.h:104
MuonDQAHistMap.h
MdtVsRpcRawDataValAlg::m_layer_name_list
std::vector< std::string > m_layer_name_list
Definition: MdtVsRpcRawDataValAlg.h:56
ReadCondHandleKey.h
MdtVsRpcRawDataValAlg::m_side
int m_side
Definition: MdtVsRpcRawDataValAlg.h:55
MdtVsRpcRawDataValAlg::m_cosmicStation
int m_cosmicStation
Definition: MdtVsRpcRawDataValAlg.h:100
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MdtVsRpcRawDataValAlg::m_key_rpc
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_key_rpc
Definition: MdtVsRpcRawDataValAlg.h:93
MuonDetectorManager.h
MdtVsRpcRawDataValAlg::bookMDTvsRPCsectorHistograms
void bookMDTvsRPCsectorHistograms(const std::string &m_sector_name, const std::string &m_layer_name, float stripzmin, float stripzmax, float wirezmin, float wirezmax)
Definition: MdtVsRpcRawDataValAlg.cxx:741
MdtVsRpcRawDataValAlg::MdtVsRpcRawDataValAlg
MdtVsRpcRawDataValAlg(const std::string &type, const std::string &name, const IInterface *parent)
Definition: MdtVsRpcRawDataValAlg.cxx:45
MdtVsRpcRawDataValAlg::m_MdtNHitsvsRpcNHits
TH2 * m_MdtNHitsvsRpcNHits
Definition: MdtVsRpcRawDataValAlg.h:111
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >
MdtVsRpcRawDataValAlg::m_StationSize
std::string m_StationSize
Definition: MdtVsRpcRawDataValAlg.h:92
MdtVsRpcRawDataValAlg::m_BISid
int m_BISid
Definition: MdtVsRpcRawDataValAlg.h:105
MdtVsRpcRawDataValAlg::m_mdtvsrpcreducemdttdcnbins
int m_mdtvsrpcreducemdttdcnbins
Definition: MdtVsRpcRawDataValAlg.h:87
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MdtVsRpcRawDataValAlg::m_checkCabling
bool m_checkCabling
Definition: MdtVsRpcRawDataValAlg.h:81
MdtVsRpcRawDataValAlg::fillHistograms
virtual StatusCode fillHistograms()
An inheriting class should either override this function or fillHists().
Definition: MdtVsRpcRawDataValAlg.cxx:89
MdtVsRpcRawDataValAlg::m_lastEvent
int m_lastEvent
Definition: MdtVsRpcRawDataValAlg.h:99
MdtVsRpcRawDataValAlg
Definition: MdtVsRpcRawDataValAlg.h:37
MdtVsRpcRawDataValAlg::m_BMFid
int m_BMFid
Definition: MdtVsRpcRawDataValAlg.h:108
MdtVsRpcRawDataValAlg::m_mdtvsrpcreducemdtnbins
int m_mdtvsrpcreducemdtnbins
Definition: MdtVsRpcRawDataValAlg.h:86
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >