Skip to content

Commit 2e79046

Browse files
authored
Merge pull request #527 from SBNSoftware/feature/hlay_crt_offline_quick_fix
Hotfix to CRT offline
2 parents 7797803 + bb41bc2 commit 2e79046

4 files changed

Lines changed: 95 additions & 7 deletions

File tree

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
40 173 1
2+
41 172 1
3+
42 168 1
4+
43 170 1
5+
44 176 1
6+
45 59 1
7+
46 171 1
8+
47 61 1
9+
48 166 0
10+
49 169 0
11+
50 56 0
12+
51 60 0
13+
52 34 1
14+
53 33 1
15+
54 57 1
16+
55 24 1
17+
56 159 1
18+
57 153 1
19+
58 156 1
20+
59 152 1
21+
60 182 1
22+
61 158 1
23+
62 157 1
24+
63 136 0
25+
64 150 0
26+
65 151 0
27+
66 134 0
28+
67 135 0
29+
68 149 0
30+
69 58 0
31+
70 238 0
32+
71 155 0
33+
72 222 1
34+
73 220 1
35+
74 81 1
36+
75 85 1
37+
76 79 1
38+
77 206 1
39+
78 204 1
40+
79 200 1
41+
80 18 0
42+
81 132 0
43+
82 133 0
44+
83 162 0
45+
84 143 0
46+
85 131 0
47+
86 146 0
48+
87 147 0
49+
88 44 0
50+
89 160 0
51+
90 19 1
52+
91 202 1
53+
92 199 1
54+
93 197 1
55+
94 207 1
56+
95 203 1
57+
96 45 1
58+
97 198 1
59+
98 174 1
60+
99 148 1
61+
100 163 1
62+
101 164 1
63+
102 165 1
64+
103 80 1
65+
104 193 0
66+
105 42 0
67+
106 138 0
68+
107 130 1
69+
108 77 0
70+
109 78 0
71+
110 98 1
72+
111 97 1
73+
112 87 1
74+
113 95 1
75+
114 94 1
76+
115 93 1
77+
116 86 0
78+
117 83 0
79+
118 84 0
80+
119 104 1
81+
120 103 1
82+
121 102 1
83+
122 101 1
84+
123 100 1
85+
124 99 1
86+
125 90 0
87+
126 91 0
88+
133 82 0

sbndcode/ChannelMaps/CRT/crt_channel_map_service.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ BEGIN_PROLOG
22

33
crt_channel_map_standard:
44
{
5-
FileName: "SBNDCRTChannelMap_v6.txt"
5+
FileName: "SBNDCRTChannelMap_v7.txt"
66
}
77

88
END_PROLOG

sbndcode/Geometry/GeometryWrappers/CRTGeoAlg.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ namespace sbnd::crt {
361361
const double halfWidth = auxDet.HalfWidth1();
362362
const double halfLength = auxDet.Length() / 2.;
363363

364-
geo::AuxDetGeo::LocalPoint_t limits { - halfWidth - 5, -15, -halfLength - 5};
365-
geo::AuxDetGeo::LocalPoint_t limits2{ - halfWidth, 15, -halfLength + 5};
364+
geo::AuxDetGeo::LocalPoint_t limits { halfWidth + 5, -15, -halfLength - 5};
365+
geo::AuxDetGeo::LocalPoint_t limits2{ halfWidth, 15, -halfLength + 5};
366366

367367
if(!module.top)
368368
{
@@ -390,8 +390,8 @@ namespace sbnd::crt {
390390
const double halfWidth = auxDet.HalfWidth1();
391391
const double halfLength = auxDet.Length() / 2.;
392392

393-
geo::AuxDetGeo::LocalPoint_t limits { - halfWidth - 5, -15, -halfLength - 5};
394-
geo::AuxDetGeo::LocalPoint_t limits2{ - halfWidth, -12, -halfLength + 5};
393+
geo::AuxDetGeo::LocalPoint_t limits { halfWidth + 5, -15, -halfLength - 5};
394+
geo::AuxDetGeo::LocalPoint_t limits2{ halfWidth, -12, -halfLength + 5};
395395

396396
if(!module.top)
397397
{

sbndcode/Geometry/GeometryWrappers/CRTGeoAlg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ namespace sbnd::crt {
174174
// Location of SiPMs
175175
if(CRTCommonUtils::GetTaggerEnum(taggerName) == kBottomTagger || CRTCommonUtils::GetTaggerEnum(taggerName) == kNorthTagger
176176
|| CRTCommonUtils::GetTaggerEnum(taggerName) == kWestTagger || CRTCommonUtils::GetTaggerEnum(taggerName) == kEastTagger)
177-
top = (orientation == 1) ? (modulePosMother[1] > 0) : (modulePosMother[0] < 0);
177+
top = (orientation == 1) ? (modulePosMother[1] < 0) : (modulePosMother[0] > 0);
178178
else
179-
top = (orientation == 0) ? (modulePosMother[1] > 0) : (modulePosMother[0] < 0);
179+
top = (orientation == 0) ? (modulePosMother[1] < 0) : (modulePosMother[0] > 0);
180180

181181
// Fill edges
182182
minX = std::min(limitsWorld.X(), limitsWorld2.X());

0 commit comments

Comments
 (0)