Skip to content
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

HGCal Reco Geometry #12170

Merged
merged 19 commits into from
Nov 3, 2015
Merged

Conversation

ianna
Copy link
Contributor

@ianna ianna commented Oct 29, 2015

  • Allocate vectors at geometry constructor initialisation
  • Avoid resizing big vectors
  • Implement sorting of valid DetIds. Apply it if needed?

Dmitrijus Bugelskis and others added 7 commits October 20, 2015 16:03
Make them members in Vx3DHLTAnalyzer.
Please test before accepting.
* HGCal geometry writer
* Configuration files to write and read HGCal geometry
* Test HGCal geometry from DB
* HGCal DB geometry builder
* Allow to drop Ecal subdetectors from Calo geometry DB builder
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @ianna (Ianna Osborne) for CMSSW_8_0_X.

HGCal Reco Geometry

It involves the following packages:

Geometry/HGCalGeometry

@cmsbuild, @civanch, @Dr15Jones, @ianna, @mdhildreth can you please review it and eventually sign? Thanks.
@ghellwig this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' or '@cmsbuild, please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@ianna
Copy link
Contributor Author

ianna commented Oct 29, 2015

@lgray and @bsunanda - before I commit DB payloads code for HGCal, it seems some tiding up is needed. I'm not sure if you rely on sorted DetIds. I've provided a simple sort by rawId, more complex one can be implemented if needed.
Note, current implementation is very costly. You resize huge std::vectors ~thousand(s) times.

Also, FlatTrd breaks CaloCellGeometry polymorphism. The test asserts when Debug mode is enabled. I'm not going to fix it since @bsunanda is planning to move to another shape.

Please comment.

@ianna
Copy link
Contributor Author

ianna commented Oct 29, 2015

@cmsbuild please test

@@ -114,6 +114,8 @@ HGCalGeometry* HGCalGeometryLoader::build (const HGCalTopology& topology) {
}
}
}
// FIXME: Sort valid DetIds if neded
// geom->sortDetIds();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgray - here is a logical place to sort valid DetIds if needed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ianna better to just go ahead and sort them. It shouldn't have any adverse effect and can only help in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgray - I'm a bit concerned about sorting 5 million element vector for "just in case" - as it's n*log2(n). What is current/future access pattern? Do you check every hit DetId on its validity? Mind the search is linear.

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/9338/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

barvic and others added 3 commits October 29, 2015 21:54
…nHcalCalibAlgos

Replace LinkDef file witl XML selection file in Calibration/HcalCalibAlgos
@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 2, 2015

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/9411/console

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 2, 2015

Pull request #12170 was updated. @cmsbuild, @civanch, @Dr15Jones, @ianna, @mdhildreth can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 2, 2015

@ianna
Copy link
Contributor Author

ianna commented Nov 2, 2015

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 2, 2015

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar

ianna added 2 commits November 2, 2015 15:46
Conflicts:
	Geometry/HGCalGeometry/interface/HGCalGeometry.h
	Geometry/HGCalGeometry/src/HGCalGeometry.cc
@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 2, 2015

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 2, 2015

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar

if (counter != numberOfCells) {
std::cerr << "inconsistent # of cells: expected " << numberOfCells << " , inited " << counter << std::endl;
assert( counter == numberOfCells ) ;
}
std::cout << "HGCalGeometryBuilder-> " << counter << " cells are produced" << std::endl;
std::cout << "HGCalGeometryBuilder-> " << counter << " cells are produced\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ianna - could you remove this printout. Thanks

davidlange6 added a commit that referenced this pull request Nov 3, 2015
@davidlange6 davidlange6 merged commit a3ba3f8 into cms-sw:CMSSW_8_0_X Nov 3, 2015
@ianna
Copy link
Contributor Author

ianna commented Nov 3, 2015

@davidlange6 - could you, please, revert this merge? I've merged this branch with another and wrongly pushed the result into this one. Sorry. (I wonder why the labels were not reset...)

@ianna ianna deleted the hgcal-reco-geometry-cleanup branch November 6, 2015 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants