-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One module with BX distributions and one looking only at the central BX. The BX distribution module can only run on validation events in Run-3, while the other one can run on all events.
- Loading branch information
Showing
7 changed files
with
417 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#ifndef DQM_L1TMonitor_L1TStage2uGMTBxDistributions_h | ||
#define DQM_L1TMonitor_L1TStage2uGMTBxDistributions_h | ||
|
||
#include "DataFormats/L1Trigger/interface/Muon.h" | ||
#include "DataFormats/L1TMuon/interface/RegionalMuonCand.h" | ||
#include "DataFormats/L1Trigger/interface/MuonShower.h" | ||
#include "DataFormats/L1TMuon/interface/RegionalMuonShower.h" | ||
#include "L1Trigger/L1TMuon/interface/MicroGMTConfiguration.h" | ||
|
||
#include "DQMServices/Core/interface/DQMEDAnalyzer.h" | ||
#include "DQMServices/Core/interface/DQMStore.h" | ||
|
||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h" | ||
|
||
class L1TStage2uGMTBxDistributions : public DQMEDAnalyzer { | ||
public: | ||
L1TStage2uGMTBxDistributions(const edm::ParameterSet& ps); | ||
~L1TStage2uGMTBxDistributions() override; | ||
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions); | ||
|
||
protected: | ||
void bookHistograms(DQMStore::IBooker&, const edm::Run&, const edm::EventSetup&) override; | ||
void analyze(const edm::Event&, const edm::EventSetup&) override; | ||
|
||
private: | ||
edm::EDGetTokenT<l1t::RegionalMuonCandBxCollection> ugmtBMTFToken_; | ||
edm::EDGetTokenT<l1t::RegionalMuonCandBxCollection> ugmtOMTFToken_; | ||
edm::EDGetTokenT<l1t::RegionalMuonCandBxCollection> ugmtEMTFToken_; | ||
edm::EDGetTokenT<l1t::MuonBxCollection> ugmtMuonToken_; | ||
edm::EDGetTokenT<l1t::RegionalMuonShowerBxCollection> ugmtEMTFShowerToken_; | ||
edm::EDGetTokenT<l1t::MuonShowerBxCollection> ugmtMuonShowerToken_; | ||
std::string monitorDir_; | ||
bool emul_; | ||
bool verbose_; | ||
bool hadronicShowers_; | ||
|
||
MonitorElement* ugmtBMTFBX; | ||
|
||
MonitorElement* ugmtOMTFBX; | ||
|
||
MonitorElement* ugmtEMTFBX; | ||
|
||
MonitorElement* ugmtEMTFShowerTypeOccupancyPerBx; | ||
MonitorElement* ugmtEMTFShowerSectorOccupancyPerBx; | ||
|
||
MonitorElement* ugmtBMTFBXvsProcessor; | ||
MonitorElement* ugmtOMTFBXvsProcessor; | ||
MonitorElement* ugmtEMTFBXvsProcessor; | ||
MonitorElement* ugmtBXvsLink; | ||
|
||
MonitorElement* ugmtMuonBX; | ||
MonitorElement* ugmtMuonBXvsLink; | ||
MonitorElement* ugmtMuonBXvshwPt; | ||
MonitorElement* ugmtMuonBXvshwEta; | ||
MonitorElement* ugmtMuonBXvshwPhi; | ||
MonitorElement* ugmtMuonBXvshwCharge; | ||
MonitorElement* ugmtMuonBXvshwChargeValid; | ||
MonitorElement* ugmtMuonBXvshwQual; | ||
MonitorElement* ugmtMuonBXvshwIso; | ||
|
||
// Output shower plots | ||
MonitorElement* ugmtMuonShowerTypeOccupancyPerBx; | ||
|
||
static constexpr unsigned IDX_TIGHT_SHOWER{2}; | ||
static constexpr unsigned IDX_NOMINAL_SHOWER{1}; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
# the uGMT DQM module | ||
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer | ||
l1TStage2uGMTBxDistributions = DQMEDAnalyzer( | ||
"L1TStage2uGMTBxDistributions", | ||
bmtfProducer = cms.InputTag("gmtStage2Digis", "BMTF"), | ||
omtfProducer = cms.InputTag("gmtStage2Digis", "OMTF"), | ||
emtfProducer = cms.InputTag("gmtStage2Digis", "EMTF"), | ||
emtfShowerProducer = cms.InputTag("gmtStage2Digis", "EMTF"), | ||
muonProducer = cms.InputTag("gmtStage2Digis", "Muon"), | ||
muonShowerProducer = cms.InputTag("gmtStage2Digis", "MuonShower"), | ||
monitorDir = cms.untracked.string("L1T/L1TStage2uGMT"), | ||
emulator = cms.untracked.bool(False), | ||
verbose = cms.untracked.bool(False), | ||
hadronicShowers = cms.untracked.bool(False) | ||
) | ||
|
||
## Era: Run3_2021; Displaced muons from BMTF used in uGMT from Run-3 | ||
from Configuration.Eras.Modifier_stage2L1Trigger_2021_cff import stage2L1Trigger_2021 | ||
stage2L1Trigger_2021.toModify(l1TStage2uGMTBxDistributions, hadronicShowers = cms.untracked.bool(True)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.