Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
np
nptool
Commits
3cb79140
Commit
3cb79140
authored
3 years ago
by
Charlie Paxman
Browse files
Options
Downloads
Patches
Plain Diff
* e793s - tweak
parent
b1aa1817
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#160914
passed
3 years ago
Stage: build-NPLib
Stage: build-NPSimulation
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Projects/e793s/macro/CS2.h
+10
-1
10 additions, 1 deletion
Projects/e793s/macro/CS2.h
with
10 additions
and
1 deletion
Projects/e793s/macro/CS2.h
+
10
−
1
View file @
3cb79140
/* Predefine functions */
vector
<
vector
<
double
>>
ExpDiffCross
(
double
Energy
);
TH1F
*
PullThetaLabHist
(
int
i
,
double
minTheta
,
double
gatesize
);
void
Scale
(
TGraph
*
g
,
TGraphErrors
*
ex
);
...
...
@@ -5,11 +6,13 @@ TGraph* TWOFNR(double E, double J0, double J, double n, double l, double j);
double
ToMininize
(
const
double
*
parameter
);
TGraph
*
FindNormalisation
(
TGraph
*
theory
,
TGraphErrors
*
experiment
);
/* Global variables */
vector
<
Double_t
>
anglecentres
,
anglewidth
;
TGraph
*
currentThry
;
TGraphErrors
*
staticExp
;
int
indexE
;
/* Output volume toggle */
bool
loud
=
0
;
////////////////////////////////////////////////////////////////////////////////
...
...
@@ -21,6 +24,12 @@ void CS(double Energy, double Spin, double spdf, double angmom, double nodes){
// J0 is incident spin, which is 47K g.s. therefore J0 = 1/2
double
J0
=
0
.
5
;
/* Clean global variables, in case of multiple runs */
indexE
=
100
;
anglecentres
.
clear
();
anglewidth
.
clear
();
/* Retrieve array index of the entered peak energy */
/* numpeaks and Energy[] defined globally in KnownPeakFitter.h */
bool
found
=
0
;
...
...
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