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.
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
Raw data remapper #24819
Raw data remapper #24819
Changes from 10 commits
faec26d
3e87e3c
fd898c9
5862710
9856567
50b75b6
0707979
d326168
3fd4e23
4904caf
e1ee65a
a3ef0b5
516088a
8c5a6f3
2aefb2f
7d19ee8
1589c3e
0b310f9
0c969df
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
please move these as well as the firstEvent_ and the filledCollectionName_ to the initializer list
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.
Not sure I understood where I should move the code. They are initialized in the class constructor. Do you mean the fillDescription method?
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.
I suspect that this
continue
will introduce problems downstream to get the FED collection by token.With this
continue
this module will still declare that it producesrawDataCollection
, but will not put it in the event.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.
@icali could you please address this comment?
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.
The only way that I have to don't include a double loop is to remove the condition: if(mainCollectionTag_==*inputTag) continue;
and add:
if(!(mainCollectionTag_==filledCollectionName_)) e.put(std::make_unique(*input.product()));
Not sure however if this feature makes sense as it would be enough to don't include the rawDataCollector original collection in the input of this module.
Please advise.
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.
it's enough to add this at the end of the
if(firstEvent_){
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.
if(firstEvent_){
if(mainCollectionTag_==*inputTag) continue;
filledCollectionName_ = *inputTag;
AlreadyACollectionFilled = true;
firstEvent_= false;
std::cout << "Here1 " << std::endl;
}
if(AlreadyACollectionFilled) throw cms::Exception("Unknown input type") << "Two input collections are present. Please make sure that the input dataset has only one FEDRawDataCollector collection filled";
if(!(filledCollectionName_==*inputTag)) throw cms::Exception("Unknown input type") << "The filled collection has changed!";
The exception is kept outside of the if(firstEvent_) to protect from the case in which in the event N another collection is filled instead of the original one. If this protection is not needed I can change it as requested. Please let me know.