Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Peter Sherwood
athena
Commits
401a585d
Commit
401a585d
authored
4 years ago
by
R D Schaffer
Browse files
Options
Downloads
Patches
Plain Diff
moving to allow for LockMapCurrents = True the field to turn on and off
parent
336cd863
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
MagneticField/MagFieldServices/src/AtlasFieldCacheCondAlg.cxx
+11
-8
11 additions, 8 deletions
...eticField/MagFieldServices/src/AtlasFieldCacheCondAlg.cxx
with
11 additions
and
8 deletions
MagneticField/MagFieldServices/src/AtlasFieldCacheCondAlg.cxx
+
11
−
8
View file @
401a585d
...
...
@@ -87,14 +87,11 @@ MagField::AtlasFieldCacheCondAlg::execute(const EventContext& ctx) const {
//This will need to be filled before we construct the condition object
Cache
cache
{};
// set current scale factor from either conditions or from jobOption parameters if not locked
if
(
!
m_lockMapCurrents
)
{
if
(
m_useDCS
)
{
ATH_CHECK
(
updateCurrentFromConditions
(
ctx
,
cache
)
);
}
else
{
ATH_CHECK
(
updateCurrentFromParameters
(
cache
)
);
}
if
(
m_useDCS
)
{
ATH_CHECK
(
updateCurrentFromConditions
(
ctx
,
cache
)
);
}
else
{
ATH_CHECK
(
updateCurrentFromParameters
(
cache
)
);
}
// Must read map cond object to get previously created map
...
...
@@ -113,6 +110,11 @@ MagField::AtlasFieldCacheCondAlg::execute(const EventContext& ctx) const {
scaleField
(
cache
,
fieldMap
);
}
else
{
// For locked currents, we allow the SF to be either 0 or 1, i.e. allow the DCS currents to
// say whether or not the solenoid or toroid is on or not
cache
.
m_solScaleFactor
=
(
cache
.
m_solenoidCurrent
>
0
)
?
1
:
0
;
cache
.
m_torScaleFactor
=
(
cache
.
m_toroidCurrent
>
0
)
?
1
:
0
;
ATH_MSG_INFO
(
"execute: map currents locked"
);
ATH_MSG_INFO
(
"execute: Solenoid field scale factor "
<<
cache
.
m_solScaleFactor
<<
". Desired current and map current: "
<<
cache
.
m_solenoidCurrent
<<
","
<<
((
fieldMap
)
?
fieldMap
->
solenoidCurrent
()
:
0
));
...
...
@@ -235,6 +237,7 @@ MagField::AtlasFieldCacheCondAlg::updateCurrentFromConditions(const EventContext
torcur
=
0.0
;
ATH_MSG_INFO
(
"UpdateCurrentFromConditions: Toroids are off"
);
}
cache
.
m_solenoidCurrent
=
solcur
;
cache
.
m_toroidCurrent
=
torcur
;
...
...
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