Skip to content

Commit 001fe26

Browse files
authored
Geometry update for 2022 (star-bnl#173)
* Geometry update for 2022 - Implement first cut of the y2022 geometry @ timestamp 20211010.000000 -- sTGC and forward silicon detectors are still in development -- overlaps are a concern for the initial geometries -- expecting geometry updates end of month timescale - Remove deprecated dev2021 geometry model - Advance dev2022 timestamp by 100 years to not interfere * Restore dev2021 @ advanced timestamp / refine comments * And add back in the dev2021 tag to xgeometry * And get the y2022 declaration correct (time stamp, tags...)
1 parent 304eb00 commit 001fe26

4 files changed

Lines changed: 68 additions & 6 deletions

File tree

StRoot/StChain/GeometryDbAliases.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,11 @@ static const DbAlias_t fDbAlias[] = {// geometry Comment old
155155

156156
{"y2021", 20201215, 0, "y2021", "y2021 development geometry, AgML,xgeometry"},
157157
{"y2021a", 20201215, 1, "y2021a", "y2021 first production geometry, AgML,xgeometry"},
158-
159-
{"dev2021", 20221210, 0, "dev2021", "-deprecated- geometry for 2021+ forward program,AgML,xgeometry"},
160-
{"dev2022", 20221210, 1, "dev2022", "development geometry for 2022+ forward program,AgML,xgeometry"},
158+
159+
{"y2022", 20211015, 0, "y2022", "y2022 first cut geometry, AgML,xgeometry"},
160+
161+
{"dev2021", 21201210, 1, "dev2021", "-deprecated- geometry for 2021+ forward program,AgML,xgeometry"},
162+
{"dev2022", 21211210, 1, "dev2022", "development geometry for 2022+ forward program,AgML,xgeometry"},
161163

162164
//
163165
// Move DEVT and upgrade series +100 years along timeline else they interfere with y2018+ runs
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#include "CreateGeometry.h"
2+
TDataSet *CreateTable()
3+
{
4+
// Name of the macro including the full path
5+
TString myname = gInterpreter->GetCurrentMacroName();
6+
7+
// Get an array of TString separated by "/"
8+
TObjArray *array = myname.Tokenize("/");
9+
10+
// Get the name of the macro itself
11+
TString name = ((TObjString *)array->Last())->GetString();
12+
13+
// Isolate the geometry tag
14+
array = name.Tokenize(".");
15+
16+
// Get the geometry tag
17+
TString tag = ((TObjString *)array->At(1))->GetString();
18+
19+
// Ensure that we are not looking at the template
20+
if ( tag=="C" )
21+
{
22+
std::cout << "Please use one of the Geometry.[TAG].C macros" << std::endl;
23+
std::cout << "to instantiate the geometry specified by the " << std::endl;
24+
std::cout << "given [TAG]." << std::endl;
25+
return NULL;
26+
}
27+
28+
// Return the requested geometry
29+
return CreateGeometry(tag);
30+
31+
}
32+

StarVMC/Geometry/StarGeo.xml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
C chamber
1515
-->
1616

17-
<Geometry tag="dev2021" comment="DEPRECATED. USE dev2022. (development tag for the forward star upgrade)">
17+
<Geometry tag="dev2021" comment="DEPRECATED. USE dev2022. (development tag for the forward star upgrade)">
1818
<Construct sys="cave" config="CAVE06" />
1919
<Construct sys="upst" config="UPSTon" />
2020
<Construct sys="shld" config="SHLDon" />
@@ -33,7 +33,7 @@
3333
<Construct sys="epdm" config="EPDMv1" />
3434
<Construct sys="magp" config="MAGPon" />
3535
<Construct sys="mutd" config="MUTD16" />
36-
<Construct sys="fstm" config="FSTMv1s" />
36+
<Construct sys="fstm" config="FSTMv1s" /> <!-- simplified FST for tracking -->
3737
<Construct sys="stgm" config="STGCv1" />
3838
<!-- Construct sys="etof" config="ETOFv14f" -->
3939
<Construct sys="wcal" config="WCALv1" simu="1" />
@@ -42,7 +42,7 @@
4242
<Construct sys="pres" config="PRESof" simu="2" />
4343
</Geometry>
4444

45-
<Geometry tag="dev2022" comment="development tag for the 2022 forward star upgrade">
45+
<Geometry tag="dev2022" comment="development tag for the 2022 forward star upgrade">
4646
<Construct sys="cave" config="CAVE06" />
4747
<Construct sys="upst" config="UPSTon" />
4848
<Construct sys="shld" config="SHLDon" />
@@ -70,6 +70,33 @@
7070
<Construct sys="pres" config="PRESof" simu="2" />
7171
</Geometry>
7272

73+
<Geometry tag="y2022" comment="STAR initial cut tag">
74+
<!-- Note: Current version of sTGC has overlaps which are being resolved.
75+
I anticipate updates to forward detectors during the run. -->
76+
<Construct sys="cave" config="CAVE06" />
77+
<Construct sys="upst" config="UPSTon" />
78+
<Construct sys="shld" config="SHLDon" />
79+
<Construct sys="zcal" config="ZCALon" />
80+
<Construct sys="scon" config="SCON14" />
81+
<Construct sys="pipe" config="PIPE12ft" />
82+
<Construct sys="targ" config="TARGv1" />
83+
<Construct sys="tpce" config="TPCEv6" />
84+
<Construct sys="btof" config="BTOFv8" />
85+
<Construct sys="vpdd" config="VPDD08" />
86+
<Construct sys="calb" config="CALB02" />
87+
<Construct sys="ecal" config="ECALv6" />
88+
<Construct sys="bbcm" config="BBCMin" />
89+
<Construct sys="epdm" config="EPDMv1" />
90+
<Construct sys="magp" config="MAGPon" />
91+
<Construct sys="mutd" config="MUTD16" />
92+
<Construct sys="wcal" config="WCALv1" simu="1" />
93+
<Construct sys="hcal" config="HCALv1" simu="1" />
94+
<Construct sys="fstm" config="FSTMv1" />
95+
<Construct sys="stgm" config="STGCv1" />
96+
<Construct sys="etof" config="ETOFv14f" />
97+
</Geometry>
98+
99+
73100
<Geometry tag="y2021" comment="STAR production tag w/ FCS installation">
74101
<Construct sys="cave" config="CAVE06" />
75102
<Construct sys="upst" config="UPSTon" />

StarVMC/xgeometry/xgeometry.age

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,6 +2536,7 @@ If LL>0
25362536
case y2021 { y2021: y2021 first cut geometry; Geom = 'y2021 '; call geom_y2021;}
25372537
case y2021a { y2021a: y2021 first production geometry; Geom = 'y2021a '; call geom_y2021a;}
25382538

2539+
case y2022 { y2022: y2022 first cut geometry; Geom = 'y2022 '; call geom_y2022;}
25392540

25402541
case dev2021 { dev2021: First cut forward upgrades; Geom = 'dev2021 '; call geom_dev2021;}
25412542
case dev2022 { dev2022: First cut forward upgrades; Geom = 'dev2022 '; call geom_dev2022;}

0 commit comments

Comments
 (0)