Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
CEPCSW
Commits
52aca5d3
Commit
52aca5d3
authored
4 years ago
by
FU Chengdong
Browse files
Options
Downloads
Patches
Plain Diff
change direction of shift of stave
parent
feec4d96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Detector/DetCEPCv4/src/calorimeter/SEcal05_Barrel.cpp
+2
-2
2 additions, 2 deletions
Detector/DetCEPCv4/src/calorimeter/SEcal05_Barrel.cpp
with
2 additions
and
2 deletions
Detector/DetCEPCv4/src/calorimeter/SEcal05_Barrel.cpp
+
2
−
2
View file @
52aca5d3
...
@@ -395,7 +395,7 @@ static Ref_t create_detector(Detector& theDetector, xml_h element, SensitiveDete
...
@@ -395,7 +395,7 @@ static Ref_t create_detector(Detector& theDetector, xml_h element, SensitiveDete
// end of slabs aligned to inner face of support plate in next stave (not the outer surface)
// end of slabs aligned to inner face of support plate in next stave (not the outer surface)
// double Y = (module_thickness/2.) / sin(M_PI/4.);
// double Y = (module_thickness/2.) / sin(M_PI/4.);
// double Y = (module_thickness_noSupport/2.) / sin(2.*M_PI/nsides);
// double Y = (module_thickness_noSupport/2.) / sin(2.*M_PI/nsides);
double
Y
=
(
module_thickness
/
2.
)
/
sin
(
2.
*
M_PI
/
nsides
);
double
Y
=
-
(
module_thickness
/
2.
)
/
sin
(
2.
*
M_PI
/
nsides
);
// stave numbering from 1->8
// stave numbering from 1->8
// stave = 1 is in +ve x direction
// stave = 1 is in +ve x direction
...
@@ -422,7 +422,7 @@ static Ref_t create_detector(Detector& theDetector, xml_h element, SensitiveDete
...
@@ -422,7 +422,7 @@ static Ref_t create_detector(Detector& theDetector, xml_h element, SensitiveDete
for
(
int
imodule
=
0
;
imodule
<
Ecal_barrel_z_modules
;
imodule
++
)
{
for
(
int
imodule
=
0
;
imodule
<
Ecal_barrel_z_modules
;
imodule
++
)
{
int
module_id
=
imodule
+
1
;
int
module_id
=
imodule
+
1
;
Transform3D
tr
(
RotationZYX
(
0
,
phirot
,
M_PI
/
2.
),
// magic rotation!
Transform3D
tr
(
RotationZYX
(
M_PI
,
phirot
,
M_PI
/
2.
),
// magic rotation!
Translation3D
(
Translation3D
(
(
X
*
cos
(
phirot2
)
-
Y
*
sin
(
phirot2
)
)
,
(
X
*
cos
(
phirot2
)
-
Y
*
sin
(
phirot2
)
)
,
(
X
*
sin
(
phirot2
)
+
Y
*
cos
(
phirot2
)
)
,
(
X
*
sin
(
phirot2
)
+
Y
*
cos
(
phirot2
)
)
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment