diff --git a/MuonSpectrometer/MuonValidation/MuonDQA/MuonTrackMonitoring/python/MuonTrackMonitorAlgorithm.py b/MuonSpectrometer/MuonValidation/MuonDQA/MuonTrackMonitoring/python/MuonTrackMonitorAlgorithm.py index 14296b16aab26d8a81cc06f2b78374485d6287fb..e2543f7e95448de083e11fa9cc442fd515b1b2e0 100644 --- a/MuonSpectrometer/MuonValidation/MuonDQA/MuonTrackMonitoring/python/MuonTrackMonitorAlgorithm.py +++ b/MuonSpectrometer/MuonValidation/MuonDQA/MuonTrackMonitoring/python/MuonTrackMonitorAlgorithm.py @@ -1763,13 +1763,13 @@ def MuonTrackConfig(flags, **kwargs): title='Segments_NoTrig_CBMuons_t0err;t_{0}Error;Entries', type='TH1F', path='Segments/NoTrigCBMuons', xbins=100, xmin=0, xmax=10, opt='kAlwaysCreate') - myGroup.defineHistogram('NoTrigCBSegmentXYPosEndcap;Segments_NoTrig_CBMuons_xypos_endcap', + myGroup.defineHistogram('NoTrigCBSegmentXPosEndcap,NoTrigCBSegmentYPosEndcap;Segments_NoTrig_CBMuons_xypos_endcap', title='Segments_NoTrig_CBMuons_xypos_endcap;x_{pos};y_{pos}', - type='TH1F', path='Segments/NoTrigCBMuons', + type='TH2F', path='Segments/NoTrigCBMuons', xbins=24, xmin=-12000, xmax=12000, ybins=24, ymin=-12000, ymax=12000, opt='kAlwaysCreate') - myGroup.defineHistogram('NoTrigCBSegmentXYPosBarrel;Segments_NoTrig_CBMuons_xypos_barrel', + myGroup.defineHistogram('NoTrigCBSegmentXPosBarrel,NoTrigCBSegmentYPosBarrel;Segments_NoTrig_CBMuons_xypos_barrel', title='Segments_NoTrig_CBMuons_xypos_barrel;x_{pos};y_{pos}', - type='TH1F', path='Segments/NoTrigCBMuons', + type='TH2F', path='Segments/NoTrigCBMuons', xbins=24, xmin=-12000, xmax=12000, ybins=24, ymin=-12000, ymax=12000, opt='kAlwaysCreate') # NoTrig/Segments/NonCBMuons @@ -1801,13 +1801,13 @@ def MuonTrackConfig(flags, **kwargs): title='Segments_NoTrig_NonCBMuons_t0err;t_{0}Error;Entries', type='TH1F', path='Segments/NoTrigNonCBMuons', xbins=100, xmin=0, xmax=10, opt='kAlwaysCreate') - myGroup.defineHistogram('NoTrigNonCBSegmentXYPosEndcap;Segments_NoTrig_NonCBMuons_xypos_endcap', + myGroup.defineHistogram('NoTrigNonCBSegmentXPosEndcap,NoTrigNonCBSegmentYPosEndcap;Segments_NoTrig_NonCBMuons_xypos_endcap', title='Segments_NoTrig_NonCBMuons_xypos_endcap;x_{pos};y_{pos}', - type='TH1F', path='Segments/NoTrigNonCBMuons', + type='TH2F', path='Segments/NoTrigNonCBMuons', xbins=24, xmin=-12000, xmax=12000, ybins=24, ymin=-12000, ymax=12000, opt='kAlwaysCreate') - myGroup.defineHistogram('NoTrigNonCBSegmentXYPosBarrel;Segments_NoTrig_NonCBMuons_xypos_barrel', + myGroup.defineHistogram('NoTrigNonCBSegmentXPosBarrel,NoTrigNonCBSegmentYPosBarrel;Segments_NoTrig_NonCBMuons_xypos_barrel', title='Segments_NoTrig_NonCBMuons_xypos_barrel;x_{pos};y_{pos}', - type='TH1F', path='Segments/NoTrigNonCBMuons', + type='TH2F', path='Segments/NoTrigNonCBMuons', xbins=24, xmin=-12000, xmax=12000, ybins=24, ymin=-12000, ymax=12000, opt='kAlwaysCreate') # Segments/Container diff --git a/MuonSpectrometer/MuonValidation/MuonDQA/MuonTrackMonitoring/src/MuonTrackMonitorAlgorithm.cxx b/MuonSpectrometer/MuonValidation/MuonDQA/MuonTrackMonitoring/src/MuonTrackMonitorAlgorithm.cxx index c5985a76a5fcad9d8e44ef4550f3c7a4ae0a716a..7b68240e827f5f538f1a02e6debe3570032d81e9 100644 --- a/MuonSpectrometer/MuonValidation/MuonDQA/MuonTrackMonitoring/src/MuonTrackMonitorAlgorithm.cxx +++ b/MuonSpectrometer/MuonValidation/MuonDQA/MuonTrackMonitoring/src/MuonTrackMonitorAlgorithm.cxx @@ -278,6 +278,10 @@ StatusCode MuonTrackMonitorAlgorithm::analyseLowLevelMuonFeatures(const std::st auto MuonEta1 = Monitored::Scalar<float>((sIdentifier+"MuonEta1All").c_str(), 0); auto MuonPhi1 = Monitored::Scalar<float>((sIdentifier+"MuonPhi1All").c_str(), 0); auto MuonLumiBlock = Monitored::Scalar<float>((sIdentifier+"MuonLumiBlock").c_str(), 0); + auto SegmentXPosBarrel = Monitored::Scalar<float>((sIdentifier+"SegmentXPosBarrel").c_str(), 0); + auto SegmentYPosBarrel = Monitored::Scalar<float>((sIdentifier+"SegmentYPosBarrel").c_str(), 0); + auto SegmentXPosEndcap = Monitored::Scalar<float>((sIdentifier+"SegmentXPosEndcap").c_str(), 0); + auto SegmentYPosEndcap = Monitored::Scalar<float>((sIdentifier+"SegmentYPosEndcap").c_str(), 0); /// Loop over all muons for(const auto muon : Muons) { @@ -307,9 +311,9 @@ StatusCode MuonTrackMonitorAlgorithm::analyseLowLevelMuonFeatures(const std::st /// Do Muon Segments and Sector Plots for (size_t nSeg=0; nSeg < muon->nMuonSegments(); nSeg++) { const xAOD::MuonSegment* muonSegment = muon->muonSegment(nSeg); - if (!muonSegment) { - continue; - } + if (!muonSegment) { + continue; + } MuonSmallSectorR = MuonLargeSectorR = std::hypot(muonSegment->x(), muonSegment->y()); MuonSmallSectorZ = MuonLargeSectorZ = muonSegment->z(); MuonSector = muonSegment->sector(); @@ -320,6 +324,11 @@ StatusCode MuonTrackMonitorAlgorithm::analyseLowLevelMuonFeatures(const std::st } else { fill(tool, MuonSmallSectorZ, MuonSmallSectorR, MuonSector, MuonCIndex); } + SegmentXPosBarrel = muonSegment->x(); + SegmentYPosBarrel = muonSegment->y(); + SegmentXPosEndcap = muonSegment->x(); + SegmentYPosEndcap = muonSegment->y(); + fill(tool, SegmentXPosBarrel, SegmentYPosBarrel, SegmentXPosEndcap, SegmentYPosEndcap); } }