-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Lepton time-life info for NanoAOD #43525
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
587e888
Add time-life info structure
mbluj 4001157
Module to refit PV with beam-spot constraint with miniAOD inputs
mbluj 06a05af
Simple fixes in SimpleFlatTableProducer
mbluj 534389d
Add time-life info through customization
mbluj d461ddb
NanoAOD DQM plots for lepton time-life variables
mbluj 8e9ce20
Changes in time-life info customization
mbluj bef9e17
DQM plots for lepton time-life variables added as part of customization
mbluj 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 hidden or 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 hidden or 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,81 @@ | ||
| #ifndef DataFormats_VertexReco_TrackTimeLifeInfo_h | ||
| #define DataFormats_VertexReco_TrackTimeLifeInfo_h | ||
|
|
||
| /** | ||
| \class TrackTimeLifeInfo | ||
| \brief Structure to hold time-life information | ||
|
|
||
| \author Michal Bluj, NCBJ, Warsaw | ||
| */ | ||
|
|
||
| #include "DataFormats/GeometryCommonDetAlgo/interface/GlobalError.h" | ||
| #include "DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h" | ||
| #include "DataFormats/GeometryVector/interface/GlobalPoint.h" | ||
| #include "DataFormats/GeometryVector/interface/GlobalVector.h" | ||
| #include "DataFormats/TrackReco/interface/Track.h" | ||
| #include "DataFormats/VertexReco/interface/Vertex.h" | ||
|
|
||
| class TrackTimeLifeInfo { | ||
| public: | ||
| TrackTimeLifeInfo(); | ||
| ~TrackTimeLifeInfo() {} | ||
|
|
||
| // Secondary vertex | ||
| void setSV(reco::Vertex sv) { | ||
| sv_ = sv; | ||
| hasSV_ = true; | ||
| } | ||
| const reco::Vertex& sv() const { return sv_; } | ||
| bool hasSV() const { return hasSV_; } | ||
| void setFlightVector(GlobalVector flight_vec, GlobalError flight_cov) { | ||
| flight_vec_ = flight_vec; | ||
| flight_cov_ = flight_cov; | ||
| } | ||
| // Flight-path | ||
| const GlobalVector& flightVector() const { return flight_vec_; } | ||
| const GlobalError& flightCovariance() const { return flight_cov_; } | ||
| void setFlightLength(Measurement1D flightLength) { flightLength_ = flightLength; } | ||
| const Measurement1D& flightLength() const { return flightLength_; } | ||
| // Point of closest approach | ||
| void setPCA(GlobalPoint pca, GlobalError pca_cov) { | ||
| pca_ = pca; | ||
| pca_cov_ = pca_cov; | ||
| } | ||
| const GlobalPoint& pca() const { return pca_; } | ||
| const GlobalError& pcaCovariance() const { return pca_cov_; } | ||
| // Impact parameter | ||
| void setIP(GlobalVector ip_vec, GlobalError ip_cov) { | ||
| ip_vec_ = ip_vec; | ||
| ip_cov_ = ip_cov; | ||
| } | ||
| const GlobalVector& ipVector() const { return ip_vec_; } | ||
| const GlobalError& ipCovariance() const { return ip_cov_; } | ||
| void setIPLength(Measurement1D ipLength) { ipLength_ = ipLength; } | ||
| const Measurement1D& ipLength() const { return ipLength_; } | ||
| // Track | ||
| void setTrack(const reco::Track* track) { | ||
| if (track != nullptr) { | ||
| track_ = *track; | ||
| hasTrack_ = true; | ||
| } else { | ||
| track_ = reco::Track(); | ||
| hasTrack_ = false; | ||
| } | ||
| } | ||
| const reco::Track* track() const { return &track_; } | ||
| bool hasTrack() const { return hasTrack_; } | ||
| void setBField_z(float bField_z) { bField_z_ = bField_z; } | ||
| float bField_z() const { return bField_z_; } | ||
|
|
||
| private: | ||
| bool hasSV_, hasTrack_; | ||
| reco::Vertex sv_; | ||
| GlobalVector flight_vec_, ip_vec_; | ||
| GlobalPoint pca_; | ||
| GlobalError flight_cov_, pca_cov_, ip_cov_; | ||
| Measurement1D flightLength_, ipLength_; | ||
| reco::Track track_; | ||
| float bField_z_; | ||
| }; | ||
|
|
||
| #endif |
This file contains hidden or 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,16 @@ | ||
| #include "DataFormats/VertexReco/interface/TrackTimeLifeInfo.h" | ||
|
|
||
| TrackTimeLifeInfo::TrackTimeLifeInfo() | ||
| : hasSV_(false), | ||
| hasTrack_(false), | ||
| sv_(reco::Vertex()), | ||
| flight_vec_(GlobalVector()), | ||
| ip_vec_(GlobalVector()), | ||
| pca_(GlobalPoint()), | ||
| flight_cov_(GlobalError()), | ||
| pca_cov_(GlobalError()), | ||
| ip_cov_(GlobalError()), | ||
| flightLength_(Measurement1D()), | ||
| ipLength_(Measurement1D()), | ||
| track_(reco::Track()), | ||
| bField_z_(0.){}; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.