-
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
add vertex covariance for V0Producer 76x #12142
Conversation
A new Pull Request was created by @fojensen (Frank Jensen) for CMSSW_7_6_X. add vertex covariance for V0Producer 76x It involves the following packages: RecoVertex/V0Producer @cmsbuild, @cvuosalo, @slava77 can you please review it and eventually sign? Thanks. |
@cmsbuild please test |
ipsigXY = std::abs(tmpTrack->dxy(*theBeamSpot)/tmpTrack->dxyError()); | ||
} | ||
double ipsigXY = std::abs(tmpTrack->dxy(*theBeamSpot)/tmpTrack->dxyError()); | ||
if (useVertex_) ipsigXY = std::abs(tmpTrack->dxy(referencePos)/tmpTrack->dxyError()); |
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.
why computing twice ipsingXY in case of useVertex_?
was not the previous code more efficient?
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.
On 10/28/15 10:05 AM, Vincenzo Innocente wrote:
In RecoVertex/V0Producer/src/V0Fitter.cc
#12142 (comment):@@ -116,12 +117,8 @@ void V0Fitter::fitAll(const edm::Event& iEvent, const edm::EventSetup& iSetup,
// fill vectors of TransientTracks and TrackRefs after applying preselection cuts
for (reco::TrackCollection::const_iterator iTk = theTrackCollection->begin(); iTk != theTrackCollection->end(); ++iTk) {
const reco::Track* tmpTrack = &(*iTk);
double ipsigXY;
if (useVertex_) {
ipsigXY = std::abs(tmpTrack->dxy(referencePos)/tmpTrack->dxyError());
} else {
ipsigXY = std::abs(tmpTrack->dxy(*theBeamSpot)/tmpTrack->dxyError());
}
double ipsigXY = std::abs(tmpTrack->dxy(*theBeamSpot)/tmpTrack->dxyError());
if (useVertex_) ipsigXY = std::abs(tmpTrack->dxy(referencePos)/tmpTrack->dxyError());
why computing twice ipsingXY in case of useVertex_?
was not the previous code more efficient?
if/else is probably going to be more CPU efficient
(unclear though how the compiler puts the conditional computations in
optimization)
—
Reply to this email directly or view it on GitHub
https://github.com/cms-sw/cmssw/pull/12142/files#r43267434.
The tests are being triggered in jenkins. |
@@ -206,7 +203,8 @@ void V0Fitter::fitAll(const edm::Event& iEvent, const edm::EventSetup& iSetup, | |||
GlobalPoint vtxPos(theVtx.x(), theVtx.y(), theVtx.z()); | |||
|
|||
// 2D decay significance | |||
const SMatrixSym3D totalCov = theBeamSpot->rotatedCovariance3D() + theVtx.covariance(); | |||
SMatrixSym3D totalCov = theBeamSpot->rotatedCovariance3D() + theVtx.covariance(); | |||
if (useVertex_) totalCov = referenceVtx.covariance() + theVtx.covariance(); |
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.
same as above why twice?
brw is this fix not changing physics?
and if not changing physics, why modify?
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.
Hey Vincenzo -
everything I changed only gets implemented if the user specifies
non-standard configuration.
This has to do with either:
- using a primary vertex instead of a beam spot
- using z information in calculating variables
by default, the useVertex_ flag will not be set and so this stuff doesn't
get used.
I can change the way the flags / if statements are implemented if you like
- but maybe after the heavy ion run & in whatever the current CMSSW is by
then?...
On Wed, Oct 28, 2015 at 9:06 AM, Vincenzo Innocente <
[email protected]> wrote:
In RecoVertex/V0Producer/src/V0Fitter.cc
#12142 (comment):@@ -206,7 +203,8 @@ void V0Fitter::fitAll(const edm::Event& iEvent, const edm::EventSetup& iSetup,
GlobalPoint vtxPos(theVtx.x(), theVtx.y(), theVtx.z());// 2D decay significance
const SMatrixSym3D totalCov = theBeamSpot->rotatedCovariance3D() + theVtx.covariance();
SMatrixSym3D totalCov = theBeamSpot->rotatedCovariance3D() + theVtx.covariance();
if (useVertex_) totalCov = referenceVtx.covariance() + theVtx.covariance();
same as above why twice?
brw is this fix not changing physics?
—
Reply to this email directly or view it on GitHub
https://github.com/cms-sw/cmssw/pull/12142/files#r43267634.
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.
som why fixing 76?
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 added the 3D/vertex features to 76X, 75x, 74X and for the upcoming heavy
ion run
#11660
but there was a bug, so this last round of PRs is fixing that bug in the
appropriate releases
On Wed, Oct 28, 2015 at 9:14 AM, Vincenzo Innocente <
[email protected]> wrote:
In RecoVertex/V0Producer/src/V0Fitter.cc
#12142 (comment):@@ -206,7 +203,8 @@ void V0Fitter::fitAll(const edm::Event& iEvent, const edm::EventSetup& iSetup,
GlobalPoint vtxPos(theVtx.x(), theVtx.y(), theVtx.z());// 2D decay significance
const SMatrixSym3D totalCov = theBeamSpot->rotatedCovariance3D() + theVtx.covariance();
SMatrixSym3D totalCov = theBeamSpot->rotatedCovariance3D() + theVtx.covariance();
if (useVertex_) totalCov = referenceVtx.covariance() + theVtx.covariance();
som why fixing 76?
—
Reply to this email directly or view it on GitHub
https://github.com/cms-sw/cmssw/pull/12142/files#r43268712.
+1
|
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
+1 |
add vertex covariance for V0Producer 76x
same as
75x
#12133
80x
#12134
bug fix in V0Producer