Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Alignment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
LHCb
Alignment
Merge requests
!51
update to use of git db
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
update to use of git db
wh_alignmentusegitdb
into
master
Overview
1
Commits
1
Pipelines
0
Changes
3
Merged
Wouter Hulsbergen
requested to merge
wh_alignmentusegitdb
into
master
7 years ago
Overview
1
Commits
1
Pipelines
0
Changes
3
Expand
Updated alignment scripts to use git database for LHCBCOND.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3f38ae11
1 commit,
7 years ago
3 files
+
50
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Alignment/Escher/scripts/gaudiiter.py
+
13
−
15
Options
@@ -36,13 +36,7 @@ if options:
#options = [ "importOptions(%r)" % f for f in args ]
#importOptions("$ESCHERROOT/options/Escher.py")
#importOptions("$ESCHERROOT/options/DC06-Data.py")
#from Configurables import Escher
#escher = Escher()
# mae sure that the algorithms know how many iterations are coming
# make sure that the algorithms know how many iterations are coming
from
Configurables
import
TAlignment
TAlignment
().
NumIterations
=
opts
.
numiter
TAlignment
().
UpdateInFinalize
=
False
@@ -51,14 +45,18 @@ TAlignment().UpdateInFinalize = False
if
opts
.
aligndb
:
counter
=
1
for
db
in
opts
.
aligndb
:
from
Configurables
import
(
CondDB
,
CondDBAccessSvc
)
alignCond
=
CondDBAccessSvc
(
'
AlignCond
'
+
str
(
counter
)
)
if
opts
.
lhcbcondtag
:
alignCond
.
ConnectionString
=
'
sqlite_file:
'
+
db
+
'
/LHCBCOND
'
else
:
alignCond
.
ConnectionString
=
'
sqlite_file:
'
+
db
+
'
/CALIBOFF
'
CondDB
().
addLayer
(
alignCond
)
counter
+=
1
from
Configurables
import
CondDB
if
"
.db
"
in
db
:
# this is an sqlite file
from
Configurables
import
CondDBAccessSvc
alignCond
=
CondDBAccessSvc
(
'
AlignCond
'
+
str
(
counter
)
)
alignCond
.
ConnectionString
=
'
sqlite_file:
'
+
db
+
condtag
CondDB
().
addLayer
(
alignCond
)
counter
+=
1
else
:
# this is a git layer
CondDB
().
addLayer
(
db
)
print
"
adding layer:
"
,
db
if
opts
.
dddb
:
counter
=
1
Loading