-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Updates to L1T packer needed to simultaneously pack GT inputs and GMT/Calo ouputs #14326
Merged
davidlange6
merged 5 commits into
cms-sw:CMSSW_8_1_X
from
cms-l1t-offline:pr-l1t-global-packer-81x
May 2, 2016
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3898909
Make CommonTokens class to fix design flaw in Packer framework
mulhearn 8cbb1f0
turn on packing/unpacking of GT inputs
mulhearn 99c0868
add separate input tag for EXT BLK in packer
mulhearn bfb65f9
Allow block locations to differ during packing
mulhearn f180f11
updates tests to exercise GT packing/unpacking
mulhearn File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
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
34 changes: 34 additions & 0 deletions
34
EventFilter/L1TRawToDigi/src/implementations_stage2/CommonTokens.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,34 @@ | ||
#ifndef CommonTokens_h | ||
#define CommonTokens_h | ||
|
||
#include "DataFormats/L1Trigger/interface/EGamma.h" | ||
#include "DataFormats/L1Trigger/interface/EtSum.h" | ||
#include "DataFormats/L1Trigger/interface/Jet.h" | ||
#include "DataFormats/L1Trigger/interface/Tau.h" | ||
#include "DataFormats/L1Trigger/interface/Muon.h" | ||
|
||
#include "EventFilter/L1TRawToDigi/interface/PackerTokens.h" | ||
|
||
namespace l1t { | ||
namespace stage2 { | ||
class CommonTokens : public PackerTokens { | ||
public: | ||
inline const edm::EDGetTokenT<EGammaBxCollection>& getEGammaToken() const { return egammaToken_; }; | ||
inline const edm::EDGetTokenT<EtSumBxCollection>& getEtSumToken() const { return etSumToken_; }; | ||
inline const edm::EDGetTokenT<JetBxCollection>& getJetToken() const { return jetToken_; }; | ||
inline const edm::EDGetTokenT<TauBxCollection>& getTauToken() const { return tauToken_; }; | ||
inline const edm::EDGetTokenT<MuonBxCollection>& getMuonToken() const { return muonToken_; }; | ||
|
||
protected: | ||
edm::EDGetTokenT<EGammaBxCollection> egammaToken_; | ||
edm::EDGetTokenT<EtSumBxCollection> etSumToken_; | ||
edm::EDGetTokenT<JetBxCollection> jetToken_; | ||
edm::EDGetTokenT<TauBxCollection> tauToken_; | ||
edm::EDGetTokenT<MuonBxCollection> muonToken_; | ||
}; | ||
} | ||
} | ||
|
||
#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
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
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 |
---|---|---|
|
@@ -16,7 +16,12 @@ namespace l1t { | |
return std::unique_ptr<PackerTokens>(new GTTokens(cfg, cc)); | ||
}; | ||
|
||
virtual void fillDescription(edm::ParameterSetDescription& desc) override {}; | ||
virtual void fillDescription(edm::ParameterSetDescription& desc) override { | ||
desc.addOptional<edm::InputTag>("GtInputLabel")->setComment("for stage2"); | ||
desc.addOptional<edm::InputTag>("ExtInputLabel")->setComment("for stage2"); | ||
desc.addOptional<edm::InputTag>("GmtInputLabel")->setComment("for stage2"); | ||
desc.addOptional<edm::InputTag>("CaloInputLabel")->setComment("for stage2"); | ||
}; | ||
|
||
virtual PackerMap getPackers(int fed, unsigned int fw) override { | ||
PackerMap res; | ||
|
@@ -25,13 +30,13 @@ namespace l1t { | |
// Use board id 1 for packing | ||
res[{1, 1}] = { | ||
|
||
//PackerFactory::get()->make("stage2::MuonPacker"), | ||
//PackerFactory::get()->make("stage2::EGammaPacker"), | ||
//PackerFactory::get()->make("stage2::EtSumPacker"), | ||
//PackerFactory::get()->make("stage2::JetPacker"), | ||
//PackerFactory::get()->make("stage2::TauPacker"), | ||
PackerFactory::get()->make("stage2::GlobalAlgBlkPacker"), | ||
//PackerFactory::get()->make("stage2::GlobalExtBlkPacker") | ||
PackerFactory::get()->make("stage2::GTMuonPacker"), | ||
PackerFactory::get()->make("stage2::GTEGammaPacker"), | ||
PackerFactory::get()->make("stage2::GTEtSumPacker"), | ||
PackerFactory::get()->make("stage2::GTJetPacker"), | ||
PackerFactory::get()->make("stage2::GTTauPacker"), | ||
PackerFactory::get()->make("stage2::GlobalAlgBlkPacker"), | ||
//PackerFactory::get()->make("stage2::GlobalExtBlkPacker") | ||
}; | ||
} | ||
|
||
|
@@ -56,11 +61,11 @@ namespace l1t { | |
|
||
virtual UnpackerMap getUnpackers(int fed, int board, int amc, unsigned int fw) override { | ||
|
||
//auto muon_unp = UnpackerFactory::get()->make("stage2::MuonUnpacker"); | ||
//auto egamma_unp = UnpackerFactory::get()->make("stage2::EGammaUnpacker"); | ||
//auto etsum_unp = UnpackerFactory::get()->make("stage2::EtSumUnpacker"); | ||
//auto jet_unp = UnpackerFactory::get()->make("stage2::JetUnpacker"); | ||
//auto tau_unp = UnpackerFactory::get()->make("stage2::TauUnpacker"); | ||
auto muon_unp = UnpackerFactory::get()->make("stage2::MuonUnpacker"); | ||
auto egamma_unp = UnpackerFactory::get()->make("stage2::EGammaUnpacker"); | ||
auto etsum_unp = UnpackerFactory::get()->make("stage2::EtSumUnpacker"); | ||
auto jet_unp = UnpackerFactory::get()->make("stage2::JetUnpacker"); | ||
auto tau_unp = UnpackerFactory::get()->make("stage2::TauUnpacker"); | ||
auto alg_unp = UnpackerFactory::get()->make("stage2::GlobalAlgBlkUnpacker"); | ||
auto ext_unp = UnpackerFactory::get()->make("stage2::GlobalExtBlkUnpacker"); | ||
|
||
|
@@ -70,17 +75,17 @@ namespace l1t { | |
if (fed == 1404) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. better if this magic number ended up in the FedRawData header file that has these numbers already |
||
|
||
// From the rx buffers | ||
//res[0] = muon_unp; | ||
//res[2] = muon_unp; | ||
//res[4] = muon_unp; | ||
//res[6] = muon_unp; | ||
//res[8] = egamma_unp; | ||
//res[10] = egamma_unp; | ||
//res[12] = jet_unp; | ||
//res[14] = jet_unp; | ||
//res[16] = tau_unp; | ||
//res[18] = tau_unp; | ||
//res[20] = etsum_unp; | ||
res[0] = muon_unp; | ||
res[2] = muon_unp; | ||
res[4] = muon_unp; | ||
res[6] = muon_unp; | ||
res[8] = egamma_unp; | ||
res[10] = egamma_unp; | ||
res[12] = jet_unp; | ||
res[14] = jet_unp; | ||
res[16] = tau_unp; | ||
res[18] = tau_unp; | ||
res[20] = etsum_unp; | ||
res[24] = ext_unp; | ||
//res[22] = empty link no data | ||
res[26] = ext_unp; | ||
|
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.
@mulhearn - these aren't available for data... whats the timescale for making the real digis?
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.
@mulhearn clariifies - its the digi->raw here..