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
Phase2-hgx91 Change the signature of CaloCellGeometry #21808
Conversation
The code-checks are being triggered in jenkins. |
@cmsbuild Please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-21808/2796 |
The tests are being triggered in jenkins. |
A new Pull Request was created by @bsunanda for master. It involves the following packages: CalibCalorimetry/EcalTPGTools @ghellwig, @lveldere, @ianna, @kpedro88, @nsmith-, @rekovic, @thomreis, @vanbesien, @perrotta, @civanch, @monttj, @silviodonato, @cmsbuild, @fwyzard, @Dr15Jones, @mdhildreth, @jfernan2, @cerminar, @slava77, @ggovi, @Martin-Grunewald, @ssekmen, @vazzolini, @kmaeshima, @arunhep, @dmitrijus, @alja, @franzoni, @lpernie can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Comparison job queued. |
+1 |
+1 |
@ggovi @dmitrijus @alja Can you approve this please |
@fabiocos Could you please take this PR into the IB and to pre4? |
Is this PR ok for db and dqm? It is quite complex, we should try to move it forward asap, thanks |
@fabiocos @ggovi @dmitrijus The real change is the use of CaloCellGeometry object. The pointer for this is now a shared_ptr rather than a normal one. The main impact is on geometry and reco code. In other parts some casting styles are changed and a bug in HGCal code is corrected. |
+1 |
+1 |
@alja Sorry, but we need to move forward with this PR |
merge |
@@ -71,13 +71,16 @@ class FlatTrd : public CaloCellGeometry { | |||
|
|||
void getTransform( Tr3D& tr, Pt3DVec* lptr ) const override; | |||
|
|||
void setPosition ( const GlobalPoint& p ) { m_global = p; setRefPoint(p); } | |||
void setBackPoint( const GlobalPoint& p ) { setBackPoint(p); } |
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 is wrong. This will result in infinite recursion until the stack is exhausted.
I am making a new PR (#21913) to correct this - please check that. Sorry I overlooked this. Regards
Sunanda
________________________________
From: davidlt [notifications@github.com]
Sent: 22 January 2018 16:33
To: cms-sw/cmssw
Cc: Sunanda Banerjee; Mention
Subject: Re: [cms-sw/cmssw] Phase2-hgx91 Change the signature of CaloCellGeometry (#21808)
@davidlt commented on this pull request.
________________________________
In Geometry/CaloGeometry/interface/FlatTrd.h<#21808 (comment)>:
@@ -71,13 +71,16 @@ class FlatTrd : public CaloCellGeometry {
void getTransform( Tr3D& tr, Pt3DVec* lptr ) const override;
+ void setPosition ( const GlobalPoint& p ) { m_global = p; setRefPoint(p); }
+ void setBackPoint( const GlobalPoint& p ) { setBackPoint(p); }
This is wrong. This will result in infinite recursion until the stack is exhausted.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#21808 (review)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AEzMun1ZWJeJCTb1VsC_Q6z3zJSvqYDrks5tNKo-gaJpZM4RVDcN>.
|
Use std::shared_ptr for accessing the CaloCellGeometry so that new Cell pointers can be created on demand (useful for HGCal and also Hcal).
This is a copy of PR# 21440 which has a merge conflict and could not be recovered. #21440 will be closed once this PR is merged