Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW_OTE_development
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
yudian2002@sjtu.edu.cn
CEPCSW_OTE_development
Commits
f4b006c3
Commit
f4b006c3
authored
3 years ago
by
guofangyi@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
Add extension in Ecal
parent
50e56f1d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Detector/DetCRD/src/Calorimeter/CRDEcal_v01.cpp
+32
-1
32 additions, 1 deletion
Detector/DetCRD/src/Calorimeter/CRDEcal_v01.cpp
with
32 additions
and
1 deletion
Detector/DetCRD/src/Calorimeter/CRDEcal_v01.cpp
+
32
−
1
View file @
f4b006c3
...
...
@@ -86,6 +86,36 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
dd4hep
::
Volume
det_stave
(
"stave_vol"
,
subtrap
,
mat_BGO
);
det_stave
.
setVisAttributes
(
theDetector
,
"InvisibleWithChildren"
);
// Create extension objects for reconstruction
LayeredCalorimeterData
*
caloData
=
new
LayeredCalorimeterData
;
for
(
int
il
=
0
;
il
<
Nlayers
;
il
++
){
//used for reconstruction, so write a 1*1*2 layer cell size. No absorber or dead-meaterial.
dd4hep
::
rec
::
LayeredCalorimeterData
::
Layer
_caloLayer
;
_caloLayer
.
distance
=
R0
+
il
*
2
*
barx
;
_caloLayer
.
phi0
=
0
;
_caloLayer
.
absorberThickness
=
0
;
_caloLayer
.
inner_nRadiationLengths
=
0.01
;
_caloLayer
.
inner_nInteractionLengths
=
0.01
;
_caloLayer
.
outer_nRadiationLengths
=
0.01
;
_caloLayer
.
outer_nInteractionLengths
=
0.01
;
_caloLayer
.
inner_thickness
=
barx
;
//1cm
_caloLayer
.
outer_thickness
=
barx
;
//1cm
_caloLayer
.
sensitive_thickness
=
2
*
barx
;
//2cm
_caloLayer
.
cellSize0
=
barx
;
//1cm
_caloLayer
.
cellSize1
=
barx
;
//1cm
caloData
->
layers
.
push_back
(
_caloLayer
);
}
caloData
->
layoutType
=
LayeredCalorimeterData
::
BarrelLayout
;
caloData
->
inner_symmetry
=
8
;
caloData
->
outer_symmetry
=
8
;
caloData
->
phi0
=
0
;
// hardcoded
// extent of the calorimeter in the r-z-plane [ rmin, rmax, zmin, zmax ] in mm.
caloData
->
extent
[
0
]
=
R0
;
caloData
->
extent
[
1
]
=
R0
+
h0
;
caloData
->
extent
[
2
]
=
0.
;
caloData
->
extent
[
3
]
=
Z0
;
//Loop to place crystalls in one part
...
...
@@ -154,7 +184,8 @@ static dd4hep::Ref_t create_detector(dd4hep::Detector& theDetector,
}
sens
.
setType
(
"calorimeter"
);
ECAL
.
addExtension
<
LayeredCalorimeterData
>
(
caloData
)
;
MYDEBUG
(
"create_detector DONE. "
);
return
ECAL
;
}
...
...
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