Skip to content

Latest devs in the XML export in sync with CMSSW + Added layout FlatTracker4026#274

Merged
alkemyst merged 11 commits intotkLayout:dev_gabiefrom
ghugo83:dev_gabie
Dec 15, 2016
Merged

Latest devs in the XML export in sync with CMSSW + Added layout FlatTracker4026#274
alkemyst merged 11 commits intotkLayout:dev_gabiefrom
ghugo83:dev_gabie

Conversation

@ghugo83
Copy link
Contributor

@ghugo83 ghugo83 commented Dec 14, 2016

After the merge of these commits, the code in tkLayout/dev_gabie will be in the exact state of what was used for the XML export of FlatTracker4026 and TiltedTracker4026 to CMSSW.

Updates in the XML export :
Worked on the materials XML export.

  • 'Elementary' materials :
    They are now in tracker.xml only (they were duplicated in pixel.xml).
    They are prefixed by "tkLayout_" for additional safety reasons.

  • Composite materials (that is to say, all the other materials !) :
    They used to be a lot of composites with different names but same actual materials compositions. Redundancies have been deleted.
    Design has been chosen towards the safest solution : scan the composite materials once they are created, and print the duplicated materials only once in the XMLs.
    First glance solution that module materials could be categorized (category 'module type + dsDistance' for example, or similar), turned out to be impossible from the materials point of view, and is also much less safe.

Other changes in the XML export :

  • updated one constant in trackerProdCuts.xml, after question to Vladimir.
  • deleted a few obsolete references to Phase 1 Pixel.

Added FlatTracker4026.
The soup recipe is the following :

  • TBPS from Flat/OT_200.cfg
  • TB2S, TEDD from OT_Tilted_365
  • Pixel is Pixel4026

…rom 2 MB to 1.3 MB, pixel.xml : from 550 KB to 400 KB.
…ckerProdCuts.xml are now updated and validated
… Phase 1 Pixel files. NB : TO DO : Now that the Phase 1 Pixel is completely removed, all Phase 1 Pixel variables should also disappear.
…hin CMSSW as Flat Tracker. It has the TBPS from the ex flat OT_200.cfg + same TB2S and TEDD as OT_Tilted_V365. This Flat Outer Tracker is called Flat_V0_200. The Pixel is Pixel V 4026.
for ( vit = volumes.begin(); vit != volumes.end(); vit++ ) {
if ( !((*vit)->getDensity()>0.) ) continue;
for (const auto& vit : volumes) {
if (!(vit->getDensity() > 0.)) continue;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can throw an INFO or WARN here?

// Special case where a composite with same name already exists
if (mapCompoToPrintedCompo_.find(nspaceName) != mapCompoToPrintedCompo_.end()) {
//throw PathfulException("Found several composite materials with same name " + nspaceName);
std::cout << "VERY IMPORTANT : VOLUME " << nspaceName << " IS DUPLICATED !!!!!!!!!!" << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we change this to a logSOMETHING ?

@alkemyst alkemyst merged commit 1ef8949 into tkLayout:dev_gabie Dec 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants