-
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
[HGCAL trigger] Integrate HFNose #28461
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28461/12895
|
A new Pull Request was created by @jbsauvan (Jean-Baptiste Sauvan) for master. It involves the following packages: DataFormats/L1THGCal @benkrikler, @Dr15Jones, @alja, @kpedro88, @cmsbuild, @rekovic can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test workflow 23234.0 |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
@@ -223,7 +235,7 @@ void HGCalTriggerGeometryHexImp1::buildTriggerCellsAndModules() | |||
unsigned triggerCell = cell_triggerCell.second; | |||
auto itr_exist = trigger_cells_to_cells.emplace(triggerCell, list_cells()); | |||
itr_exist.first->second.emplace(cell); | |||
//trigger_cells_to_cells.at(triggerCell).emplace(cell); | |||
// trigger_cells_to_cells.at(triggerCell).emplace(cell); |
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.
delete commented-out code (everywhere in this file)
@@ -116,7 +128,7 @@ void HGCalTriggerGeometryImp1::buildMaps() | |||
unsigned moduleId = | |||
(tc2mItr != trigger_cells_to_modules_.end() ? tc2mItr->second | |||
: 0); // 0 if the trigger cell doesn't belong to a module | |||
//unsigned moduleId = trigger_cells_to_modules_.at(triggercellId); | |||
// unsigned moduleId = trigger_cells_to_modules_.at(triggercellId); |
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.
delete commented-out code
) | ||
) | ||
|
||
## Note: this customization change both HGC and HFnose, to be revised |
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.
should this be addressed within this PR?
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 have discussed with @jbsauvan
The plan is to duplicate the full L1 sequence instead of having one single object with both HGC and HFnose TP.
I intended to do in subsequent PR ; is it ok ?
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 duplication of the sequence for the HFNose might not be straightforward. In any case it will require checks and validation. So I would prefer to keep this for an other PR.
# NOSE parameters | ||
fCPerMIPnose = recoparam.HGCalUncalibRecHit.HGCHFNoseConfig.fCPerMIP | ||
layerWeightsNose = recocalibparam.dEdX.weightsNose | ||
##thicknessCorrectionNose = recocalibparam.HGCalRecHit.thicknessNoseCorrection |
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.
delete commented-out code
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.
Hardcoded lines 37
thicknessCorrectionNose = [0.759,0.760,0.773]
should be removed and line 36 uncommented
@@ -53,6 +58,8 @@ GlobalPoint HGCalTriggerTools::getTCPosition(const DetId& id) const { | |||
// to distinguish a TC detId | |||
} | |||
|
|||
// FIXME: to do HFNose |
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.
should this be fixed in this PR?
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.
In principle it is ok, since it delegates the calculation to the geometry which correctly computes the nose TC positions.
comment can be removed
@@ -90,6 +100,7 @@ unsigned HGCalTriggerTools::layers(DetId::Detector type) const { | |||
case DetId::HGCalHSc: | |||
layers = bhLayers_; | |||
break; | |||
// FIXME: to do HFNose |
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.
should this be fixed in this PR?
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.
@mariadalfonso @jbsauvan please check this
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.
In HGCalTriggerTools::layers(DetId::Detector type) I do not have access to the subdet so cannot set up the switch to the HFNose.
Downstream the code the HGCalTriggerTools::layers(ForwardSubdetector type) is in use.
See for example the changes in https://github.com/cms-sw/cmssw/pull/28461/files#diff-ffd813bde161fec49fe1259f558ea728R91
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.
This function cannot handle HFNose.
At some point we should think if there is a better way to handle all cases, maybe merging the different layers
functions. But it will require to check everywhere the functions are called. I propose to do this in an other PR. We can keep the FIXME
in the code to remember that.
import FWCore.ParameterSet.Config as cms | ||
|
||
|
||
from Configuration.Eras.Era_Phase2C6_timing_layer_bar_cff import Phase2C6_timing_layer_bar |
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.
this should be updated with respect to #28387
+1 |
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
+upgrade |
+1 |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Integrate the HFNose in the HGCAL trigger primitive generation.
@mariadalfonso FYI
PR validation:
Standard code checks and formatting.
Test C9, C9, C10 workflows.