-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Introduce Quality for PixelTracks. Improve Patatrack duplicate & ambiguity resolution #33889
Merged
Merged
Changes from 58 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
624b3f6
define first level quality
VinInn d2cdb1f
implement a 0 order quality for patatracks
VinInn 928a938
code format
VinInn 3f74004
fix references to loose
VinInn eefdc4c
fix quality critera in duplicate killer
VinInn 45035ed
add passthrough for quads
VinInn 1e5e7b9
fix DQM
VinInn 160a1ff
first step toward quality in MTV and DQM
VinInn 9cd0761
fix MTV config
VinInn ca89c9b
fix validation and DQM
VinInn 3b9760d
remove obsolete file
VinInn c32a065
more fix
VinInn 143c4e5
start working (running(
VinInn 3a71b2d
new classification
VinInn d0fc835
fix mtv classification
VinInn 1c7a7c7
remove masking from Tformula
VinInn 0e13c3e
make quality inclusive, fix PV plots
VinInn 073ef2d
add full combi
VinInn a63bfcd
make compatibility eta dependent
VinInn 194995d
back to 05
VinInn f0cdb9f
Merged PxTkQuality from repository VinInn with cms-merge-topic
VinInn 918f6f4
factorize reject flag
VinInn d9926bd
make dup pass through configurable
VinInn de3fe29
speed up conversion
VinInn 8ea1882
add reserve
VinInn f5cc6fc
add kernel to mark triplets sharing n-hit with quads
VinInn e3ab482
invoke new sharedHit cleaners
VinInn 1f6962f
remove shared killer, add eta cut for duplicates
VinInn 6087acf
code format
VinInn 03ca0af
introduce new early duplicate quality
VinInn 960da82
use local variable
VinInn e8ea1f1
count loose tracks
VinInn f19662d
use info on shared hits in amb-resolution
VinInn 52dd9ca
new baseline
VinInn e295dcb
use error
VinInn 36e2069
new baseline, to be optimized
VinInn 98ec6de
Merged PxTkQuality from repository VinInn with cms-merge-topic
VinInn 664d11e
fix include in vertex finder
VinInn f95ddab
remove dr plots
VinInn 19e56c6
account for discarded in MTV
VinInn 710fd59
speed up error comp
VinInn e6362aa
code format
VinInn b2fac62
Merged PxTkQuality from repository VinInn with cms-merge-topic
VinInn 3e2ed5d
remove second combinatorial
VinInn bb9134a
split triplet cleaning
VinInn 1dac7d4
new baseline
VinInn e1678db
code format
VinInn e218ec9
code clean-up
VinInn 32b5f6c
Merged PxTkQuality from repository VinInn with cms-merge-topic
VinInn cc1d0ab
merge to master
VinInn 4919203
Merged PxTkQuality from repository VinInn with cms-merge-topic
VinInn b1390de
remove references to nshared
VinInn 3ed9c75
use tip as score
VinInn 6dba445
remove dbg print
VinInn 2b1c2c5
Merged PxTkQuality from repository VinInn with cms-merge-topic
VinInn 7eabf51
allow choice of alternate implmentation at run time
VinInn a7f2bf5
code format
VinInn 0c593cb
use preprocessor directive to select TrackDR
VinInn cf2ae9c
make python3 happy
VinInn 0e11b7f
addressing some pedantic comments
VinInn 288e95f
code format
VinInn c0a32d3
Merged PxTkQuality from repository VinInn with cms-merge-topic
VinInn e9a19bf
obey higher directive
VinInn 5b16eb6
Merged PxTkQuality from repository VinInn with cms-merge-topic
VinInn 02ba022
roll back to verify if HLT tau is affected
VinInn 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "CUDADataFormats/Track/interface/TrackSoAHeterogeneousT.h" | ||
|
||
#include <iostream> | ||
#include <cassert> | ||
|
||
int main() { | ||
// test quality | ||
|
||
auto q = pixelTrack::qualityByName("tight"); | ||
assert(pixelTrack::Quality::tight == q); | ||
q = pixelTrack::qualityByName("toght"); | ||
assert(pixelTrack::Quality::notQuality == q); | ||
|
||
for (uint32_t i = 0; i < pixelTrack::qualitySize; ++i) { | ||
auto const qt = static_cast<pixelTrack::Quality>(i); | ||
auto q = pixelTrack::qualityByName(pixelTrack::qualityName[i]); | ||
assert(qt == q); | ||
} | ||
|
||
return 0; | ||
} |
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 | ||||
---|---|---|---|---|---|---|
|
@@ -15,38 +15,60 @@ | |||||
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h" | ||||||
#include "Geometry/Records/interface/TrackerTopologyRcd.h" | ||||||
|
||||||
#include "PixelTrackProducer.h" | ||||||
#include "FWCore/Framework/interface/stream/EDProducer.h" | ||||||
#include "RecoPixelVertexing/PixelTrackFitting/interface/PixelTrackReconstruction.h" | ||||||
#include "Geometry/Records/interface/TrackerTopologyRcd.h" | ||||||
#include "storeTracks.h" | ||||||
|
||||||
#include "FWCore/PluginManager/interface/ModuleDef.h" | ||||||
#include "FWCore/Framework/interface/MakerMacros.h" | ||||||
|
||||||
namespace edm { | ||||||
class Event; | ||||||
class EventSetup; | ||||||
class ParameterSet; | ||||||
class ConfigurationDescriptions; | ||||||
} // namespace edm | ||||||
class TrackerTopology; | ||||||
|
||||||
using namespace pixeltrackfitting; | ||||||
using edm::ParameterSet; | ||||||
|
||||||
PixelTrackProducer::PixelTrackProducer(const ParameterSet& cfg) : theReconstruction(cfg, consumesCollector()) { | ||||||
edm::LogInfo("PixelTrackProducer") << " construction..."; | ||||||
produces<reco::TrackCollection>(); | ||||||
produces<TrackingRecHitCollection>(); | ||||||
produces<reco::TrackExtraCollection>(); | ||||||
} | ||||||
class PixelTrackProducer : public edm::stream::EDProducer<> { | ||||||
public: | ||||||
explicit PixelTrackProducer(const edm::ParameterSet& cfg) | ||||||
: theReconstruction(cfg, consumesCollector()), htTopoToken_(esConsumes()) { | ||||||
edm::LogInfo("PixelTrackProducer") << " construction..."; | ||||||
produces<reco::TrackCollection>(); | ||||||
produces<TrackingRecHitCollection>(); | ||||||
produces<reco::TrackExtraCollection>(); | ||||||
} | ||||||
|
||||||
~PixelTrackProducer() override {} | ||||||
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.
Suggested change
should automatically include the proper |
||||||
|
||||||
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) { | ||||||
edm::ParameterSetDescription desc; | ||||||
|
||||||
PixelTrackProducer::~PixelTrackProducer() {} | ||||||
desc.add<std::string>("passLabel", "pixelTracks"); // What is this? It is not used anywhere in this code. | ||||||
PixelTrackReconstruction::fillDescriptions(desc); | ||||||
|
||||||
void PixelTrackProducer::fillDescriptions(edm::ConfigurationDescriptions& descriptions) { | ||||||
edm::ParameterSetDescription desc; | ||||||
descriptions.add("pixelTracks", desc); | ||||||
} | ||||||
|
||||||
desc.add<std::string>("passLabel", "pixelTracks"); // What is this? It is not used anywhere in this code. | ||||||
PixelTrackReconstruction::fillDescriptions(desc); | ||||||
void produce(edm::Event& ev, const edm::EventSetup& es) override { | ||||||
LogDebug("PixelTrackProducer, produce") << "event# :" << ev.id(); | ||||||
|
||||||
descriptions.add("pixelTracks", desc); | ||||||
} | ||||||
TracksWithTTRHs tracks; | ||||||
theReconstruction.run(tracks, ev, es); | ||||||
auto htTopo = es.getData(htTopoToken_); | ||||||
|
||||||
void PixelTrackProducer::produce(edm::Event& ev, const edm::EventSetup& es) { | ||||||
LogDebug("PixelTrackProducer, produce") << "event# :" << ev.id(); | ||||||
// store tracks | ||||||
storeTracks(ev, tracks, htTopo); | ||||||
} | ||||||
|
||||||
TracksWithTTRHs tracks; | ||||||
theReconstruction.run(tracks, ev, es); | ||||||
edm::ESHandle<TrackerTopology> httopo; | ||||||
es.get<TrackerTopologyRcd>().get(httopo); | ||||||
private: | ||||||
PixelTrackReconstruction theReconstruction; | ||||||
const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> htTopoToken_; | ||||||
}; | ||||||
|
||||||
// store tracks | ||||||
storeTracks(ev, tracks, *httopo); | ||||||
} | ||||||
DEFINE_FWK_MODULE(PixelTrackProducer); |
29 changes: 0 additions & 29 deletions
29
RecoPixelVertexing/PixelTrackFitting/plugins/PixelTrackProducer.h
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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.
this could be made directly
so that
qualitySize
does not need to be kept automatically in sync.Or, if a separate variable is needed, at least
that this requires that
notQuality
is always the last one.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 was in doubt and decided to keep it separate.
I think I have a static_assert somewhere