Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
payload-docker-cms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
awesome-workshop
payload-docker-cms
Commits
0950e980
Commit
0950e980
authored
5 years ago
by
Clemens Lange
Browse files
Options
Downloads
Patches
Plain Diff
Use ANALYSIS_OUTDIR variable for output path via env
parent
baee1e77
Branches
geant4-3.1-release
Branches containing commit
Tags
v3.1.0
Tags containing commit
No related merge requests found
Pipeline
#1423467
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ZPeakAnalysis/test/MyZPeak_cfg.py
+6
-2
6 additions, 2 deletions
ZPeakAnalysis/test/MyZPeak_cfg.py
with
6 additions
and
2 deletions
ZPeakAnalysis/test/MyZPeak_cfg.py
+
6
−
2
View file @
0950e980
...
...
@@ -12,7 +12,7 @@ process.source = cms.Source("PoolSource",
process
.
MessageLogger
=
cms
.
Service
(
"
MessageLogger
"
)
process
.
maxEvents
=
cms
.
untracked
.
PSet
(
input
=
cms
.
untracked
.
int32
(
1000
0
)
input
=
cms
.
untracked
.
int32
(
1000
)
)
process
.
analyzeBasicPat
=
cms
.
EDAnalyzer
(
"
MyZPeakAnalyzer
"
,
...
...
@@ -20,8 +20,12 @@ process.analyzeBasicPat = cms.EDAnalyzer("MyZPeakAnalyzer",
elecSrc
=
cms
.
untracked
.
InputTag
(
"
slimmedElectrons
"
),
)
import
os
outPath
=
os
.
getenv
(
"
ANALYSIS_OUTDIR
"
)
+
"
/
"
if
not
outPath
:
outPath
=
"
./
"
process
.
TFileService
=
cms
.
Service
(
"
TFileService
"
,
fileName
=
cms
.
string
(
'
myZPeak.root
'
)
fileName
=
cms
.
string
(
outPath
+
'
myZPeak.root
'
)
)
process
.
p
=
cms
.
Path
(
process
.
analyzeBasicPat
)
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