Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZDCdigitizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Chad Lantz
ZDCdigitizer
Commits
98e6d74e
Commit
98e6d74e
authored
4 years ago
by
Chad Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Changed README to markdown format. Changed output file names to be consistent
parent
683f4ac2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+42
-0
42 additions, 0 deletions
README.md
outputDigitization.cc
+1
-1
1 addition, 1 deletion
outputDigitization.cc
with
43 additions
and
1 deletion
README.md
0 → 100644
+
42
−
0
View file @
98e6d74e
Everything is super simple right now. We can complicate it more if we want.
I made a single .cc file with three functions:
cutZDCoutput(string fileName, int rodNum)
Arguments:
fileName - The input .root file
rodNum - The transmission spectrum you would like to use. Uses the old
numbering scheme. I will change that as soon as I figure out
the conversion.
Description:
Takes an input .root file with photon data from the top of the ZDC and
cuts it based on the transmission spectrum for the selected rod.
Output:
.root file and .txt file with photon data after cuts. Named the same as the input
file prepended with Out_
PMTcuts(string fileName, int PMTmodel = 6091)
Arguments:
fileName - The input .root file
PMTmodel - Loads the Quantum efficiency curve for the given PMT model #.
Currently we only have data for the 6091. Waiting on datasheets
from Peter for the other options.
Description:
Takes an input .root file with photon data from the top of the ZDC light guide
and cuts it based on the Quantum Efficiency for the selected PMT model.
Output:
.txt file with photon data after cuts. Named the same as the input file
prepended with Out_
SetBranches()
Arguments:
None
Description:
Does like it sounds. The input and output files and variables are global
so we can reuse this section of code.
This diff is collapsed.
Click to expand it.
outputDigitization.cc
+
1
−
1
View file @
98e6d74e
...
...
@@ -53,7 +53,7 @@ void cutZDCoutput(string fileName, int rodNum){
int
EventNo
;
double
energy
,
X
,
Y
,
Z
,
Px
,
Py
,
Pz
;
TRandom
rnd
;
ofstream
outputFile
(
Form
(
"
%s_
Out.txt"
,
fileName
.
c_str
()
)
);
ofstream
outputFile
(
Form
(
"Out
_%s
.txt"
,
fileName
.
c_str
()
)
);
//// Get the transmission data
////
...
...
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