-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding digi-based shower tagging to reco::Muon #26369
Merged
cmsbuild
merged 9 commits into
cms-sw:master
from
battibass:digiBasedShowerTagging_MuonId_v2
Apr 18, 2019
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
11dcb2c
DataFormat updates to add digi-based shower info
5d065c0
Fix: merge digis from ME1/1a and ME1/1b
708b771
Add filling of digi-based shower information to MuonIdProducer
549abd6
Remove digi counting in full chamber, leaving only digi counting in |…
a0b7545
Add a function that counts showers per muon + cosmetics
dd4fb70
Disable muon shower info filling in tau MC embedding merge step
d9a44d0
Follow-up from PR request:
fb618e5
More clear syntax for hasShowerInStation and numberOfShowers
d719e62
Fix: OR should be AND
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
75 changes: 75 additions & 0 deletions
75
RecoMuon/MuonIdentification/interface/MuonShowerDigiFiller.h
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,75 @@ | ||
#ifndef MuonIdentification_MuonShowerDigiFiller_h | ||
#define MuonIdentification_MuonShowerDigiFiller_h | ||
|
||
// -*- C++ -*- | ||
// | ||
// Package: MuonShowerDigiFiller | ||
// Class: MuonShowerDigiFiller | ||
// | ||
/**\class MuonShowerDigiFiller MuonShowerDigiFiller.h RecoMuon/MuonIdentification/interface/MuonShowerDigiFiller.h | ||
|
||
Description: Class filling shower information using DT and CSC digis | ||
|
||
Implementation: | ||
<Notes on implementation> | ||
*/ | ||
// | ||
// Original Author: Carlo Battilana, INFN BO | ||
// Created: Sat Mar 23 14:36:22 CET 2019 | ||
// | ||
// | ||
|
||
// system include files | ||
|
||
// user include files | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
|
||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/EventSetup.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
|
||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
#include "FWCore/Framework/interface/ConsumesCollector.h" | ||
|
||
#include "DataFormats/DTDigi/interface/DTDigiCollection.h" | ||
#include "DataFormats/CSCDigi/interface/CSCStripDigiCollection.h" | ||
|
||
#include "Geometry/DTGeometry/interface/DTGeometry.h" | ||
#include "Geometry/CSCGeometry/interface/CSCGeometry.h" | ||
|
||
#include "DataFormats/MuonReco/interface/MuonChamberMatch.h" | ||
#include "TrackingTools/TrackAssociator/interface/TAMuonChamberMatch.h" | ||
|
||
// | ||
// class decleration | ||
// | ||
|
||
class MuonShowerDigiFiller | ||
{ | ||
|
||
public: | ||
|
||
MuonShowerDigiFiller(const edm::ParameterSet&, edm::ConsumesCollector&& iC); | ||
|
||
void getES( const edm::EventSetup& iSetup ); | ||
void getDigis( edm::Event& iEvent ); | ||
|
||
void fill( reco::MuonChamberMatch & muChMatch ) const; | ||
void fillDefault( reco::MuonChamberMatch & muChMatch ) const; | ||
|
||
private: | ||
|
||
double m_digiMaxDistanceX; | ||
|
||
edm::EDGetTokenT<DTDigiCollection> m_dtDigisToken; | ||
edm::EDGetTokenT<CSCStripDigiCollection> m_cscDigisToken; | ||
|
||
edm::ESHandle<DTGeometry> m_dtGeometry; | ||
edm::ESHandle<CSCGeometry> m_cscGeometry; | ||
|
||
edm::Handle<DTDigiCollection> m_dtDigis; | ||
edm::Handle<CSCStripDigiCollection> m_cscDigis; | ||
|
||
}; | ||
|
||
#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
11 changes: 11 additions & 0 deletions
11
RecoMuon/MuonIdentification/python/MuonShowerDigiFiller_cfi.py
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,11 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
MuonShowerDigiFillerBlock = cms.PSet( | ||
ShowerDigiFillerParameters = cms.PSet( | ||
digiMaxDistanceX = cms.double(25.0), | ||
dtDigiCollectionLabel = cms.InputTag("muonDTDigis"), | ||
cscDigiCollectionLabel = cms.InputTag("muonCSCDigis","MuonCSCStripDigi") | ||
) | ||
) | ||
|
||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@battibass @slava77 it looks like this line is creating issues in wf 1102.0 step4 RECOFROMRECO:
This clearly needs to be fixed, my question is: if this is not affecting any other standard workflow as it seems, and it is not preventing the basic validation of pre4, can we consider to postpone its fix after pre4 is built? Or do you see further possible issues?
Switching this module off in the configuration allows also the step4 of 1102 to run without problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabiocos , @slava77 can surely reply more accurately than I can.
In principle this PR implies that digis are available (hence implies that unpacking was done starting from RAW). For any workflow for which this is the case there should be no problem.
The question is, are there RelVal workflows where this is not the case?
I'm happy to work on a patch asap, but I would need inputs to understand better how I should be testing it, as my check with
runTheMatrix.py -l limited -i all
clearly failed to spot this issue, as well as the one withTauAnalysis/MCEmbeddingTools/
that was instead spot during integration ...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@battibass indeed this is a bit special case, and only wf 1102.0 implementing it shows this issue. I see that @slava77 has already mentioned it in #26500 .