-
Notifications
You must be signed in to change notification settings - Fork 1
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
Proposed new API for PixelBarrelName and PixelEndcapName #17
base: removeSiStripSubDetId_920p3
Are you sure you want to change the base?
Proposed new API for PixelBarrelName and PixelEndcapName #17
Conversation
Changed PixelModuleName to store the DetId (such that the TrackerTopology pointer is only used at construction), made the constructor from string a static method.
@boudoul @mmusich @dimattia : does this make sense? Do you agree with the proposed strategy? If yes we can translate it into a list of actions and divide the work. CC @OlivierBondu @alesaggio @vidalm |
hello @pieterdavid thanks for sharing , I should propagate to also customers who are the pixel team. However, until end of this month (september) they are fully (over) busy with the preparation of the re-reco etc.. which is top priority so I prefer not to adress this issue exactly at this particular moment . So I may ask you to wait a bit for the ongoing pixel peak activity to decrease a bit - Thanks for your undertanding (and the work !!) |
Thanks @boudoul , sure, this can wait a bit, we are not in a hurry. |
thanks @pieterdavid , I will anyway try to look myself at your proposal meanwhile |
Update branch CMSSW_10_2_X to cms-sw
…ms (L1Trigger/TrackFindingTMTT) (cms-sw#29381) * create separate PRs for the two L1TK packages * Improved KF efficiency at high eta * Moved MC data files to cms-data * Removed old file * Removed KF HLS to put instead in external library * Ran scram b code-format * Delete KF4ParamsComb.h.bak * Delete KF4ParamsCombIV.bak * Delete KF4ParamsCombV2.bak * Delete KF5ParamsComb.h.bak * Delete KF4ParamsComb.cc.bak * Delete KF4ParamsCombIV.bak * Delete KF4ParamsCombV2.bak * Delete KF5ParamsComb.cc.bak * L1 tk integration tmtt pre5 (#7) * Added CMS code style fixes * Removed old file * Reapplied stub b code-format * All code review changes (#13) * Fix clang errors (#14) * fixed clang error * directory for MC txt files * Fixed clang warnings + minor simplifications (#15) * tweak * tweak * Fixed clang warnings and small simplifications * Fixed clang warnings and small simplifications * All remaining review comments addressed (#16) * Replaced vector size with empty function * Simplified DegradeBend and StubWindowSuggest * Fixed more review comments * More review comments * code reformat * Ran exhaustive clang tidy * Added library to BuildFile.xml (#17) * Deleted TrackFindingTMT/data/README (#18) * Added library to BuildFile.xml (This was already done yesterday. Not sure why it appears again) * README file in data directory deleted * Fix review comments (#20) Co-authored-by: Louise Skinnari <[email protected]>
After having a look at the
PixelBarrelName
andPixelEndcapName
classes (and only a mild headache ;-) ), a proposal for changing these classes while migrating fromPXBDetId
andPXFDetId
toTrackerTopology
(in this case: completing the migration - it looks like the methods for that are mostly in place, but not used everywhere yet).What I would mostly change is that the
PixelModuleName
base class could store theDetId
and use that as a unique identifier - everything else is additional information (calculated at construction and stored, or calculated on demand, using theTrackerTopology
and a phase0/1/... switch passed to the constructor).The constructor from
DetId
andTrackerTopology
then does not need to change, the one from the separate fields is not necessary (theDetId
can be constructed using theTrackerTopology
and the above), and the constructor fromstd::string
is replaced by a static methodfromName
, that does the parsing (as before) and constructs aDetId
from that. The constructor withoutTrackerTopology
disappears, but on the other hand thegetDetId(const TrackerTopology*) const
method is not needed any more, andgetDetId() const
andoperator==(const PixelModuleName& other) const
are non-virtual methods ofPixelModuleName
.The
PixelEndcapNameUpgrade
andPixelBarrelNameUpgrade
classes seem to be the phase1-only versions, so they can be removed in favour of the more general ones.As for migration... since the constructor from
DetId
,const TrackerTopology*
andbool
exists already, first step would be to change all uses of the non-parsing constructors ((DetId, bool)
and from the list of fields), not changing this class yet. Changing the uses of the constructor fromstd::string
and the few (if any) ofgetDetId(const TrackerTopology*)
could be part of another PR changing these classes. For a full list of all uses, see https://twiki.cern.ch/twiki/bin/view/CMS/SiStripLocalReco_notesSiStripSubDetIdToTrackerTopologyMigration#Remaining_PXBDetId_and_PXFDetIdIn case we want to change the phase0/phase1 bool to an
enum
, that should happen everywhere at the same time.Feedback welcome...